Ignore:
Timestamp:
Jul 23, 2024, 8:22:55 AM (4 months ago)
Author:
abarral
Message:

Handle DEBUG_IO in lmdz_cppkeys_wrapper.F90
Transform some files .F -> .[fF]90
[ne compile pas à cause de writefield_u non défini - en attente de réponse Laurent]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/phylmd/iostart.F90

    r5100 r5101  
    7070   
    7171    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)
    7373      IF (ierr==nf90_noerr) THEN
    7474        Inquire_field=.TRUE.
     
    146146    IF (is_master) THEN
    147147 
    148       ierr=NF90_INQ_VARID(nid_start,Field_name,varid)
     148      ierr=nf90_inq_varid(nid_start,Field_name,varid)
    149149     
    150150      IF (ierr==nf90_noerr) THEN
     
    173173      IF (.NOT. tmp_found) THEN
    174174        PRINT*, 'phyetat0: Le champ <'//field_name//'> est absent'
    175         call abort_physic("", "", 1)
     175        CALL abort_physic("", "", 1)
    176176      ENDIF
    177177    ENDIF
     
    193193              IF (ierr/=nf90_noerr) THEN
    194194                 PRINT*, 'phyetat0: Lecture echouee aussi en 2D pour <'//field_name//'>'
    195                  call abort_physic("", "", 1)
     195                 CALL abort_physic("", "", 1)
    196196              ELSE
    197197                 PRINT*, 'phyetat0: La variable <'//field_name//'> lu sur surface seulement'!, selon ancien format, le reste mis a zero'
    198198              END IF
    199199           ELSE
    200               call abort_physic("", "", 1)
     200              CALL abort_physic("", "", 1)
    201201           ENDIF
    202202         ENDIF
     
    267267    IF (is_mpi_root .AND. is_omp_root) THEN
    268268 
    269       ierr=NF90_INQ_VARID(nid_start,var_name,varid)
     269      ierr=nf90_inq_varid(nid_start,var_name,varid)
    270270     
    271271      IF (ierr==nf90_noerr) THEN
     
    273273        IF (ierr/=nf90_noerr) THEN
    274274          PRINT*, 'phyetat0: Lecture echouee pour <'//var_name//'>'
    275           call abort_physic("", "", 1)
     275          CALL abort_physic("", "", 1)
    276276        ENDIF
    277277        tmp_found=.TRUE.
     
    293293      IF (.NOT. tmp_found) THEN
    294294        PRINT*, 'phyetat0: La variable champ <'//var_name//'> est absente'
    295         call abort_physic("", "", 1)
     295        CALL abort_physic("", "", 1)
    296296      ENDIF
    297297    ENDIF
     
    425425      ENDIF
    426426         
    427 !      ierr = NF90_REDEF (nid_restart)
     427!      ierr = nf90_redef (nid_restart)
    428428      ierr = nf90_def_var (nid_restart, field_name, nf90_format,(/ idim /),nvarid)
    429429      IF (LEN_TRIM(title) > 0) ierr = nf90_put_att (nid_restart,nvarid,"title", title)
     
    453453       ENDDO
    454454
    455        ierr = NF90_INQ_VARID(nid_restart, field_name, nvarid)
     455       ierr = nf90_inq_varid(nid_restart, field_name, nvarid)
    456456       ierr = nf90_put_var(nid_restart,nvarid,RESHAPE(field_glo,(/klon_glo*field_size/)))
    457457      ENDIF
     
    528528      IF (var_size/=length) THEN
    529529        PRINT *, "erreur phyredem : probleme de dimension"
    530         call abort_physic("", "", 1)
     530        CALL abort_physic("", "", 1)
    531531      ENDIF
    532532
     
    534534      IF (pass==1) THEN
    535535       
    536 !      ierr = NF90_REDEF (nid_restart)
     536!      ierr = nf90_redef (nid_restart)
    537537
    538538        ierr = nf90_def_var (nid_restart, var_name, nf90_format,(/ idim1 /),nvarid)
     
    542542    ! second pass : write     
    543543      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)
    545545        ierr = nf90_put_var(nid_restart,nvarid,var)
    546546      ENDIF
Note: See TracChangeset for help on using the changeset viewer.