geodynamics / aspect

A parallel, extensible finite element code to simulate convection in both 2D and 3D models.
https://aspect.geodynamics.org/
Other
217 stars 232 forks source link

Fix particle update script #5912

Closed gassmoeller closed 2 weeks ago

gassmoeller commented 2 weeks ago

The current particle update script in #5394 had a bug that caused it to delete the parameters in the global "Particles" subsection if that subsection already existed (it did not exist in any file before #5394). This mostly means you cannot apply this script again to a file that was already updated without deleting parameters. This PR fixes the problem by detecting if the parameters have already been moved and then skipping the operation.