modules/solid: Calculate DiNum before mesh update

This is consistent with the fluid solvers, and prevents failures
associated with using fields that haven't yet been updated or corrected
following mesh changes
This commit is contained in:
Will Bainbridge
2023-11-16 12:43:31 +00:00
parent f6f55caf02
commit 5659e372f3

View File

@ -174,13 +174,13 @@ void Foam::solvers::solid::preSolve()
{
fvModels().preUpdateMesh();
// Update the mesh for topology change, mesh to mesh mapping
mesh_.update();
if (transient())
{
correctDiNum();
}
// Update the mesh for topology change, mesh to mesh mapping
mesh_.update();
}