Changeset 5101 for LMDZ6/branches/Amaury_dev/libf/phylmd/iostart.F90
- Timestamp:
- Jul 23, 2024, 8:22:55 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/iostart.F90
r5100 r5101 70 70 71 71 IF (is_mpi_root .AND. is_omp_root) THEN 72 ierr= NF90_INQ_VARID(nid_start,Field_name,varid)72 ierr=nf90_inq_varid(nid_start,Field_name,varid) 73 73 IF (ierr==nf90_noerr) THEN 74 74 Inquire_field=.TRUE. … … 146 146 IF (is_master) THEN 147 147 148 ierr= NF90_INQ_VARID(nid_start,Field_name,varid)148 ierr=nf90_inq_varid(nid_start,Field_name,varid) 149 149 150 150 IF (ierr==nf90_noerr) THEN … … 173 173 IF (.NOT. tmp_found) THEN 174 174 PRINT*, 'phyetat0: Le champ <'//field_name//'> est absent' 175 callabort_physic("", "", 1)175 CALL abort_physic("", "", 1) 176 176 ENDIF 177 177 ENDIF … … 193 193 IF (ierr/=nf90_noerr) THEN 194 194 PRINT*, 'phyetat0: Lecture echouee aussi en 2D pour <'//field_name//'>' 195 callabort_physic("", "", 1)195 CALL abort_physic("", "", 1) 196 196 ELSE 197 197 PRINT*, 'phyetat0: La variable <'//field_name//'> lu sur surface seulement'!, selon ancien format, le reste mis a zero' 198 198 END IF 199 199 ELSE 200 callabort_physic("", "", 1)200 CALL abort_physic("", "", 1) 201 201 ENDIF 202 202 ENDIF … … 267 267 IF (is_mpi_root .AND. is_omp_root) THEN 268 268 269 ierr= NF90_INQ_VARID(nid_start,var_name,varid)269 ierr=nf90_inq_varid(nid_start,var_name,varid) 270 270 271 271 IF (ierr==nf90_noerr) THEN … … 273 273 IF (ierr/=nf90_noerr) THEN 274 274 PRINT*, 'phyetat0: Lecture echouee pour <'//var_name//'>' 275 callabort_physic("", "", 1)275 CALL abort_physic("", "", 1) 276 276 ENDIF 277 277 tmp_found=.TRUE. … … 293 293 IF (.NOT. tmp_found) THEN 294 294 PRINT*, 'phyetat0: La variable champ <'//var_name//'> est absente' 295 callabort_physic("", "", 1)295 CALL abort_physic("", "", 1) 296 296 ENDIF 297 297 ENDIF … … 425 425 ENDIF 426 426 427 ! ierr = NF90_REDEF(nid_restart)427 ! ierr = nf90_redef (nid_restart) 428 428 ierr = nf90_def_var (nid_restart, field_name, nf90_format,(/ idim /),nvarid) 429 429 IF (LEN_TRIM(title) > 0) ierr = nf90_put_att (nid_restart,nvarid,"title", title) … … 453 453 ENDDO 454 454 455 ierr = NF90_INQ_VARID(nid_restart, field_name, nvarid)455 ierr = nf90_inq_varid(nid_restart, field_name, nvarid) 456 456 ierr = nf90_put_var(nid_restart,nvarid,RESHAPE(field_glo,(/klon_glo*field_size/))) 457 457 ENDIF … … 528 528 IF (var_size/=length) THEN 529 529 PRINT *, "erreur phyredem : probleme de dimension" 530 callabort_physic("", "", 1)530 CALL abort_physic("", "", 1) 531 531 ENDIF 532 532 … … 534 534 IF (pass==1) THEN 535 535 536 ! ierr = NF90_REDEF(nid_restart)536 ! ierr = nf90_redef (nid_restart) 537 537 538 538 ierr = nf90_def_var (nid_restart, var_name, nf90_format,(/ idim1 /),nvarid) … … 542 542 ! second pass : write 543 543 ELSE IF (pass==2) THEN 544 ierr = NF90_INQ_VARID(nid_restart, var_name, nvarid)544 ierr = nf90_inq_varid(nid_restart, var_name, nvarid) 545 545 ierr = nf90_put_var(nid_restart,nvarid,var) 546 546 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.