Changeset 2573 for trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars
- Timestamp:
- Oct 25, 2021, 11:01:18 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/ini_archive.F
r1422 r2573 176 176 ierr = NF_REDEF (nid) 177 177 #ifdef NC_DOUBLE 178 ierr = NF_DEF_VAR (nid,"controle",NF_DOUBLE,1, idim_index,nvarid)179 #else 180 ierr = NF_DEF_VAR (nid,"controle",NF_FLOAT,1, idim_index,nvarid)178 ierr = NF_DEF_VAR (nid,"controle",NF_DOUBLE,1,[idim_index],nvarid) 179 #else 180 ierr = NF_DEF_VAR (nid,"controle",NF_FLOAT,1,[idim_index],nvarid) 181 181 #endif 182 182 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 22, … … 195 195 ierr = NF_REDEF (nid) 196 196 #ifdef NC_DOUBLE 197 ierr = NF_DEF_VAR (nid,"rlonu",NF_DOUBLE,1, idim_rlonu,nvarid)198 #else 199 ierr = NF_DEF_VAR (nid,"rlonu",NF_FLOAT,1, idim_rlonu,nvarid)197 ierr = NF_DEF_VAR (nid,"rlonu",NF_DOUBLE,1,[idim_rlonu],nvarid) 198 #else 199 ierr = NF_DEF_VAR (nid,"rlonu",NF_FLOAT,1,[idim_rlonu],nvarid) 200 200 #endif 201 201 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 23, … … 210 210 ierr = NF_REDEF (nid) 211 211 #ifdef NC_DOUBLE 212 ierr = NF_DEF_VAR (nid,"rlatu",NF_DOUBLE,1, idim_rlatu,nvarid)213 #else 214 ierr = NF_DEF_VAR (nid,"rlatu",NF_FLOAT,1, idim_rlatu,nvarid)212 ierr = NF_DEF_VAR (nid,"rlatu",NF_DOUBLE,1,[idim_rlatu],nvarid) 213 #else 214 ierr = NF_DEF_VAR (nid,"rlatu",NF_FLOAT,1,[idim_rlatu],nvarid) 215 215 #endif 216 216 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 22, … … 225 225 ierr = NF_REDEF (nid) 226 226 #ifdef NC_DOUBLE 227 ierr = NF_DEF_VAR (nid,"rlonv",NF_DOUBLE,1, idim_rlonv,nvarid)228 #else 229 ierr = NF_DEF_VAR (nid,"rlonv",NF_FLOAT,1, idim_rlonv,nvarid)227 ierr = NF_DEF_VAR (nid,"rlonv",NF_DOUBLE,1,[idim_rlonv],nvarid) 228 #else 229 ierr = NF_DEF_VAR (nid,"rlonv",NF_FLOAT,1,[idim_rlonv],nvarid) 230 230 #endif 231 231 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 23, … … 240 240 ierr = NF_REDEF (nid) 241 241 #ifdef NC_DOUBLE 242 ierr = NF_DEF_VAR (nid,"rlatv",NF_DOUBLE,1, idim_rlatv,nvarid)243 #else 244 ierr = NF_DEF_VAR (nid,"rlatv",NF_FLOAT,1, idim_rlatv,nvarid)242 ierr = NF_DEF_VAR (nid,"rlatv",NF_DOUBLE,1,[idim_rlatv],nvarid) 243 #else 244 ierr = NF_DEF_VAR (nid,"rlatv",NF_FLOAT,1,[idim_rlatv],nvarid) 245 245 #endif 246 246 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 22, … … 260 260 ierr = NF_REDEF (nid) 261 261 #ifdef NC_DOUBLE 262 ierr = NF_DEF_VAR (nid,"ap",NF_DOUBLE,1, idim_llmp1,nvarid)263 #else 264 ierr = NF_DEF_VAR (nid,"ap",NF_FLOAT,1, idim_llmp1,nvarid)262 ierr = NF_DEF_VAR (nid,"ap",NF_DOUBLE,1,[idim_llmp1],nvarid) 263 #else 264 ierr = NF_DEF_VAR (nid,"ap",NF_FLOAT,1,[idim_llmp1],nvarid) 265 265 #endif 266 266 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 32, … … 275 275 ierr = NF_REDEF (nid) 276 276 #ifdef NC_DOUBLE 277 ierr = NF_DEF_VAR (nid,"bp",NF_DOUBLE,1, idim_llmp1,nvarid)278 #else 279 ierr = NF_DEF_VAR (nid,"bp",NF_FLOAT,1, idim_llmp1,nvarid)277 ierr = NF_DEF_VAR (nid,"bp",NF_DOUBLE,1,[idim_llmp1],nvarid) 278 #else 279 ierr = NF_DEF_VAR (nid,"bp",NF_FLOAT,1,[idim_llmp1],nvarid) 280 280 #endif 281 281 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 35, … … 291 291 ierr = NF_REDEF (nid) 292 292 #ifdef NC_DOUBLE 293 ierr = NF_DEF_VAR (nid,"aps",NF_DOUBLE,1, idim_llm,nvarid)294 #else 295 ierr = NF_DEF_VAR (nid,"aps",NF_FLOAT,1, idim_llm,nvarid)293 ierr = NF_DEF_VAR (nid,"aps",NF_DOUBLE,1,[idim_llm],nvarid) 294 #else 295 ierr = NF_DEF_VAR (nid,"aps",NF_FLOAT,1,[idim_llm],nvarid) 296 296 #endif 297 297 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 36, … … 307 307 ierr = NF_REDEF (nid) 308 308 #ifdef NC_DOUBLE 309 ierr = NF_DEF_VAR (nid,"bps",NF_DOUBLE,1, idim_llm,nvarid)310 #else 311 ierr = NF_DEF_VAR (nid,"bps",NF_FLOAT,1, idim_llm,nvarid)309 ierr = NF_DEF_VAR (nid,"bps",NF_DOUBLE,1,[idim_llm],nvarid) 310 #else 311 ierr = NF_DEF_VAR (nid,"bps",NF_FLOAT,1,[idim_llm],nvarid) 312 312 #endif 313 313 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 30, … … 324 324 ierr = NF_REDEF (nid) 325 325 #ifdef NC_DOUBLE 326 ierr = NF_DEF_VAR (nid,"presnivs",NF_DOUBLE,1, idim_llm,nvarid)327 #else 328 ierr = NF_DEF_VAR (nid,"presnivs",NF_FLOAT,1, idim_llm,nvarid)326 ierr = NF_DEF_VAR (nid,"presnivs",NF_DOUBLE,1,[idim_llm],nvarid) 327 #else 328 ierr = NF_DEF_VAR (nid,"presnivs",NF_FLOAT,1,[idim_llm],nvarid) 329 329 #endif 330 330 ierr = NF_ENDDEF(nid) … … 339 339 ierr = NF_REDEF (nid) 340 340 #ifdef NC_DOUBLE 341 ierr = NF_DEF_VAR (nid,"latitude",NF_DOUBLE,1, idim_rlatu,nvarid)342 #else 343 ierr = NF_DEF_VAR (nid,"latitude",NF_FLOAT,1, idim_rlatu,nvarid)341 ierr = NF_DEF_VAR (nid,"latitude",NF_DOUBLE,1,[idim_rlatu],nvarid) 342 #else 343 ierr = NF_DEF_VAR (nid,"latitude",NF_FLOAT,1,[idim_rlatu],nvarid) 344 344 #endif 345 345 ierr =NF_PUT_ATT_TEXT(nid,nvarid,'units',13,"degrees_north") … … 355 355 ierr = NF_REDEF (nid) 356 356 #ifdef NC_DOUBLE 357 ierr =NF_DEF_VAR(nid,"longitude", NF_DOUBLE, 1, idim_rlonv,nvarid)358 #else 359 ierr = NF_DEF_VAR(nid,"longitude", NF_FLOAT, 1, idim_rlonv,nvarid)357 ierr=NF_DEF_VAR(nid,"longitude",NF_DOUBLE,1,[idim_rlonv],nvarid) 358 #else 359 ierr=NF_DEF_VAR(nid,"longitude",NF_FLOAT,1,[idim_rlonv],nvarid) 360 360 #endif 361 361 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"long_name", 14, … … 372 372 #ifdef NC_DOUBLE 373 373 ierr = NF_DEF_VAR (nid, "altitude", NF_DOUBLE, 1, 374 . idim_llm,nvarid)374 . [idim_llm],nvarid) 375 375 #else 376 376 ierr = NF_DEF_VAR (nid, "altitude", NF_FLOAT, 1, 377 . idim_llm,nvarid)377 . [idim_llm],nvarid) 378 378 #endif 379 379 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"long_name",10,"pseudo-alt") … … 394 394 ! define variable 395 395 #ifdef NC_DOUBLE 396 ierr=NF_DEF_VAR(nid,"soildepth",NF_DOUBLE,1, idim_nsoilmx,nvarid)397 #else 398 ierr=NF_DEF_VAR(nid,"soildepth",NF_FLOAT,1, idim_nsoilmx,nvarid)396 ierr=NF_DEF_VAR(nid,"soildepth",NF_DOUBLE,1,[idim_nsoilmx],nvarid) 397 #else 398 ierr=NF_DEF_VAR(nid,"soildepth",NF_FLOAT,1,[idim_nsoilmx],nvarid) 399 399 #endif 400 400 ierr=NF_PUT_ATT_TEXT (nid,nvarid,"long_name", 20,
Note: See TracChangeset
for help on using the changeset viewer.