Commit 99965d0c authored by GILLES Sebastien's avatar GILLES Sebastien

#1473 Move in Model the call to PrecomputeExit: it should be ok to put it...

#1473 Move in Model the call to PrecomputeExit: it should be ok to put it before the call the the derived model specific initialization parts.
parent 04fb1413
......@@ -278,17 +278,20 @@ namespace MoReFEM
Advanced::SetFromInputData<>(input_data, manager);
}
// If the point was just to write preprocessed data; stop the program here.
// I put this before the eventual additional steps required by the Model: all the partition is complete
// at this point so there should be no need to run SupplInitialize() first.
// In the case I'm wrong, the call may be put later but in this case in derived model one should be put inside
// SupplInitialize(): we do not want for instance intialization step such as the computing of the static
// case to occur.
PrecomputeExit(morefem_data);
static_cast<DerivedT&>(*this).SupplInitialize();
if (do_clear_god_of_dof_temporary_data_after_initialize_)
ClearGodOfDofTemporaryData();
ClearAllBoundaryConditionInitialValueList();
// If the point was just to write preprocessed data; stop the program here.
// Note: in the derived model you may want to call this earlier; for instance if the static computation
// is performed in the initialization phase you may want to leave before it happens.
PrecomputeExit(morefem_data);
}
......
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