Ignore:
Timestamp:
Jul 23, 2024, 3:29:36 PM (8 weeks ago)
Author:
abarral
Message:

Handle CPP_INLANDSIS in lmdz_cppkeys_wrapper.F90
Remove obsolete key wrgrads_thermcell, _ADV_HALO, _ADV_HALLO, isminmax
Remove redundant uses of CPPKEY_INCA (thanks acozic)
Remove obsolete misc/write_field.F90
Remove unused ioipsl_* wrappers
Remove calls to WriteField_u with wrong signature
Convert .F -> .[fF]90
(lint) uppercase fortran operators
[note: 1d and iso still broken - working on it]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/phydev/physiq_mod.F90

    r5101 r5103  
    5656real :: temp_newton(klon,klev)
    5757integer :: k
    58 logical, save :: first=.true.
     58logical, save :: first=.TRUE.
    5959!$OMP THREADPRIVATE(first)
    6060
     
    7575
    7676! initializations
    77 if (debut) then ! Things to do only for the first CALL to physics
     77IF (debut) then ! Things to do only for the first CALL to physics
    7878! load initial conditions for physics (including the grid)
    7979  CALL phys_state_var_init() ! some initializations, required before calling phyetat0
     
    137137!$OMP END MASTER
    138138!$OMP BARRIER
    139 endif ! of if (debut)
     139END IF ! of if (debut)
    140140
    141141! increment local time counter itau
     
    154154d_v(1:klon,1)=-v(1:klon,1)/86400.
    155155! newtonian relaxation towards temp_newton()
    156 do k=1,klev
     156DO k=1,klev
    157157  temp_newton(1:klon,k)=280.+cos(latitude(1:klon))*40.-pphi(1:klon,k)/rg*6.e-3
    158158  d_t(1:klon,k)=(temp_newton(1:klon,k)-t(1:klon,k))/1.e5
    159 enddo
     159END DO
    160160
    161161
    162 print*,'PHYDEV: itau=',itau
     162PRINT*,'PHYDEV: itau=',itau
    163163
    164164! write some outputs:
    165165! IOIPSL
    166166#ifndef CPP_IOIPSL_NO_OUTPUT
    167 if (modulo(itau,iwrite_phys)==0) then
    168   CALL histwrite_phy(nid_hist,.false.,"temperature",itau,t)
    169   CALL histwrite_phy(nid_hist,.false.,"u",itau,u)
    170   CALL histwrite_phy(nid_hist,.false.,"v",itau,v)
    171   CALL histwrite_phy(nid_hist,.false.,"ps",itau,paprs(:,1))
    172 endif
     167IF (modulo(itau,iwrite_phys)==0) then
     168  CALL histwrite_phy(nid_hist,.FALSE.,"temperature",itau,t)
     169  CALL histwrite_phy(nid_hist,.FALSE.,"u",itau,u)
     170  CALL histwrite_phy(nid_hist,.FALSE.,"v",itau,v)
     171  CALL histwrite_phy(nid_hist,.FALSE.,"ps",itau,paprs(:,1))
     172END IF
    173173#endif
    174174
     
    191191
    192192! if lastcall, then it is time to write "restartphy.nc" file
    193 if (lafin) then
     193IF (lafin) then
    194194  CALL phyredem("restartphy.nc")
    195 endif
     195END IF
    196196
    197 end subroutine physiq
     197END SUBROUTINE physiq
    198198
    199199END MODULE physiq_mod
Note: See TracChangeset for help on using the changeset viewer.