Adding Parameters
Adding Changeable (‘P’) Parameters
Consider making a git branch that can be merged to master branch later
In
KEPCOMincreasencurversionto next100according to versioning guide.In
KEPCOMincreasenparmaccordinglyIf the variable is not real, prefix with a
zand add the integer definition and equivalence section at the bottom ofKEPCOMAdd real variable name at the end of list following
pdumx, both for the definition and to the common blockIn
KEPDAT.Fadd the variable name tonameparm(original name, withoutzif integer) and the type toiptype(0for integer,1for real)In
GENER.Fadd a default value to the end of list after commentc.... set default parameters
In
DUMPIO.Fadd a new case to set default values for new parameter in case a previous dump is loaded. Ideally, for old dumps old behavior is continued, new version may have different default behaviour, as you have set inGENER.F. Add this before the linec.... END OF VERSION UPDATES
such that version updates are in order by increasing version number. Do not forget to set the new version in
nsetparm.Update
doc/parameters/function.rstto document new parameter!
Adding Edit (‘Q’) Parameters
Consider making a git branch that can be merged to master branch later
In
KEPCOMincreasencurversionto next1according to versioning guide, as with each code change.In
KEPCOMincreasenqparmaccordinglyIf the variable is not real, prefix with a
zand add the integer definition and equivalence section at the bottom ofKEPCOMAdd real variable name at the end of list following
qdumx, both for the definition and to the common blockIn
KEPDAT.Fadd the variable name tonameqprm(original name, withoutzif integer) and the type toiqtype(0for integer,1for real)In
GENER.Fensure initialisation as needed.In
DUMPIO.Fadd a new case to set default values for new q-parameter in case a previous dump is loaded. See instructions above for editable parameters.Update
doc/qparm/function.rstto document new edit parameter!