Dear developers,
the function SuperMin2D
in file superLatticeIntegralF2D.hh
is not working.
Using this function results in a return of 0.
The initial minimum is set with the output as 0: (line 96) output[i]=T();
This is only updated when the absolute value of another minimum is lower than the initial minimum
if (fabs(outputTmp[i]) < output[i]) {
output[i] = fabs(outputTmp[i]);
}
This basically reads as if( abs(x) < 0){ update }
, which is never true.
In the SuperMin3D
function the output is initialized differently output[i] = std::numeric_limits<W>::max();
. And that minimization works.
Replacing SuperMin2D
initialization with SuperMin3D
makes the function work as expected.
I also replaced the template <W>
with <T>
.
Regards,
Julius
-
This topic was modified 4 years ago by Julius. Reason: template note