pecos / tps

Torch Plasma Simulator
BSD 3-Clause "New" or "Revised" License
8 stars 2 forks source link

Enable variable order restarts with hdf5 #10

Closed trevilo closed 3 years ago

trevilo commented 3 years ago

This PR enables variable order restarts (on the same mesh, with the same parallel decomposition) using the hdf5-based restart file capability from #5. To use, add RESTART_FROM_AUX to your configuration file and change POL_ORDER to the new order. Unlike the previous ascii-restart-based version of this capability, there is no need to specify AUX_ORDER, as the old order is determined from the hdf5 restart file.

Since we are not fully supporting ascii-based restarts, the old capability has been stripped out. If you have an ascii file that you want to use to restart at a new order, it should first be converted to hdf5 (#6).

Finally, the new implementation uses built-in MFEM functions to do the interpolation from the old to the new order, so tps code with similar functionality (e.g., M2ulPhyS::interpolateAux2Order()) was removed.