Description how to reproduce the bug
If you create a simulation with an initial time of t0, initializeSimulation will fail with an error if findConsistent is set to true:
[ERROR][rank 0][/tmp/sundials/src/idas/idas_ic.c:179][IDACalcIC] tout1 too close to t0 to attempt initial condition calculation.
ERROR: Function IDACalcIC failed with flag -22!
terminate called after throwing an instance of 'AnalysisManager::Sundials::SundialsException'
what(): Method in Ida class failed!
Aborted (core dumped)
GridKit™ version
latest
System and environment details
N/A
Additional information
When findConsistent is set to true, there is a call to IDACalcIC:
|
retval = IDACalcIC(solver_, initType, 0.1); |
The third parameter as documented by SUNDIALS:
tout1 – is the first value of at which a solution will be requested (from IDASolve()). This value is needed here only to determine the direction of integration and rough scale in the independent variable .
The passed argument isn't based on t0 at all, and in fact if t0 is too close to 0.1, the above error will be thrown
Description how to reproduce the bug
If you create a simulation with an initial time of t0,
initializeSimulationwill fail with an error iffindConsistentis set to true:GridKit™ version
latest
System and environment details
N/A
Additional information
When
findConsistentis set to true, there is a call toIDACalcIC:GridKit/GridKit/Solver/Dynamic/Ida.cpp
Line 277 in b589149
The third parameter as documented by SUNDIALS:
The passed argument isn't based on t0 at all, and in fact if t0 is too close to 0.1, the above error will be thrown