Adding Parameters - hyschive/gamer-fork GitHub Wiki

TBF.

Mandatory steps are marked by 📌.

  1. 📌 Add new global variables to both src/GAMER/Main.cpp and include/Global.h

  2. 📌 Edit src/Init/Init_Load_Parameter.cpp to load new parameters

  3. Add notes in src/Auxiliary/Aux_TakeNote.cpp [optional but recommended]

  4. Add checks in src/Auxiliary/Aux_Check.cpp [optional but recommended]

  5. Record new parameter in the HDF5 snapshots [optional but recommended]

    1. Add new parameters to include/HDF5_Typedef.h

    2. Add new parameters to src/Output/Output_DumpData_Total_HDF5.cpp

    3. Check new parameters during restart by editing src/Init/Init_Restart_HDF5.cpp