Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Added j2 and j4 terms to NetCDF
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlisle April Wishard committed Mar 3, 2022
1 parent 9f85ac9 commit 5515769
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/netcdf/netcdf.f90
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,11 @@ module subroutine netcdf_initialize_output(self, param)
!call check( nf90_def_var_chunking(self%ncid, self%GMescape_varid, NF90_CHUNKED, [self%time_chunk]) )
end if

if (param%loblatecb) then
call check( nf90_def_var(self%ncid, J2RP2_VARNAME, self%out_type, self%time_dimid, self%j2rp2_varid) )
call check( nf90_def_var(self%ncid, J4RP4_VARNAME, self%out_type, self%time_dimid, self%j4rp4_varid) )
end if

! Set fill mode to NaN for all variables
call check( nf90_inquire(self%ncid, nVariables=nvar) )
do varid = 1, nvar
Expand Down Expand Up @@ -474,6 +479,11 @@ module subroutine netcdf_open(self, param, readonly)
call check( nf90_inq_varid(self%ncid, GMESCAPE_VARNAME, self%GMescape_varid) )
end if

if (param%loblatecb) then
call check( nf90_inq_varid(self%ncid, J2RP2_VARNAME, self%j2rp2_varid) )
call check( nf90_inq_varid(self%ncid, J4RP4_VARNAME, self%j4rp4_varid) )
end if

return
end subroutine netcdf_open

Expand Down

0 comments on commit 5515769

Please sign in to comment.