OpenCALTeam / opencal

OpenCAL, the Open Computing Abstraction Layer Domain Specific Language for Structured Grid Meshes
GNU Lesser General Public License v3.0
13 stars 1 forks source link

Wrong initialization of the step counter #12

Closed donatodambrosio closed 8 years ago

donatodambrosio commented 8 years ago

The simulation object's step member is always initialized to 0 in calRunDef_D(). At the contrary, it should be initialized to initial_step. This is important, otherwise step will be initialized to 0 regardless of the third parameter of calRunDef_D() (that specifies the initial step of computation) in the case of simulation loop explicitation and substates' explicit update. This problem does not arise when you use implicit loop and update.