This function changes a SWAP parameter. It is passed a parameter dataframe
as parsed by parse_swap_file()
as well as the name of the parameter which
should be modified, along with its value.
change_swap_par(param, name, value)
Parameter set (dataframe)
name of the parameter to change (string)
value the parameter should take on (string)
This function returns the same dataframe it was passed, with the parameter value altered.
Important: this function only works for single parameters. Any values stored as "tables" in the SWAP input file will need to be modified in another way (WIP)
Note: the value of the parameter should be passed as a string in the correct format (ie. correct decimal place), as SWAP/FORTRAN is very particular about this