Ignore:
Timestamp:
Jul 24, 2024, 2:54:37 PM (4 months ago)
Author:
abarral
Message:

rename modules properly lmdz_*
move ismin, ismax, minmax into new lmdz_libmath.f90
(lint) uppercase fortran keywords

File:
1 edited

Legend:

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

    r5113 r5116  
    5858! Ajouts
    5959      integer, save :: ntime=0
    60       integer :: idim,varid
     60      INTEGER :: idim,varid
    6161      character (len =50):: fichnom
    6262      integer, dimension(4) :: id
     
    6565
    6666
    67        if (n_names_iotd_def>0 .and..not.any(names_iotd_def==nom)) return
     67       if (n_names_iotd_def>0 .and..not.any(names_iotd_def==nom)) RETURN
    6868!***************************************************************
    6969! Initialisation of 'firstnom' and create/open the "diagfi.nc" NetCDF file
     
    8383
    8484        zx(1:imax*jmax*llm)=px(1:imax*jmax*llm)
    85         if (firstnom =='1234567890') then
     85        if (firstnom =='1234567890') THEN
    8686            firstnom=nom
    8787        endif
     
    9090
    9191!! Quand on tombe sur la premiere variable on ajoute un pas de temps
    92         if (nom==firstnom) then
     92        if (nom==firstnom) THEN
    9393        ! We have identified a "first call" (at given date)
    9494
     
    114114!        PRINT*,'IOTD Date ,varid,nid,ntime,date',varid,nid,ntime,date
    115115
    116            if (ierr/=nf90_noerr) then
    117               write(*,*) "***** PUT_VAR matter in writediagfi_nc"
    118               write(*,*) "***** with time"
    119               write(*,*) 'ierr=', ierr   
     116           if (ierr/=nf90_noerr) THEN
     117              WRITE(*,*) "***** PUT_VAR matter in writediagfi_nc"
     118              WRITE(*,*) "***** with time"
     119              WRITE(*,*) 'ierr=', ierr
    120120           endif
    121121
    122 !          write(6,*)'WRITEDIAGFI: date= ', date
     122!          WRITE(6,*)'WRITEDIAGFI: date= ', date
    123123        end if ! of if (nom.eq.firstnom)
    124124
     
    126126!Case of a 3D variable
    127127!---------------------
    128         if (llm==lmax) then
     128        if (llm==lmax) THEN
    129129           ndim=4
    130130           corner(1)=1
     
    142142!---------------------
    143143
    144         else if (llm==1) then
     144        else if (llm==1) THEN
    145145           ndim=3
    146146           corner(1)=1
     
    160160!-----------------------------------------------
    161161
    162       if (ntime==1) then
     162      if (ntime==1) THEN
    163163          ierr = nf90_redef (nid)
    164164          ierr = nf90_def_var(nid,nom,nf90_float,dim_cc,varid)
     
    175175      ierr= nf90_put_var(nid,varid,zx,corner,edges)
    176176
    177       if (ierr/=nf90_noerr) then
    178            write(*,*) "***** PUT_VAR problem in writediagfi"
    179            write(*,*) "***** with ",nom
    180            write(*,*) 'ierr=', ierr
     177      if (ierr/=nf90_noerr) THEN
     178           WRITE(*,*) "***** PUT_VAR problem in writediagfi"
     179           WRITE(*,*) "***** with ",nom
     180           WRITE(*,*) 'ierr=', ierr
    181181      endif
    182182
Note: See TracChangeset for help on using the changeset viewer.