|
@@ -1115,23 +1115,27 @@ IF (ierr .NE. nf90_noerr ) THEN
|
|
|
STOP
|
|
|
END IF
|
|
|
|
|
|
-! 3.C.1.A Sea surface salinity
|
|
|
-! Request variable ID
|
|
|
-ierr = nf90_inq_varid(incid_oce_an_in, csss_m, ivarid)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file var. inquiry. Abort"
|
|
|
- WRITE(*,*), TRIM(cfile_analysis_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
-
|
|
|
-! Get variable
|
|
|
-ierr = nf90_get_var(incid_oce_an_in, ivarid, sss_m_an)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file get. Abort"
|
|
|
- WRITE(*,*), TRIM(cfile_analysis_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
|
|
|
+! The following lines commented out because SSS does not appear anymore
|
|
|
+! as restart variable (2020)
|
|
|
+
|
|
|
+!! 3.C.1.A Sea surface salinity
|
|
|
+!! Request variable ID
|
|
|
+!ierr = nf90_inq_varid(incid_oce_an_in, csss_m, ivarid)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file var. inquiry. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfile_analysis_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
+!
|
|
|
+!! Get variable
|
|
|
+!ierr = nf90_get_var(incid_oce_an_in, ivarid, sss_m_an)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file get. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfile_analysis_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
+!
|
|
|
! 3.C.1.B Salinity
|
|
|
! Request variable ID
|
|
|
ierr = nf90_inq_varid(incid_oce_an_in, csn, ivarid)
|
|
@@ -1149,22 +1153,24 @@ IF (ierr .NE. nf90_noerr ) THEN
|
|
|
STOP
|
|
|
END IF
|
|
|
|
|
|
-! 3.C.1.C Sea surface temperature
|
|
|
-! Request variable ID
|
|
|
-ierr = nf90_inq_varid(incid_oce_an_in, csst_m, ivarid)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file var. inquiry. Abort"
|
|
|
- WRITE(*,*), TRIM(cfile_analysis_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
-
|
|
|
-! Get variable
|
|
|
-ierr = nf90_get_var(incid_oce_an_in, ivarid, sst_m_an)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file get. Abort"
|
|
|
- WRITE(*,*), TRIM(cfile_analysis_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
+! The following lines commented out because SST does not longer
|
|
|
+! appear as restart file (2020)
|
|
|
+!! 3.C.1.C Sea surface temperature
|
|
|
+!! Request variable ID
|
|
|
+!ierr = nf90_inq_varid(incid_oce_an_in, csst_m, ivarid)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file var. inquiry. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfile_analysis_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
+!
|
|
|
+!! Get variable
|
|
|
+!ierr = nf90_get_var(incid_oce_an_in, ivarid, sst_m_an)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file get. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfile_analysis_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
|
|
|
! 3.C.1.D. Temperature
|
|
|
ierr = nf90_inq_varid(incid_oce_an_in, ctn, ivarid)
|
|
@@ -1246,37 +1252,40 @@ IF (ierr .NE. nf90_noerr ) THEN
|
|
|
STOP
|
|
|
END IF
|
|
|
|
|
|
-! 3.C.1.I SSU-velocity ("ssu_m")
|
|
|
-ierr = nf90_inq_varid(incid_oce_an_in, cssu_m, ivarid)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file var. inquiry. Abort"
|
|
|
- WRITE(*,*), TRIM(cfile_analysis_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
-
|
|
|
-! Get variable
|
|
|
-ierr = nf90_get_var(incid_oce_an_in, ivarid, ssu_m_an)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file get. Abort"
|
|
|
- WRITE(*,*), TRIM(cfile_analysis_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
-
|
|
|
-! 3.C.1.J SSV-velocity ("ssv_m")
|
|
|
-ierr = nf90_inq_varid(incid_oce_an_in, cssv_m, ivarid)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file var. inquiry. Abort"
|
|
|
- WRITE(*,*), TRIM(cfile_analysis_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
-
|
|
|
-! Get variable
|
|
|
-ierr = nf90_get_var(incid_oce_an_in, ivarid, ssv_m_an)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file get. Abort"
|
|
|
- WRITE(*,*), TRIM(cfile_analysis_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
+! The following lines commented out because surface velocities no longer
|
|
|
+! appear as restart variables (2020)
|
|
|
+
|
|
|
+!! 3.C.1.I SSU-velocity ("ssu_m")
|
|
|
+!ierr = nf90_inq_varid(incid_oce_an_in, cssu_m, ivarid)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file var. inquiry. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfile_analysis_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
+!
|
|
|
+!! Get variable
|
|
|
+!ierr = nf90_get_var(incid_oce_an_in, ivarid, ssu_m_an)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file get. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfile_analysis_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
+!
|
|
|
+!! 3.C.1.J SSV-velocity ("ssv_m")
|
|
|
+!ierr = nf90_inq_varid(incid_oce_an_in, cssv_m, ivarid)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file var. inquiry. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfile_analysis_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
+!
|
|
|
+!! Get variable
|
|
|
+!ierr = nf90_get_var(incid_oce_an_in, ivarid, ssv_m_an)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file get. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfile_analysis_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
|
|
|
! Close analysis
|
|
|
ierr = nf90_close(incid_oce_an_in);
|
|
@@ -1294,22 +1303,26 @@ IF (ierr .NE. nf90_noerr ) THEN
|
|
|
STOP
|
|
|
END IF
|
|
|
|
|
|
-! 3.C.2.A Sea surface salinity
|
|
|
-! Request variable ID
|
|
|
-ierr = nf90_inq_varid(incid_oce_fc_in, csss_m, ivarid)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file var. inquiry. Abort"
|
|
|
- WRITE(*,*), TRIM(cfile_forecast_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
|
|
|
-! Get variable
|
|
|
-ierr = nf90_get_var(incid_oce_fc_in, ivarid, sss_m_fc)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file get. Abort"
|
|
|
- WRITE(*,*), TRIM(cfile_forecast_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
+! Following lines commented out as the variable no longer appears
|
|
|
+! in the restart files (2020
|
|
|
+
|
|
|
+!! 3.C.2.A Sea surface salinity
|
|
|
+!! Request variable ID
|
|
|
+!ierr = nf90_inq_varid(incid_oce_fc_in, csss_m, ivarid)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file var. inquiry. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfile_forecast_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
+!
|
|
|
+!! Get variable
|
|
|
+!ierr = nf90_get_var(incid_oce_fc_in, ivarid, sss_m_fc)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file get. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfile_forecast_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
|
|
|
! 3.C.2.B. Salinity
|
|
|
! Request variable ID
|
|
@@ -1328,22 +1341,25 @@ IF (ierr .NE. nf90_noerr ) THEN
|
|
|
STOP
|
|
|
END IF
|
|
|
|
|
|
-! 3.C.2.C Sea surface temperature
|
|
|
-! Request variable ID
|
|
|
-ierr = nf90_inq_varid(incid_oce_fc_in, csst_m, ivarid)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file var. inquiry. Abort"
|
|
|
- WRITE(*,*), TRIM(cfile_forecast_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
+! Following lines commented out as the variable no longer appears
|
|
|
+! in the restart files (2020)
|
|
|
|
|
|
-! Get variable
|
|
|
-ierr = nf90_get_var(incid_oce_fc_in, ivarid, sst_m_fc)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file get. Abort"
|
|
|
- WRITE(*,*), TRIM(cfile_forecast_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
+!! 3.C.2.C Sea surface temperature
|
|
|
+!! Request variable ID
|
|
|
+!ierr = nf90_inq_varid(incid_oce_fc_in, csst_m, ivarid)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file var. inquiry. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfile_forecast_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
+!
|
|
|
+!! Get variable
|
|
|
+!ierr = nf90_get_var(incid_oce_fc_in, ivarid, sst_m_fc)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file get. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfile_forecast_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
|
|
|
! 3.C.2.D. Temperature
|
|
|
! Request variable ID
|
|
@@ -1426,37 +1442,40 @@ IF (ierr .NE. nf90_noerr ) THEN
|
|
|
STOP
|
|
|
END IF
|
|
|
|
|
|
-! 3.C.2.I SSU-velocity ("ssu_m")
|
|
|
-ierr = nf90_inq_varid(incid_oce_fc_in, cssu_m, ivarid)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file var. inquiry. Abort"
|
|
|
- WRITE(*,*), TRIM(cfile_forecast_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
-
|
|
|
-! Get variable
|
|
|
-ierr = nf90_get_var(incid_oce_fc_in, ivarid, ssu_m_fc)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file get. Abort"
|
|
|
- WRITE(*,*), TRIM(cfile_forecast_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
-
|
|
|
-! 3.C.2.J SSV-velocity ("ssv_m")
|
|
|
-ierr = nf90_inq_varid(incid_oce_fc_in, cssv_m, ivarid)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file var. inquiry. Abort"
|
|
|
- WRITE(*,*), TRIM(cfile_forecast_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
-
|
|
|
+! Following lines commented out as the variable no longer appears
|
|
|
+! in the restart files (2020)
|
|
|
+
|
|
|
+!! 3.C.2.I SSU-velocity ("ssu_m")
|
|
|
+!ierr = nf90_inq_varid(incid_oce_fc_in, cssu_m, ivarid)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file var. inquiry. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfile_forecast_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
+!
|
|
|
+!! Get variable
|
|
|
+!ierr = nf90_get_var(incid_oce_fc_in, ivarid, ssu_m_fc)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file get. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfile_forecast_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
+
|
|
|
+!! 3.C.2.J SSV-velocity ("ssv_m")
|
|
|
+!ierr = nf90_inq_varid(incid_oce_fc_in, cssv_m, ivarid)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file var. inquiry. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfile_forecast_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
+!
|
|
|
! Get variable
|
|
|
-ierr = nf90_get_var(incid_oce_fc_in, ivarid, ssv_m_fc)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file get. Abort"
|
|
|
- WRITE(*,*), TRIM(cfile_forecast_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
+!ierr = nf90_get_var(incid_oce_fc_in, ivarid, ssv_m_fc)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF Ocean file get. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfile_forecast_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
|
|
|
|
|
|
|
|
@@ -2256,22 +2275,25 @@ IF (ierr .NE. nf90_noerr ) THEN
|
|
|
STOP
|
|
|
END IF
|
|
|
|
|
|
-! B. sss_m (sea surface salinity)
|
|
|
-cvarname= csss_m
|
|
|
-ierr = nf90_inq_varid(incid_oce_an_out, cvarname, ivarid)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF oce file var. inquiry. Abort"
|
|
|
- WRITE(*,*), TRIM(cfileout_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
+! Following lines commented out as the variable no longer appears
|
|
|
+! in the restart files (2020)
|
|
|
|
|
|
-! Put variable
|
|
|
-ierr = nf90_put_var(incid_oce_an_out, ivarid, sss_m_an(:,:))
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF oce file var. put. Abort"
|
|
|
- WRITE(*,*), TRIM(cfileout_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
+!! B. sss_m (sea surface salinity)
|
|
|
+!cvarname= csss_m
|
|
|
+!ierr = nf90_inq_varid(incid_oce_an_out, cvarname, ivarid)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF oce file var. inquiry. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfileout_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
+
|
|
|
+!! Put variable
|
|
|
+!ierr = nf90_put_var(incid_oce_an_out, ivarid, sss_m_an(:,:))
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF oce file var. put. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfileout_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
|
|
|
! C. tn (temperature)
|
|
|
cvarname= ctn
|
|
@@ -2291,22 +2313,25 @@ IF (ierr .NE. nf90_noerr ) THEN
|
|
|
STOP
|
|
|
END IF
|
|
|
|
|
|
-! D. sst_m (sea surface temperature)
|
|
|
-cvarname= csst_m
|
|
|
-ierr = nf90_inq_varid(incid_oce_an_out, cvarname, ivarid)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF oce file var. inquiry. Abort"
|
|
|
- WRITE(*,*), TRIM(cfileout_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
+! Following lines commented out as the variable no longer appears
|
|
|
+! in the restart files (2020)
|
|
|
|
|
|
-! Put variable
|
|
|
-ierr = nf90_put_var(incid_oce_an_out, ivarid, sst_m_an(:,:))
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF oce file var. put. Abort"
|
|
|
- WRITE(*,*), TRIM(cfileout_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
+!! D. sst_m (sea surface temperature)
|
|
|
+!cvarname= csst_m
|
|
|
+!ierr = nf90_inq_varid(incid_oce_an_out, cvarname, ivarid)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF oce file var. inquiry. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfileout_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
+
|
|
|
+!! Put variable
|
|
|
+!ierr = nf90_put_var(incid_oce_an_out, ivarid, sst_m_an(:,:))
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF oce file var. put. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfileout_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
|
|
|
! E. un (sea velocity, "un")
|
|
|
cvarname= cun
|
|
@@ -2377,39 +2402,42 @@ IF (ierr .NE. nf90_noerr ) THEN
|
|
|
STOP
|
|
|
END IF
|
|
|
|
|
|
-! I. ssu_m (sea surface velocity, "ssu_m")
|
|
|
-cvarname= cssu_m
|
|
|
-ierr = nf90_inq_varid(incid_oce_an_out, cvarname, ivarid)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF oce file var. inquiry. Abort"
|
|
|
- WRITE(*,*), TRIM(cfileout_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
-
|
|
|
-! Put variable
|
|
|
-ierr = nf90_put_var(incid_oce_an_out, ivarid, ssu_m_an(:,:))
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF oce file var. put. Abort"
|
|
|
- WRITE(*,*), TRIM(cfileout_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
-
|
|
|
-! J. ssv_m (sea surface velocity, "ssv_m")
|
|
|
-cvarname= cssv_m
|
|
|
-ierr = nf90_inq_varid(incid_oce_an_out, cvarname, ivarid)
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF oce file var. inquiry. Abort"
|
|
|
- WRITE(*,*), TRIM(cfileout_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
+! Following lines commented out as the variable no longer appears
|
|
|
+! in the restart files (2020)
|
|
|
|
|
|
-! Put variable
|
|
|
-ierr = nf90_put_var(incid_oce_an_out, ivarid, ssv_m_an(:,:))
|
|
|
-IF (ierr .NE. nf90_noerr ) THEN
|
|
|
- WRITE(*,*), "(sanity_check_LIM3) Error NetCDF oce file var. put. Abort"
|
|
|
- WRITE(*,*), TRIM(cfileout_oce)
|
|
|
- STOP
|
|
|
-END IF
|
|
|
+!! I. ssu_m (sea surface velocity, "ssu_m")
|
|
|
+!cvarname= cssu_m
|
|
|
+!ierr = nf90_inq_varid(incid_oce_an_out, cvarname, ivarid)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF oce file var. inquiry. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfileout_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
+!
|
|
|
+!! Put variable
|
|
|
+!ierr = nf90_put_var(incid_oce_an_out, ivarid, ssu_m_an(:,:))
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF oce file var. put. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfileout_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
+!
|
|
|
+!! J. ssv_m (sea surface velocity, "ssv_m")
|
|
|
+!cvarname= cssv_m
|
|
|
+!ierr = nf90_inq_varid(incid_oce_an_out, cvarname, ivarid)
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF oce file var. inquiry. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfileout_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
+!
|
|
|
+!! Put variable
|
|
|
+!ierr = nf90_put_var(incid_oce_an_out, ivarid, ssv_m_an(:,:))
|
|
|
+!IF (ierr .NE. nf90_noerr ) THEN
|
|
|
+! WRITE(*,*), "(sanity_check_LIM3) Error NetCDF oce file var. put. Abort"
|
|
|
+! WRITE(*,*), TRIM(cfileout_oce)
|
|
|
+! STOP
|
|
|
+!END IF
|
|
|
|
|
|
! Close file
|
|
|
ierr = nf90_close(incid_oce_an_out)
|