Skip to content

Commit

Permalink
Start making automatic tests compatible with old stella releases.
Browse files Browse the repository at this point in the history
  • Loading branch information
HanneThienpondt committed Sep 30, 2024
1 parent e6df7d3 commit 3289d75
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
&dissipation
hyper_dissipation = .true.
/
&time_advance_knobs
explicit_option = 'rk2'
/
&layouts_knobs
vms_layout = 'vms'
xyzs_layout = 'yxzs'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@

&time_advance_knobs
explicit_option = 'rk2'
/
&knobs
delt = 0.01
nstep = 10
fapar = 0.0
fbpar = 0.0
fphi = 1.0
/
&parameters_numerical
delt = 0.01
nstep = 10
print_extra_info_to_terminal = .false.
explicit_option = 'rk2'
/
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

&time_advance_knobs
explicit_option = 'rk2'
/
&knobs
delt = 0.01
nstep = 100
fapar = 0.0
fbpar = 0.0
fphi = 1.0
rng_seed = 1
/
&parameters_numerical
delt = 0.01
nstep = 100
print_extra_info_to_terminal = .false.
explicit_option = 'rk2'
rng_seed = 1
/
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
write_radial_moments = .true.
write_fluxes_kxkyz = .true.
flux_norm = .true.
write_apar_vs_time = .true.
write_bpar_vs_time = .true.
/
&diagnostics
nsave = 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
!include common_input_files/init_distribution_noise.in
!include common_input_files/write_all_diagnostics_nwrite10.in
!include common_input_files/other_knobs.in
!include common_input_files/short_time_trace_nstep100.in

&physics_flags
nonlinear = .true.
Expand All @@ -21,9 +22,4 @@
nmu = 2
nvgrid = 3
/
&knobs
delt = 0.01
nstep = 100
print_extra_info_to_terminal = .false.
rng_seed = 1
/

5 changes: 4 additions & 1 deletion STELLA_CODE/parameters/update_input_file.f90
Original file line number Diff line number Diff line change
Expand Up @@ -629,13 +629,16 @@ subroutine backwards_compatibility_knobs()
logical :: maxwellian_inside_zed_derivative_new, mirror_semi_lagrange_new, mirror_linear_interp_new
logical :: fields_kxkyz_new, mat_gen_new, mat_read_new, ky_solve_real_new, print_extra_info_to_terminal_new
character(20) :: delt_option_new, lu_option_new

! Old parameters which have been deprecated for a while
real :: fapar, fbpar

! Local parameters for this subroutine
logical :: old_nml_exist
logical :: double_definitions

! Old namelists
namelist /knobs/ fphi, delt, nstep, tend, delt_option, lu_option, autostop, &
namelist /knobs/ fphi, fapar, fbpar, delt, nstep, tend, delt_option, lu_option, autostop, &
avail_cpu_time, delt_max, delt_min, cfl_cushion_upper, cfl_cushion_middle, cfl_cushion_lower, &
stream_implicit, mirror_implicit, drifts_implicit, use_deltaphi_for_response_matrix, &
maxwellian_normalization, stream_matrix_inversion, maxwellian_inside_zed_derivative, &
Expand Down

0 comments on commit 3289d75

Please sign in to comment.