Skip to content

Commit

Permalink
Merge pull request #12 from arcaneframework/dev/sdc-fix-geometry-update
Browse files Browse the repository at this point in the history
Add missing geometry update
  • Loading branch information
stdcm authored May 3, 2024
2 parents f0fcd46 + b1433f1 commit 70ae5bb
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/TwoPhaseFlowSimulation/TwoPhaseFlowSimulationModule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ class TwoPhaseFlowSimulationModule
void _initRestore();
void _initLaws();
void _initNewton();
// update function
void _updateGeometry();
// build functions
template<typename Folder>
void _evaluateLaws(Folder& folder, Law::EvaluationMode derivability);
Expand Down Expand Up @@ -288,11 +290,21 @@ _initGeometry()

info() << "force update of geometric properties";

_updateGeometry();

}

/*---------------------------------------------------------------------------*/

void
TwoPhaseFlowSimulationModule::
_updateGeometry(){
IGeometryPolicy* geometry_policy = new ManualUpdateGeometryPolicy;
IAppServiceMng* app_service_mng = IAppServiceMng::instance(subDomain()->serviceMng());
IGeometryMng* geometry_mng = app_service_mng->find<IGeometryMng>(true);
geometry_mng->update(mesh(), geometry_policy);
delete geometry_policy;
}

/*---------------------------------------------------------------------------*/

void
Expand All @@ -303,6 +315,8 @@ _initGroup()
groupCreator -> init() ;
groupCreator -> prepare() ;
groupCreator -> apply() ;
// Group creation add new Geometry properties: need to update GeometryMng
_updateGeometry();
}

/*---------------------------------------------------------------------------*/
Expand Down

0 comments on commit 70ae5bb

Please sign in to comment.