Skip to content

Commit

Permalink
Save the toroidal modes to the restart file.
Browse files Browse the repository at this point in the history
  • Loading branch information
cianciosa committed Jan 29, 2024
1 parent 69d2fec commit 97d204a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/restart_mod.f90
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,8 @@ SUBROUTINE restart_write(restart_ext, wout_file)
CALL cdf_define(ncid, vn_nfpin, nfp)
CALL cdf_define(ncid, vn_wout, wout_file)

CALL cdf_define(ncid, vn_tor_modes, fourier_context%tor_modes)

CALL cdf_define(ncid, vn_jbsupss, jbsupsmnsh, dimname=restart_dims)
CALL cdf_define(ncid, vn_jbsupuc, jbsupumnch, dimname=restart_dims)
CALL cdf_define(ncid, vn_jbsupvc, jbsupvmnch, dimname=restart_dims)
Expand Down Expand Up @@ -546,6 +548,8 @@ SUBROUTINE restart_write(restart_ext, wout_file)
CALL cdf_write(ncid, vn_nfpin, nfp)
CALL cdf_write(ncid, vn_wout, wout_file)

CALL cdf_write(ncid, vn_tor_modes, fourier_context%tor_modes)

CALL cdf_write(ncid, vn_jbsupss, jbsupsmnsh)
CALL cdf_write(ncid, vn_jbsupuc, jbsupumnch)
CALL cdf_write(ncid, vn_jbsupvc, jbsupvmnch)
Expand Down

0 comments on commit 97d204a

Please sign in to comment.