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.
When a
GRParmParse::load()
overload is called and a default value is used as the parameter is not present in theParmParse
table, this default value will now be added to theParmParse
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 ofParmParse::queryarr()
forstd::array
s ofbool
s.This is the first very small step to tackling #1.