Closed dylan-copeland closed 1 year ago
@dylan-copeland What is the status of this PR?
With the default value of mode
, I guess it should not break any current capabilities. But since @debog and @ebchin both may use this script, I think it will be better for Debo and Eric to test if the changes in this PR won't break the current usage in their applications.
This PR generalizes examples/dmd/parametric_tw_csv.cpp in multiple ways.
_R.hdf
, whereR
is the rank.GetFilenameHDF
, and different naming conventions can be used by specifying-hdfmode
in the command line. There are many places where the HDF file name is used, so refactoring allows for new naming convetions to be implemented in just one place, inGetFilenameHDF
. For example, the default convention is dmd_data/simS/fieldName_R.hdf for simulation S and MPI rank R, whereas-hdfmode 1
uses the convention dmd_data/fieldNameS_R.hdf