Commit a42bd32b authored by Christophe Geuzaine's avatar Christophe Geuzaine

UpdateConstraint now increments Current.SubTimeStep, so that the link…

UpdateConstraint now increments Current.SubTimeStep, so that the link constraints correctly re-evaluated.

Note: the test in Generate_Link should be changed: we should probably not reevaluate the links if the time step changes - only if we do UpdateConstraints explicitly. (And in that case, we should rename Current.SubTimeStep as something more like Current.ConstraintChange)
parent 9bc4be7a
Pipeline #843 passed with stage
in 18 minutes and 21 seconds
......@@ -429,7 +429,6 @@ void Get_LinkForConstraint(struct ConstraintInFS * Constraint_P,
else if (Constraint_P->Active.Active->SubTimeStep != Current.SubTimeStep)
Generate_Link(Constraint_P, 0) ; /* +++ */
TwoIntOneDouble_P = (struct TwoIntOneDouble *)
((Couples_L = Constraint_P->Active.Active->Case.Link.Couples)?
List_PQuery(Couples_L, &Num_Entity, fcmp_absint) : NULL) ;
......
......@@ -544,6 +544,9 @@ void UpdateConstraint_System(struct DefineSystem * DefineSystem_P,
int Nbr_Formulation, Index_Formulation, Save_TreatmentStatus ;
struct Formulation * Formulation_P ;
// Incrementing Current.SubTimeStep, so that Generate_Link is re-triggered
Current.SubTimeStep++;
Save_TreatmentStatus = TreatmentStatus ;
TreatmentStatus = _CST ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment