Adding Parameters

Adding Changeable (‘P’) Parameters

  • Consider making a git branch that can be merged to master branch later

  • In KEPCOM increase ncurversion to next 100 according to versioning guide.

  • In KEPCOM increase nparm accordingly

  • If the variable is not real, prefix with a z and add the integer definition and equivalence section at the bottom of KEPCOM

  • Add real variable name at the end of list following pdumx, both for the definition and to the common block

  • In KEPDAT.F add the variable name to nameparm (original name, without z if integer) and the type to iptype (0 for integer, 1 for real)

  • In GENER.F add a default value to the end of list after comment

    c.... set default parameters
    
  • In DUMPIO.F add 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 in GENER.F. Add this before the line

    c.... 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.rst to document new parameter!

Adding Edit (‘Q’) Parameters

  • Consider making a git branch that can be merged to master branch later

  • In KEPCOM increase ncurversion to next 1 according to versioning guide, as with each code change.

  • In KEPCOM increase nqparm accordingly

  • If the variable is not real, prefix with a z and add the integer definition and equivalence section at the bottom of KEPCOM

  • Add real variable name at the end of list following qdumx, both for the definition and to the common block

  • In KEPDAT.F add the variable name to nameqprm (original name, without z if integer) and the type to iqtype (0 for integer, 1 for real)

  • In GENER.F ensure initialisation as needed.

  • In DUMPIO.F add 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.rst to document new edit parameter!