Changeset 4259 for LMDZ6/trunk/libf/dyn3d_common
- Timestamp:
- Sep 20, 2022, 4:09:50 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/dyn3d_common/grilles_gcm_netcdf_sub.F90
r4258 r4259 11 11 USE comconst_mod, ONLY: cpp, kappa, g, omeg, daysec, rad, pi 12 12 USE comvert_mod, ONLY: presnivs, preff, pa 13 use netcdf, only: nf90_def_var, nf90_int, nf90_float 13 use netcdf, only: nf90_def_var, nf90_int, nf90_float, nf90_put_var 14 14 15 15 IMPLICIT NONE … … 147 147 ! rajoute l'ecriture de la grille 148 148 149 #ifdef NC_DOUBLE 150 status=NF_PUT_VARA_DOUBLE(ncid_out,out_lonuid,1,iim+1,rlonudeg) 151 CALL handle_err(status) 152 status=NF_PUT_VARA_DOUBLE(ncid_out,out_lonvid,1,iim+1,rlonvdeg) 153 CALL handle_err(status) 154 status=NF_PUT_VARA_DOUBLE(ncid_out,out_latuid,1,jjm+1,rlatudeg) 155 CALL handle_err(status) 156 status=NF_PUT_VARA_DOUBLE(ncid_out,out_latvid,1,jjm,rlatvdeg) 157 CALL handle_err(status) 158 #else 159 status=NF_PUT_VARA_REAL(ncid_out,out_lonuid,1,iim+1,rlonudeg) 160 CALL handle_err(status) 161 status=NF_PUT_VARA_REAL(ncid_out,out_lonvid,1,iim+1,rlonvdeg) 162 CALL handle_err(status) 163 status=NF_PUT_VARA_REAL(ncid_out,out_latuid,1,jjm+1,rlatudeg) 164 CALL handle_err(status) 165 status=NF_PUT_VARA_REAL(ncid_out,out_latvid,1,jjm,rlatvdeg) 166 CALL handle_err(status) 167 #endif 149 status=NF90_PUT_VAR(ncid_out,out_lonuid,rlonudeg,[1],[iim+1]) 150 CALL handle_err(status) 151 status=NF90_PUT_VAR(ncid_out,out_lonvid,rlonvdeg,[1],[iim+1]) 152 CALL handle_err(status) 153 status=NF90_PUT_VAR(ncid_out,out_latuid,rlatudeg,[1],[jjm+1]) 154 CALL handle_err(status) 155 status=NF90_PUT_VAR(ncid_out,out_latvid,rlatvdeg,[1],[jjm]) 156 CALL handle_err(status) 168 157 169 158 start(1)=1 … … 183 172 ENDDO 184 173 185 #ifdef NC_DOUBLE 186 status=NF_PUT_VARA_DOUBLE(ncid_out,out_varid,start, count,temp) 187 CALL handle_err(status) 188 #else 189 status=NF_PUT_VARA_REAL(ncid_out,out_varid,start, count,temp) 190 CALL handle_err(status) 191 #endif 174 status=NF90_PUT_VAR(ncid_out,out_varid,temp,start, count) 175 CALL handle_err(status) 192 176 193 177 ! On re-ouvre le fichier pour rajouter 4 nouvelles variables necessaire pour INCA … … 221 205 222 206 ! ecriture des variables 223 #ifdef NC_DOUBLE 224 status=NF_PUT_VARA_DOUBLE(ncid_out,presnivs_id,1,llm,rlevdeg) 225 CALL handle_err(status) 226 #else 227 status=NF_PUT_VARA_REAL(ncid_out,presnivs_id,1,llm,rlevdeg) 228 CALL handle_err(status) 229 #endif 207 status=NF90_PUT_VAR(ncid_out,presnivs_id,rlevdeg,[1],[llm]) 208 CALL handle_err(status) 230 209 231 210 start(1)=1 … … 238 217 COUNT(4)=0 239 218 240 status = nf _put_vara_double(ncid_out, phis_id,start,count, phis_loc)241 CALL handle_err(status) 242 status = nf _put_vara_double(ncid_out, area_id,start,count, aire)219 status = nf90_put_var(ncid_out, phis_id, phis_loc,start,count) 220 CALL handle_err(status) 221 status = nf90_put_var(ncid_out, area_id, aire,start,count) 243 222 CALL handle_err(status) 244 223 masque_int(:,:) = nINT(masque(:,:)) 245 status = nf _put_vara_int(ncid_out, mask_id,start,count,masque_int)224 status = nf90_put_var(ncid_out, mask_id,masque_int,start,count) 246 225 CALL handle_err(status) 247 226
Note: See TracChangeset
for help on using the changeset viewer.