Homec4science

Added some optimization to `SolidMechanicsModel::reassignMaterial()`.

Authored by Philip Mueller, KY <philip.paul.mueller@bluemail.ch> on Jan 24 2023, 09:39.

Description

Added some optimization to SolidMechanicsModel::reassignMaterial().

The function now checks if the assignement of a material has changed and only in that case calls Material::addElements() and Material::removeElements().
Further the same optimization was applied to the mentioned material functions.
In addition this commit also fixed am error related to the debug system (a missing AKANTU_DEBUG_OUT() call was missing in Material::removeElements()).

Details

Committed
Philip Mueller, KY <philip.paul.mueller@bluemail.ch>Jan 24 2023, 09:39
Pushed
gitlab-richartJan 24 2023, 09:43
Parents
rAKAa01c59ee807f: Mess-up in the generalized trapezoidal coefficients
Branches
Unknown
Tags
Unknown

Event Timeline

Philip Mueller, KY <philip.paul.mueller@bluemail.ch> committed rAKAc8b142d3ac4a: Added some optimization to `SolidMechanicsModel::reassignMaterial()`. (authored by Philip Mueller, KY <philip.paul.mueller@bluemail.ch>).Jan 24 2023, 09:39