Ignore:
Timestamp:
Jul 24, 2024, 2:54:37 PM (2 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/dyn3d/iniacademic.F90

    r5106 r5116  
    77  USE infotrac,    ONLY: nqtot, niso, iqIsoPha, tracers, getKey, isoName
    88  USE control_mod, ONLY: day_step,planet_type
    9   use exner_hyb_m, only: exner_hyb
    10   use exner_milieu_m, only: exner_milieu
     9  use exner_hyb_m, ONLY: exner_hyb
     10  use exner_milieu_m, ONLY: exner_milieu
    1111  USE IOIPSL, ONLY: getin
    1212  USE Write_Field
     
    6060  INTEGER i,j,l,lsup,ij, iq, iName, iPhase, iqParent
    6161
    62   integer :: nid_relief,varid,ierr
     62  INTEGER :: nid_relief,varid,ierr
    6363  real, dimension(iip1,jjp1) :: relief
    6464
     
    7575  LOGICAL,PARAMETER :: tnat1=.TRUE.
    7676 
    77   character(len=*),parameter :: modname="iniacademic"
    78   character(len=80) :: abort_message
     77  CHARACTER(LEN=*),parameter :: modname="iniacademic"
     78  CHARACTER(LEN=80) :: abort_message
    7979
    8080  ! Sanity check: verify that options selected by user are not incompatible
    81   if ((iflag_phys==1).and. .not. read_start) then
    82     write(lunout,*) trim(modname)," error: if read_start is set to ", &
     81  if ((iflag_phys==1).and. .not. read_start) THEN
     82    WRITE(lunout,*) trim(modname)," error: if read_start is set to ", &
    8383    " false then iflag_phys should not be 1"
    84     write(lunout,*) "You most likely want an aquaplanet initialisation", &
     84    WRITE(lunout,*) "You most likely want an aquaplanet initialisation", &
    8585    " (iflag_phys >= 100)"
    8686    CALL abort_gcm(modname,"incompatible iflag_phys==1 and read_start==.FALSE.",1)
     
    109109  ang0       = 0.
    110110
    111   if (llm == 1) then
     111  if (llm == 1) THEN
    112112     ! specific initializations for the shallow water case
    113113     kappa=1
     
    164164     CALL pression ( ip1jmp1, ap, bp, ps, p       )
    165165
    166      if (pressure_exner) then
     166     if (pressure_exner) THEN
    167167       CALL exner_hyb( ip1jmp1, ps, p, pks, pk)
    168168     else
     
    172172  ENDIF
    173173
    174   if (llm == 1) then
     174  if (llm == 1) THEN
    175175     ! initialize fields for the shallow water case, if required
    176      if (.not.read_start) then
     176     if (.not.read_start) THEN
    177177        phis(:)=0.
    178178        q(:,:,:)=0
     
    181181  endif
    182182
    183   academic_case: if (iflag_phys >= 2) then
     183  academic_case: if (iflag_phys >= 2) THEN
    184184     ! initializations
    185185
     
    249249           tetajl(j,l)=teta0-delt_y*ddsin*ddsin+eps*ddsin &
    250250                -delt_z*(1.-ddsin*ddsin)*log(zsig)
    251            if (planet_type=="giant") then
     251           if (planet_type=="giant") THEN
    252252             tetajl(j,l)=teta0+(delt_y*                   &
    253253                ((sin(rlatu(j)*3.14159*eps+0.0001))**2)   &
     
    293293
    294294        ! winds
    295         if (ok_geost) then
     295        if (ok_geost) THEN
    296296           CALL ugeostr(phi,ucov)
    297297        else
     
    301301
    302302        ! bulk initialization of tracers
    303         if (planet_type=="earth") then
     303        if (planet_type=="earth") THEN
    304304           ! Earth: first two tracers will be water
    305305           do iq=1,nqtot
     
    315315              iqParent = tracers(iq)%iqParent
    316316              IF(tracers(iq)%iso_iZone == 0) THEN
    317                  if (tnat1) then
     317                 if (tnat1) THEN
    318318                         tnat=1.0
    319319                         alpha_ideal=1.0
    320                          write(*,*) 'Attention dans iniacademic: alpha_ideal=1'
     320                         WRITE(*,*) 'Attention dans iniacademic: alpha_ideal=1'
    321321                 else
    322322                    IF(getKey('tnat', tnat, isoName(iName)) .OR. getKey('alpha', alpha_ideal, isoName(iName))) &
Note: See TracChangeset for help on using the changeset viewer.