Changeset 4482 for LMDZ6/branches/LMDZ_ECRad/libf/phy_common
- Timestamp:
- Mar 29, 2023, 3:14:27 PM (20 months ago)
- Location:
- LMDZ6/branches/LMDZ_ECRad
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/LMDZ_ECRad
- Property svn:mergeinfo changed
-
LMDZ6/branches/LMDZ_ECRad/libf/phy_common/abort_physic.F90
r2326 r4482 38 38 if (ierr .eq. 0) then 39 39 write(lunout,*) 'Everything is cool' 40 #ifdef CPP_MPI 41 !$OMP CRITICAL (MPI_ABORT_PHYSIC) 42 call MPI_ABORT(COMM_LMDZ_PHY, 0, ierror_mpi) 43 !$OMP END CRITICAL (MPI_ABORT_PHYSIC) 44 #else 45 stop 0 46 #endif 40 47 else 41 48 write(lunout,*) 'Houston, we have a problem, ierr = ', ierr -
LMDZ6/branches/LMDZ_ECRad/libf/phy_common/physics_distribution_mod.F90
r4172 r4482 13 13 USE mod_grid_phy_lmdz, ONLY: init_grid_phy_lmdz 14 14 USE dimphy, ONLY : Init_dimphy 15 USE infotrac_phy, ONLY : type s_trac15 USE infotrac_phy, ONLY : type_trac 16 16 #ifdef REPROBUS 17 17 USE CHEM_REP, ONLY : Init_chem_rep_phys … … 39 39 #ifdef REPROBUS 40 40 ! Initialization of Reprobus 41 IF (ANY(types_trac == 'repr')) CALL Init_chem_rep_phys(klon_omp,nbp_lev) 42 END IF 41 IF (type_trac == 'repr') CALL Init_chem_rep_phys(klon_omp,nbp_lev) 43 42 #endif 44 43 … … 51 50 ! USE mod_grid_phy_lmdz, ONLY: Init_grid_phy_lmdz!, nbp_lev 52 51 ! USE dimphy, ONLY : Init_dimphy 53 ! USE infotrac_phy, ONLY : type s_trac52 ! USE infotrac_phy, ONLY : type_trac 54 53 !#ifdef REPROBUS 55 54 ! USE CHEM_REP, ONLY : Init_chem_rep_phys … … 72 71 !#ifdef REPROBUS 73 72 !! Initialization of Reprobus 74 ! IF ( ANY(types_trac == 'repr')) CALL Init_chem_rep_phys(klon_omp,nbp_lev)73 ! IF (type_trac == 'repr') CALL Init_chem_rep_phys(klon_omp,nbp_lev) 75 74 ! END IF 76 75 !#endif -
LMDZ6/branches/LMDZ_ECRad/libf/phy_common/vertical_layers_mod.F90
r2786 r4482 15 15 REAL,SAVE,ALLOCATABLE :: presnivs(:) ! reference pressure at mid-layer (Pa), 16 16 ! based on preff, ap and bp 17 REAL,SAVE,ALLOCATABLE :: presinter(:) ! reference pressure at interface (Pa), 18 ! based on preff, ap and bp 17 19 REAL,SAVE,ALLOCATABLE :: pseudoalt(:) ! pseudo-altitude of model layers (km), 18 20 ! based on preff and scaleheight 19 21 20 !$OMP THREADPRIVATE(preff,scaleheight,ap,bp,aps,bps,presnivs,p seudoalt)22 !$OMP THREADPRIVATE(preff,scaleheight,ap,bp,aps,bps,presnivs,presinter,pseudoalt) 21 23 22 24 … … 24 26 25 27 SUBROUTINE init_vertical_layers(nlayer,preff_,scaleheight_,ap_,bp_,& 26 aps_,bps_,presnivs_, p seudoalt_)28 aps_,bps_,presnivs_, presinter_, pseudoalt_) 27 29 IMPLICIT NONE 28 30 INTEGER,INTENT(IN) :: nlayer ! number of atmospheric layers … … 34 36 REAL,INTENT(IN) :: bps_(nlayer) ! hybrid coordinate at mid-layer 35 37 REAL,INTENT(IN) :: presnivs_(nlayer) ! Appproximative pressure of atm. layers (Pa) 38 REAL,INTENT(IN) :: presinter_(nlayer+1) ! Appproximative pressure of atm. layers (Pa) 36 39 REAL,INTENT(IN) :: pseudoalt_(nlayer) ! pseudo-altitude of atm. layers (km) 37 40 … … 41 44 ALLOCATE(bps(nlayer)) 42 45 ALLOCATE(presnivs(nlayer)) 46 ALLOCATE(presinter(nlayer+1)) 43 47 ALLOCATE(pseudoalt(nlayer)) 44 48 … … 50 54 bps(:) = bps_(:) 51 55 presnivs(:) = presnivs_(:) 56 presinter(:) = presinter_(:) 52 57 pseudoalt(:) = pseudoalt_(:) 53 58
Note: See TracChangeset
for help on using the changeset viewer.