Changeset 3050 for trunk/LMDZ.COMMON/libf/evolution/read_data_GCM.F90
- Timestamp:
- Sep 26, 2023, 3:57:38 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/read_data_GCM.F90
r2985 r3050 80 80 B=1/m_noco2 81 81 82 print *,"Opening ", fichnom, "..."82 write(*,*) "Opening ", fichnom, "..." 83 83 84 84 ! Open initial state NetCDF file … … 86 86 CALL err(NF90_OPEN(var,NF90_NOWRITE,fID),"open",var) 87 87 88 print *,"Downloading data for vmr co2..."88 write(*,*) "Downloading data for vmr co2..." 89 89 90 90 CALL get_var3("co2_layer1" ,q_co2_dyn) 91 91 92 print *,"Downloading data for vmr co2 done"93 print *,"Downloading data for vmr h20..."92 write(*,*) "Downloading data for vmr co2 done" 93 write(*,*) "Downloading data for vmr h20..." 94 94 95 95 CALL get_var3("h2o_layer1" ,q_h2o_dyn) 96 96 97 print *,"Downloading data for vmr h2o done"98 print *,"Downloading data for surface pressure ..."97 write(*,*) "Downloading data for vmr h2o done" 98 write(*,*) "Downloading data for surface pressure ..." 99 99 100 100 CALL get_var3("ps" ,ps_GCM) 101 101 102 print *,"Downloading data for surface pressure done"103 print *,"nslope=", nslope102 write(*,*) "Downloading data for surface pressure done" 103 write(*,*) "nslope=", nslope 104 104 105 105 if(nslope.gt.1) then 106 106 107 print *,"Downloading data for co2ice_slope ..."107 write(*,*) "Downloading data for co2ice_slope ..." 108 108 109 109 DO islope=1,nslope … … 112 112 ENDDO 113 113 114 print *,"Downloading data for co2ice_slope done"115 print *,"Downloading data for h2o_ice_s_slope ..."114 write(*,*) "Downloading data for co2ice_slope done" 115 write(*,*) "Downloading data for h2o_ice_s_slope ..." 116 116 117 117 DO islope=1,nslope … … 120 120 ENDDO 121 121 122 print *,"Downloading data for h2o_ice_s_slope done"122 write(*,*) "Downloading data for h2o_ice_s_slope done" 123 123 124 124 #ifndef CPP_STD 125 125 126 print *,"Downloading data for watercap_slope ..."126 write(*,*) "Downloading data for watercap_slope ..." 127 127 DO islope=1,nslope 128 128 write(num,fmt='(i2.2)') islope … … 130 130 ! watercap_slope(:,:,:,:)= 0. 131 131 ENDDO 132 print *,"Downloading data for watercap_slope done"132 write(*,*) "Downloading data for watercap_slope done" 133 133 134 134 #endif 135 135 136 print *,"Downloading data for tsurf_slope ..."136 write(*,*) "Downloading data for tsurf_slope ..." 137 137 138 138 DO islope=1,nslope … … 141 141 ENDDO 142 142 143 print *,"Downloading data for tsurf_slope done"143 write(*,*) "Downloading data for tsurf_slope done" 144 144 145 145 #ifndef CPP_STD … … 147 147 if(soil_pem) then 148 148 149 print *,"Downloading data for soiltemp_slope ..."149 write(*,*) "Downloading data for soiltemp_slope ..." 150 150 151 151 DO islope=1,nslope … … 154 154 ENDDO 155 155 156 print *,"Downloading data for soiltemp_slope done"157 158 print *,"Downloading data for watersoil_density ..."156 write(*,*) "Downloading data for soiltemp_slope done" 157 158 write(*,*) "Downloading data for watersoil_density ..." 159 159 160 160 DO islope=1,nslope … … 163 163 ENDDO 164 164 165 print *,"Downloading data for watersoil_density done"166 167 print *,"Downloading data for watersurf_density ..."165 write(*,*) "Downloading data for watersoil_density done" 166 167 write(*,*) "Downloading data for watersurf_density ..." 168 168 169 169 DO islope=1,nslope … … 172 172 ENDDO 173 173 174 print *,"Downloading data for watersurf_density done"174 write(*,*) "Downloading data for watersurf_density done" 175 175 176 176 endif !soil_pem … … 196 196 197 197 ! Compute the minimum over the year for each point 198 print *,"Computing the min of h2o_ice_slope"198 write(*,*) "Computing the min of h2o_ice_slope" 199 199 min_h2o_ice_dyn(:,:,:)=minval(h2o_ice_s_dyn+watercap_slope,4) 200 print *,"Computing the min of co2_ice_slope"200 write(*,*) "Computing the min of co2_ice_slope" 201 201 min_co2_ice_dyn(:,:,:)=minval(co2_ice_slope_dyn,4) 202 202 203 203 !Compute averages 204 204 205 print *,"Computing average of tsurf"205 write(*,*) "Computing average of tsurf" 206 206 tsurf_ave_dyn(:,:,:)=SUM(tsurf_gcm_dyn(:,:,:,:),4)/timelen 207 207 … … 215 215 216 216 if(soil_pem) then 217 print *,"Computing average of tsoil"217 write(*,*) "Computing average of tsoil" 218 218 tsoil_ave_dyn(:,:,:,:)=SUM(tsoil_gcm_dyn(:,:,:,:,:),5)/timelen 219 print *,"Computing average of watersurf_density"219 write(*,*) "Computing average of watersurf_density" 220 220 watersurf_density_ave(:,:) = SUM(watersurf_density(:,:,:),3)/timelen 221 221 endif
Note: See TracChangeset
for help on using the changeset viewer.