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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.