geo-fluid-dynamics / phaseflow-fenics

Phaseflow simulates the convection-coupled melting and solidification of phase-change materials.
MIT License
52 stars 23 forks source link

How to change adaptive goal during a simulation? #288

Closed agzimmerman closed 6 years ago

agzimmerman commented 6 years ago

For anything going into the problem setup that will be used with an adaptive solver: the trick is to always fenics.split(solution.leaf_node()). You cannot do for exampe p, u = fenics.split(solution) and later do u.leaf_node(), and you can't do solution.split() or solution.leaf_node().split(). I figured this out just through trial and error. Soon this will be captured in our CI test suite with a water freezing test.