write_omega Subroutine

public subroutine write_omega(gnostics)

Write omega, omega_average as functions of kx, ky and time to the new netcdf file

Arguments

Type IntentOptional Attributes Name
type(diagnostics_type), intent(in) :: gnostics

Contents

Source Code


Source Code

  subroutine write_omega(gnostics)
    use gs2_time, only: woutunits
    use diagnostics_config, only: diagnostics_type
    use gs2_io, only: nc_write_omega
    implicit none
    type(diagnostics_type), intent(in) :: gnostics

    if (.not. gnostics%writing) return

    call nc_write_omega(gnostics%file_id, gnostics%nout, &
         omegahist(mod(gnostics%istep, gnostics%navg), :, :), omega_average, woutunits)

  end subroutine write_omega