Initialise some flags in gs2 save and improve restart file treatment
David Dickinson
Branch: bugfix/initialise_some_flags_in_gs2_save_and_improve_restart_file_treatment
Branch: 8.1-RC
Merged
Merged pull request
Merged in bugfix/initialise_some_flags_in_gs2_save_and_improve_restart_file_treatment (pull request #524)
Make sure save_many and read_many are always initialised
Accept any length string in call to set_restart_file
Truncate set_restart_file argument if required (and warn)
Small tweaks to make it easier to use the gs2_save module without going through the full initialisation of gs2. In 8.2 we should probably seek to avoid
run_name_size
and instead adopt allocatable strings.Prior to this PR, calling
set_restart_file(some_short_string)
would lead to run time memory troubles as the argument was not exactlyrun_name_size
length.