Skip to content

Commit

Permalink
Set default values for old deprecated variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
HanneThienpondt committed Sep 30, 2024
1 parent 3289d75 commit ba6299e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion STELLA_CODE/parameters/update_input_file.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,18 @@ subroutine backwards_compatibility_stella_diagnostics_knobs()
write_omega, write_kspectra, write_moments, write_radial_fluxes, &
write_radial_moments, write_fluxes_kxkyz, flux_norm, nc_mult, &
write_apar_vs_time, write_bpar_vs_time


! Set default values for the parameters which are not used anymore
write_phi_vs_time = .false.
write_gvmus = .false.
write_gzvs = .false.
write_omega = .false.
write_kspectra = .false.

! Set the following two values to true since they do not exist on all old versions
write_apar_vs_time = .true.
write_bpar_vs_time = .true.

! Check whether the old knob exists
unit_number_temp = input_unit_exist("stella_diagnostics_knobs", old_nml_exist)

Expand Down

0 comments on commit ba6299e

Please sign in to comment.