Homec4science

Added a check to the `initFullImpl()` function of the `Model` to check the…

Authored by Philip Mueller, HS <philip.paul.mueller@bluemail.ch> on Mar 14 2022, 15:49.

Description

Added a check to the initFullImpl() function of the Model to check the "distribution state" of the model.

This check catches a very exotic bug, that can surfaces if the mesh and the model are not correcly initialized.
If the model, i.e. more precice the DOF manager, is created before the mesh was set to ditributed, then some internal members of it, such as the residual or the data_cache are created not distributed.
This leads to problem further down, at least in some cases.

This commit catches some form of this bug, by introducing a check inside initFullImpl() function of the akantu::Model class.
It checks if both the residual and the mesh are either distributed or not distributed.

Details

Committed
Philip Mueller, HS <philip.paul.mueller@bluemail.ch>Mar 15 2022, 07:46
Pushed
gitlab-richartMar 15 2022, 08:06
Parents
rAKA1777d544246a: Updated the Python interface of the `Mesh`.
Branches
Unknown
Tags
Unknown

Event Timeline

Philip Mueller, HS <philip.paul.mueller@bluemail.ch> committed rAKA0dbef4831570: Added a check to the `initFullImpl()` function of the `Model` to check the… (authored by Philip Mueller, HS <philip.paul.mueller@bluemail.ch>).Mar 15 2022, 07:46