Transform to real space, then write to netCDF
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | time |
Current simulation time |
subroutine do_write_movie(time)
use gs2_io, only: nc_loop_movie, get_netcdf_movie_file_id
use mp, only: proc0
implicit none
!> Current simulation time
real, intent(in) :: time
if (proc0) then
call nc_loop_movie(get_netcdf_movie_file_id(), nout_movie, time)
end if
nout_movie = nout_movie + 1
end subroutine do_write_movie