Ignore:
Timestamp:
Oct 22, 2024, 11:55:35 AM (13 months ago)
Author:
abarral
Message:

Wrap uses of cpp key CPP_PHYS

Location:
LMDZ6/trunk/libf/dyn3dmem
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dyn3dmem/bands.F90

    r2771 r5250  
    381381    subroutine AdjustBands_physic
    382382      use times
    383 #ifdef CPP_PHYS
    384383! Ehouarn: what follows is only related to // physics
    385384      USE mod_phys_lmdz_para, only : klon_mpi_para_nb
    386 #endif
     385
    387386      USE parallel_lmdz
     387      USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_PHYS
     388
    388389      implicit none
    389390
     
    408409      medium=medium/mpi_size     
    409410      NbTot=0
    410 #ifdef CPP_PHYS
     411IF (CPPKEY_PHYS) THEN
    411412      do i=0,mpi_size-1
    412413        Inc(i)=nint(klon_mpi_para_nb(i)*(medium-value(i))/value(i))
    413         NbTot=NbTot+Inc(i) 
    414       enddo
    415      
     414        NbTot=NbTot+Inc(i)
     415      enddo
     416
    416417      if (NbTot>=0) then
    417418        Sgn=1
     
    420421        NbTot=-NbTot
    421422      endif
    422      
     423
    423424      Index=0
    424425      do i=1,NbTot
     
    427428        if (Index>mpi_size-1) Index=0
    428429      enddo
    429      
     430
    430431      do i=0,mpi_size-1
    431432        distrib_phys(i)=klon_mpi_para_nb(i)+inc(i)
    432433      enddo
    433 #endif 
     434END IF
    434435         
    435436    end subroutine AdjustBands_physic
  • LMDZ6/trunk/libf/dyn3dmem/call_calfis_mod.F90

    r5084 r5250  
    8888  USE comvert_mod, ONLY: ap, bp, pressure_exner
    8989  USE temps_mod, ONLY: day_ini, day_ref, jd_ref, jh_ref, start_time
     90  USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_PHYS
     91
    9092 
    9193  IMPLICIT NONE
     
    230232  !$OMP BARRIER
    231233
    232 #ifdef CPP_PHYS
     234IF (CPPKEY_PHYS) THEN
    233235    CALL calfis_loc(lafin ,jD_cur, jH_cur,                       &
    234236                     ucov,vcov,teta,q,masse,ps,p,pk,phis,phi ,   &
    235237                     du,dv,dteta,dq,                             &
    236238                     flxw, dufi,dvfi,dtetafi,dqfi,dpfi  )
    237 #endif
     239END IF
    238240    ijb=ij_begin
    239241    ije=ij_end 
  • LMDZ6/trunk/libf/dyn3dmem/gcm.F90

    r4996 r5250  
    2020  USE control_mod
    2121
    22 #ifdef CPP_PHYS
    2322  USE iniphysiq_mod, ONLY: iniphysiq
    24 #endif
    2523  USE comconst_mod, ONLY: cpp, daysec, dtphys, dtvr, g, r, rad
    2624  USE logic_mod ! all of it, because of copyin clause when calling leapfrog
     
    2927                       dt,hour_ini,itaufin
    3028  USE mod_xios_dyn3dmem, ONLY: xios_dyn3dmem_init
     29  USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_PHYS
     30
    3131
    3232  IMPLICIT NONE
     
    415415  IF ((iflag_phys==1).or.(iflag_phys>=100)) THEN
    416416     ! Physics:
    417 #ifdef CPP_PHYS
     417IF (CPPKEY_PHYS) THEN
    418418     CALL iniphysiq(iim,jjm,llm, &
    419419          distrib_phys(mpi_rank),comm_lmdz, &
     
    421421          rlatu,rlatv,rlonu,rlonv,aire,cu,cv,rad,g,r,cpp, &
    422422          iflag_phys)
    423 #endif
     423END IF
    424424  ENDIF ! of IF ((iflag_phys==1).or.(iflag_phys>=100))
    425425
Note: See TracChangeset for help on using the changeset viewer.