Ignore:
Timestamp:
Aug 20, 2015, 12:02:53 PM (10 years ago)
Author:
Ehouarn Millour
Message:

Another step towards a clean separation between physics and dynamics: adapted read_pstoke.F90, read_pstoke0.F90 initphysto.F90 and phystokenc.F90 (now module phystokenc_mod.F90) to not explicitely include/use file/modules from the dynamics.
In the process, added module "time_phylmdz_mod.F90" in the physics, which contains the information otherwise found in "temps.h" (which is in the dynamics) and should be used instead.
EM

File:
1 edited

Legend:

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

    r2331 r2343  
    2323                      indnum_fn_num,index_trac,&
    2424                      niso,ntraceurs_zone,ntraciso
     25  USE control_mod, ONLY: dayref,anneeref,day_step,nday,offline
    2526  USE comgeomphy, ONLY: initcomgeomphy, &
    2627                        airephy, & ! physics grid area (m2)
     
    3031                        rlatd ! latitudes
    3132  USE inifis_mod, ONLY: inifis
     33  USE time_phylmdz_mod, ONLY: init_time
    3234  USE infotrac_phy, ONLY: init_infotrac_phy
     35  USE phystokenc_mod, ONLY: init_phystokenc
    3336  USE phyaqua_mod, ONLY: iniaqua
    3437  IMPLICIT NONE
     
    4245  include "comvert.h"
    4346  include "iniprint.h"
     47  include "temps.h"
     48  include "tracstoke.h"
    4449
    4550  REAL, INTENT (IN) :: prad ! radius of the planet (m)
     
    134139  ENDIF ! of IF (klon_glo>1)
    135140
    136 !$OMP PARALLEL
     141!$OMP PARALLEL DEFAULT(SHARED) COPYIN(/temps/)
    137142  ! Initialize physical constants in physics:
    138143  CALL inifis(punjours,prad,pg,pr,pcpp)
    139  
     144  CALL init_time(annee_ref,day_ref,day_ini,start_time,nday,ptimestep)
     145
     146  ! Copy over "offline" settings
     147  CALL init_phystokenc(offline,istphy)
     148
    140149  ! copy over preff , ap(), bp(), etc
    141150  CALL init_vertical_layers(nlayer,preff,scaleheight, &
Note: See TracChangeset for help on using the changeset viewer.