GRTLCollaboration / GRTeclyn

Port of GRChombo to AMReX - under development!
BSD 3-Clause "New" or "Revised" License
4 stars 2 forks source link

GRParmParse: Add default values to the ParmParse table #70

Closed mirenradia closed 1 month ago

mirenradia commented 1 month ago

When a GRParmParse::load() overload is called and a default value is used as the parameter is not present in the ParmParse table, this default value will now be added to the ParmParse table.

This behaviour is similar to AMReX's ParmParse::queryAdd() function (which we use to implement as it saves us some boilerplate code) except we continue to print out our default message.

It was necessary to change the type of the variable that is used to store the isPeriodic parameter (temporarily) to get this to work as there doesn't seem to be an overload of ParmParse::queryarr() for std::arrays of bools.

This is the first very small step to tackling #1.