grinsfem / grins

Multiphysics Finite Element package built on libMesh
http://grinsfem.github.io
Other
47 stars 39 forks source link

Clear VariableWarehouse in Simultion destructor #440

Open tradowsk opened 8 years ago

tradowsk commented 8 years ago

Per @pbauman's request, might be a good idea to GRINS::GRINSPrivate::VariableWarehouse::clear() when a GRINS::Simulation object is destroyed to prevent interference if another Simulation object is later created again.

pbauman commented 8 years ago

Context for future me: Wanting to create several Simulation objects in the same program is problematic at the moment since the VariableWarehouse has static data structures. We have the clear() method - should probably use it in the Simulation destructor.