Ignore:
Timestamp:
Jun 25, 2015, 9:45:24 AM (9 years ago)
Author:
Ehouarn Millour
Message:

Further modifications to enforce physics/dynamics separation:

  • moved iniprint.h and misc_mod back to dyn3d_common, as these should only be used by dynamics.
  • created print_control_mod in the physics to store flags prt_level, lunout, debug to be local to physics (should be used rather than iniprint.h)
  • created abort_physic.F90 , which does the same job as abort_gcm() did, but should be used instead when in physics.
  • reactivated inifis (turned it into a module, inifis_mod.F90) to initialize physical constants and print_control_mod flags.

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dynlonlat_phylonlat/phydev/iniphysiq.F90

    r2242 r2311  
    1818                        rlond, & ! longitudes
    1919                        rlatd ! latitudes
    20   USE comcstphy, ONLY: rradius, & ! planet radius (m)
    21                        rr, & ! recuced gas constant: R/molar mass of atm
    22                        rg, & ! gravity
    23                        rcpp  ! specific heat of the atmosphere
     20!  USE comcstphy, ONLY: rradius, & ! planet radius (m)
     21!                       rr, & ! recuced gas constant: R/molar mass of atm
     22!                       rg, & ! gravity
     23!                       rcpp  ! specific heat of the atmosphere
     24  USE inifis_mod, ONLY: inifis
    2425  USE phyaqua_mod, ONLY: iniaqua
    2526  IMPLICIT NONE
     
    119120
    120121!$OMP PARALLEL
     122  ! Initialize physical constants in physics:
     123  CALL inifis(prad,pg,pr,pcpp)
     124
    121125  ! Now generate local lon/lat/cu/cv/area arrays
    122126  CALL initcomgeomphy
     
    129133  rlatd(1:klon_omp) = latfi(offset+klon_omp_begin:offset+klon_omp_end)
    130134
    131   ! copy some fundamental parameters to physics
    132   rradius=prad
    133   rg=pg
    134   rr=pr
    135   rcpp=pcpp
    136 
    137 !$OMP END PARALLEL
    138 
    139135  ! Additional initializations for aquaplanets
    140 !$OMP PARALLEL
    141136  IF (iflag_phys>=100) THEN
    142137    CALL iniaqua(klon_omp,rlatd,rlond,iflag_phys)
Note: See TracChangeset for help on using the changeset viewer.