Changeset 322 for trunk/LMDZ.MARS/util
- Timestamp:
- Oct 21, 2011, 10:59:42 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/util/concatnc.F90
r280 r322 1085 1085 ierr=NF_INQ_VARID(nid,"Time",nvarid) 1086 1086 if (ierr.NE.NF_NOERR) then 1087 write(*,*) 'ERROR : Field <Time> not found'1087 write(*,*) 'ERROR in change_time_axis: Field <Time> not found' 1088 1088 print*, NF_STRERROR(ierr) 1089 1089 stop "" … … 1097 1097 ierr = NF_GET_VAR_REAL(nid,nvarid,time) 1098 1098 #endif 1099 if (ierr.ne.NF_NOERR) then 1100 write(*,*) "ERROR in change_time_axis: Failed to load Time" 1101 stop 1102 endif 1099 1103 1100 1104 !============================================================================== … … 1107 1111 1108 1112 !============================================================================== 1109 ! 2. Write 1113 ! 2.1 Check if there are not jumps in Ls (rounding problems in sol2ls) 1114 !============================================================================== 1115 1116 do i=1,timelen-1 1117 if ((ls(i+1)-ls(i)) > 350) then 1118 write(*,*) "+ 360° Ls jump solved:", ls(i), ls(i+1), "at timestep", i 1119 ls(i+1) = ls(i+1) - 360 1120 write(*,*) " corrected to now be:", ls(i), ls(i+1) 1121 else if ((ls(i)-ls(i+1)) > 350) then 1122 write(*,*) "- 360° Ls jump solved:", ls(i), ls(i+1), "at timestep", i 1123 ls(i+1) = ls(i+1) + 360 1124 write(*,*) " corrected to now be:", ls(i), ls(i+1) 1125 endif 1126 enddo 1127 1128 !============================================================================== 1129 ! 3. Write 1110 1130 !============================================================================== 1111 1131 … … 1115 1135 ierr = NF_PUT_VAR_REAL(nid,nvarid,ls) 1116 1136 #endif 1137 if (ierr.ne.NF_NOERR) then 1138 write(*,*) "ERROR in change_time_axis: Failed to write Ls" 1139 stop 1140 endif 1117 1141 1118 1142 end subroutine change_time_axis
Note: See TracChangeset
for help on using the changeset viewer.