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

Stop condition callbak must have a simulation object as parameter #13

Open donatodambrosio opened 8 years ago

donatodambrosio commented 8 years ago

At present, the callback function registered by calRunAddStopConditionFunc*D() takes a pointer to a CA object as parameter. This does not allow the callback to access the step member of the simulation object. Therefore, the callback parameter must be a pointer to a simulation object.