underworldcode / UWGeodynamics

Underworld Geodynamics
Other
81 stars 32 forks source link

Pt restart #268

Closed julesghub closed 2 years ago

julesghub commented 2 years ago

Workaround for passive tracer restart issues.

Only upon restart a temporary list of SwarmVariables is used to ensure the PT tracked variables use non-stale SwarmVariables. This temporary list is built using referencing to the Model.swarm_variables structure. It is only used in the restart() method.

Projected versions of swarm variables are not able to be restarted as "tracked" variables and shouldn't be tracked by the user.

rbeucher commented 2 years ago

Have you changed the add_passive_tracers method?

julesghub commented 2 years ago

Nope. Just the restart() method in _model.py

rbeucher commented 2 years ago

I thought we would restrict the users to only track fields that are existing.