Ignore:
Timestamp:
Jul 20, 2024, 6:08:57 PM (2 months ago)
Author:
abarral
Message:

Move lmdz_netcdf_format.F90 -> lmdz_cppkeys_wrapper.F90 to handle other CPP keys
Replace all (except wrapper) use of CPP_PHYS by fortran logical

Location:
LMDZ6/branches/Amaury_dev/libf/dyn3d
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/dyn3d/dynredem_mod.F90

    r5088 r5090  
    33  USE netcdf, ONLY: nf90_strerror,nf90_noerr,nf90_redef,nf90_put_var,nf90_enddef,nf90_put_att,&
    44          nf90_inq_varid,nf90_get_var,nf90_def_var
    5   USE lmdz_netcdf_format, ONLY: nf90_format
     5  USE lmdz_cppkeys_wrapper, ONLY: nf90_format
    66  IMPLICIT NONE; PRIVATE
    77  PUBLIC :: dynredem_write_u, dynredem_write_v, dynredem_read_u, err
  • LMDZ6/branches/Amaury_dev/libf/dyn3d/gcm.F90

    r5082 r5090  
    2626  USE logic_mod, ONLY: ecripar, iflag_phys, read_start
    2727
     28  USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_PHYS
     29
    2830!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    2931  ! FH 2008/05/09 On elimine toutes les clefs physiques dans la dynamique
    3032  ! A nettoyer. On ne veut qu'une ou deux routines d'interface
    3133  ! dynamique -> physique pour l'initialisation
    32 #ifdef CPP_PHYS
     34  ! AB 2024/07/20: remplace CPP key by fortran logical, but ^ still relevant, see later use of iniphys later on
    3335  USE iniphysiq_mod, ONLY: iniphysiq
    34 #endif
    3536!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    3637
     
    406407
    407408  IF ((iflag_phys==1).or.(iflag_phys>=100)) THEN
    408      ! Physics:
    409 #ifdef CPP_PHYS
    410      CALL iniphysiq(iim,jjm,llm, &
     409    ! Physics:
     410    IF (CPPKEY_PHYS) THEN
     411      CALL iniphysiq(iim,jjm,llm, &
    411412          (jjm-1)*iim+2,comm_lmdz, &
    412413          daysec,day_ini,dtphys/nsplit_phys, &
    413414          rlatu,rlatv,rlonu,rlonv,aire,cu,cv,rad,g,r,cpp, &
    414415          iflag_phys)
    415 #endif
     416    END IF
    416417  ENDIF ! of IF ((iflag_phys==1).or.(iflag_phys>=100))
    417418
  • LMDZ6/branches/Amaury_dev/libf/dyn3d/leapfrog.F

    r5081 r5090  
    2727     &                        start_time,dt
    2828      USE strings_mod, ONLY: msg
     29      USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_PHYS
    2930
    3031      IMPLICIT NONE
     
    462463#endif
    463464! #endif of #ifdef CPP_IOIPSL
    464 #ifdef CPP_PHYS
    465          CALL calfis( lafin , jD_cur, jH_cur,
     465         IF (CPPKEY_PHYS) THEN
     466           CALL calfis( lafin , jD_cur, jH_cur,
    466467     $               ucov,vcov,teta,q,masse,ps,p,pk,phis,phi ,
    467468     $               du,dv,dteta,dq,
    468469     $               flxw,dufi,dvfi,dtetafi,dqfi,dpfi  )
    469 #endif
     470         END IF
    470471c      ajout des tendances physiques:
    471472c      ------------------------------
  • LMDZ6/branches/Amaury_dev/libf/dyn3d/replay3d.F90

    r4589 r5090  
    2222  USE mod_const_mpi, ONLY: comm_lmdz
    2323
    24 
    25 
    26 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    27   ! FH 2008/05/09 On elimine toutes les clefs physiques dans la dynamique
    28   ! A nettoyer. On ne veut qu'une ou deux routines d'interface
    29   ! dynamique -> physique pour l'initialisation
    30 #ifdef CPP_PHYS
    31   USE iniphysiq_mod, ONLY: iniphysiq
    32 #endif
    33 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    34 
    3524  IMPLICIT NONE
    3625
    3726  !      ......   Version  du 10/01/98    ..........
    3827
    39   !             avec  coordonnees  verticales hybrides 
     28  !             avec  coordonnees  verticales hybrides
    4029  !   avec nouveaux operat. dissipation * ( gradiv2,divgrad2,nxgraro2 )
    4130
Note: See TracChangeset for help on using the changeset viewer.