Fix logic for initializing gg1 in the new cg implementation
Description
Before, gg1 may have been used uninitialized when using the Fletcher-Reeves direction, although the value was not used in the algorithm itself. Now the logic is fixed.
Checklist
-
I have checked that my code follows the Octopus coding standards