Changeset 2603 for LMDZ5/trunk/libf/dyn3dmem
- Timestamp:
- Jul 25, 2016, 11:31:56 AM (9 years ago)
- Location:
- LMDZ5/trunk/libf/dyn3dmem
- Files:
-
- 24 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/dyn3dmem/advect_new_loc.F
r2600 r2603 8 8 USE advect_new_mod 9 9 USE comconst_mod, ONLY: daysec 10 USE logic_mod, ONLY: conser 11 10 12 IMPLICIT NONE 11 13 c======================================================================= … … 31 33 include "paramet.h" 32 34 include "comgeom.h" 33 include "logic.h"34 35 include "ener.h" 35 36 -
LMDZ5/trunk/libf/dyn3dmem/advtrac_loc.F
r2601 r2603 34 34 include "comdissip.h" 35 35 include "comgeom2.h" 36 include "logic.h"37 36 include "ener.h" 38 37 include "description.h" -
LMDZ5/trunk/libf/dyn3dmem/bernoui_loc.F
r1907 r2603 24 24 c ------------- 25 25 c 26 #include "dimensions.h" 27 #include "paramet.h" 28 #include "logic.h" 26 include "dimensions.h" 27 include "paramet.h" 29 28 c 30 29 c Arguments: -
LMDZ5/trunk/libf/dyn3dmem/call_calfis_mod.F90
r2601 r2603 83 83 USE write_field 84 84 USE comconst_mod, ONLY: dtphys 85 USE logic_mod, ONLY: leapf, forward, ok_strato 85 86 USE comvert_mod, ONLY: ap, bp, pressure_exner 86 87 USE temps_mod, ONLY: day_ini, day_ref, jd_ref, jh_ref, start_time 87 88 88 89 IMPLICIT NONE 89 INCLUDE "logic.h"90 90 INCLUDE "iniprint.h" 91 91 -
LMDZ5/trunk/libf/dyn3dmem/conf_gcm.F90
r2601 r2603 20 20 iflag_top_bound, mode_top_bound, tau_top_bound, & 21 21 ngroup 22 USE logic_mod, ONLY: fxyhypb, iflag_phys, ok_etat0, ok_gradsfile, & 23 ok_guide, ok_limit, ok_strato, purmats, read_start, & 24 ysinus 22 25 USE serre_mod, ONLY: clon,clat,grossismx,grossismy,dzoomx,dzoomy, & 23 26 alphax,alphay,taux,tauy … … 41 44 include "dimensions.h" 42 45 include "paramet.h" 43 include "logic.h"44 46 include "comdissnew.h" 45 47 include "iniprint.h" -
LMDZ5/trunk/libf/dyn3dmem/convmas1_loc.F90
r2336 r2603 12 12 include "paramet.h" 13 13 include "comgeom.h" 14 include "logic.h"15 14 !=============================================================================== 16 15 ! Arguments: -
LMDZ5/trunk/libf/dyn3dmem/convmas2_loc.F90
r2336 r2603 11 11 include "paramet.h" 12 12 include "comgeom.h" 13 include "logic.h"14 13 !=============================================================================== 15 14 ! Arguments: -
LMDZ5/trunk/libf/dyn3dmem/convmas_loc.F90
r2336 r2603 11 11 include "paramet.h" 12 12 include "comgeom.h" 13 include "logic.h"14 13 !=============================================================================== 15 14 ! Arguments: -
LMDZ5/trunk/libf/dyn3dmem/dteta1_loc.F
r1907 r2603 21 21 22 22 23 #include "dimensions.h" 24 #include "paramet.h" 25 #include "logic.h" 23 include "dimensions.h" 24 include "paramet.h" 26 25 27 26 REAL teta( ijb_u:ije_u,llm ) -
LMDZ5/trunk/libf/dyn3dmem/dynetat0_loc.f90
r2601 r2603 15 15 USE comconst_mod, ONLY: cpp, daysec, dtvr, g, im, jm, kappa, lllm, & 16 16 omeg, rad 17 USE logic_mod, ONLY: fxyhypb, ysinus 17 18 USE serre_mod, ONLY: clon, clat, grossismx, grossismy 18 19 USE temps_mod, ONLY: annee_ref,day_ref,itau_dyn, & … … 25 26 include "ener.h" 26 27 include "description.h" 27 include "logic.h"28 28 include "iniprint.h" 29 29 !=============================================================================== -
LMDZ5/trunk/libf/dyn3dmem/dynredem_loc.F90
r2601 r2603 16 16 nivsig,nivsigs 17 17 USE comconst_mod, ONLY: cpp, daysec, dtvr, g, kappa, omeg, rad 18 USE logic_mod, ONLY: fxyhypb, ysinus 18 19 USE serre_mod, ONLY: clon,clat,grossismx,grossismy,dzoomx,dzoomy, & 19 20 taux,tauy … … 25 26 include "comgeom.h" 26 27 include "ener.h" 27 include "logic.h"28 28 include "description.h" 29 29 include "iniprint.h" -
LMDZ5/trunk/libf/dyn3dmem/gcm.F90
r2601 r2603 22 22 #endif 23 23 USE comconst_mod, ONLY: cpp, daysec, dtphys, dtvr, g, r, rad 24 USE logic_mod ! all of it, because of copyin clause when calling leapfrog 24 25 USE temps_mod, ONLY: calend,start_time,annee_ref,day_ref, & 25 26 itau_dyn,itau_phy,day_ini,jD_ref,jH_ref,day_end, & … … 61 62 include "comdissnew.h" 62 63 include "comgeom.h" 63 include "logic.h"64 64 include "ener.h" 65 65 include "description.h" … … 453 453 454 454 !!$OMP PARALLEL DEFAULT(SHARED) COPYIN(/temps/,/logici/,/logicl/) 455 !$OMP PARALLEL DEFAULT(SHARED) COPYIN(/logici/,/logicl/)&455 !$OMP PARALLEL DEFAULT(SHARED) & 456 456 ! Copy all threadprivate variables in temps_mod 457 457 !$OMP COPYIN(dt,jD_ref,jH_ref,start_time,hour_ini,day_ini,day_end) & 458 !$OMP COPYIN(annee_ref,day_ref,itau_dyn,itau_phy,itaufin,calend) 458 !$OMP COPYIN(annee_ref,day_ref,itau_dyn,itau_phy,itaufin,calend) & 459 ! Copy all threadprivate variables from logic_mod 460 !$OMP COPYIN(purmats,forward,leapf,apphys,statcl,conser,apdiss,apdelq) & 461 !$OMP COPYIN(saison,ecripar,fxyhypb,ysinus,read_start,ok_guide) & 462 !$OMP COPYIN(ok_strato,ok_gradsfile,ok_limit,ok_etat0) & 463 !$OMP COPYIN(iflag_phys,iflag_trac) 459 464 CALL leapfrog_loc(ucov,vcov,teta,ps,masse,phis,q,time_0) 460 465 !$OMP END PARALLEL -
LMDZ5/trunk/libf/dyn3dmem/iniacademic_loc.F90
r2601 r2603 19 19 USE Write_Field 20 20 USE comconst_mod, ONLY: cpp, kappa, g, daysec, dtvr, pi, im, jm 21 USE logic_mod, ONLY: iflag_phys, read_start 21 22 USE comvert_mod, ONLY: ap, bp, preff, presnivs, pressure_exner 22 23 USE temps_mod, ONLY: annee_ref, day_ini, day_ref … … 37 38 include "ener.h" 38 39 include "iniprint.h" 39 include "logic.h"40 40 41 41 ! Arguments: -
LMDZ5/trunk/libf/dyn3dmem/initdynav_loc.F
r2601 r2603 49 49 include "comgeom.h" 50 50 include "ener.h" 51 include "logic.h"52 51 include "description.h" 53 52 include "iniprint.h" -
LMDZ5/trunk/libf/dyn3dmem/initfluxsto_p.F
r2601 r2603 50 50 include "comgeom.h" 51 51 include "ener.h" 52 include "logic.h"53 52 include "description.h" 54 53 include "iniprint.h" -
LMDZ5/trunk/libf/dyn3dmem/inithist_loc.F
r2601 r2603 48 48 include "comgeom.h" 49 49 include "ener.h" 50 include "logic.h"51 50 include "description.h" 52 51 include "iniprint.h" -
LMDZ5/trunk/libf/dyn3dmem/integrd_loc.F
r2601 r2603 13 13 USE infotrac, ONLY: ok_iso_verif ! ajout CRisi 14 14 USE comconst_mod, ONLY: pi 15 USE logic_mod, ONLY: leapf 15 16 USE comvert_mod, ONLY: ap, bp 16 17 USE temps_mod, ONLY: dt … … 37 38 include "paramet.h" 38 39 include "comgeom.h" 39 include "logic.h"40 40 include "iniprint.h" 41 41 -
LMDZ5/trunk/libf/dyn3dmem/leapfrog_loc.F
r2601 r2603 34 34 USE comconst_mod, ONLY: cpp, dtvr, ihf 35 35 USE comvert_mod, ONLY: ap, bp, pressure_exner 36 USE logic_mod, ONLY: iflag_phys,ok_guide,forward,leapf,apphys, 37 & statcl,conser,apdiss,purmats,ok_strato 36 38 USE temps_mod, ONLY: itaufin,jD_ref,jH_ref,day_ini, 37 39 & day_ref,start_time,dt … … 74 76 include "comdissnew.h" 75 77 include "comgeom.h" 76 include "logic.h"77 78 include "ener.h" 78 79 include "description.h" -
LMDZ5/trunk/libf/dyn3dmem/logic_mod.F90
r2600 r2603 2 2 ! $Id: $ 3 3 ! 4 ! 5 ! NB: keep items of different kinds in seperate common blocs to avoid 6 ! "misaligned commons" issues 7 !----------------------------------------------------------------------- 8 ! INCLUDE 'logic.h' 4 MODULE logic_mod 9 5 10 COMMON/logicl/ purmats,forward,leapf,apphys, & 11 & statcl,conser,apdiss,apdelq,saison,ecripar,fxyhypb,ysinus & 12 & ,read_start,ok_guide,ok_strato,ok_gradsfile & 13 & ,ok_limit,ok_etat0,hybrid 6 IMPLICIT NONE 14 7 15 COMMON/logici/ iflag_phys,iflag_trac 16 17 LOGICAL purmats,forward,leapf,apphys,statcl,conser, & 18 & apdiss,apdelq,saison,ecripar,fxyhypb,ysinus & 19 & ,read_start,ok_guide,ok_strato,ok_gradsfile & 20 & ,ok_limit,ok_etat0 21 22 logical hybrid ! vertical coordinate is hybrid if true (sigma otherwise) 23 ! (only used if disvert_type==2) 8 LOGICAL purmats ! true if time stepping is purely Matsuno scheme 9 ! false implies Matsuno-Leapfrog time stepping scheme 10 LOGICAL forward ! true if during forward phase of Matsuno step 11 LOGICAL leapf ! true if during a leapfrog time stepping step 12 LOGICAL apphys ! true if during a time step when physics will be called 13 LOGICAL statcl 14 LOGICAL conser 15 LOGICAL apdiss ! true if during a time step when dissipation will be called 16 LOGICAL apdelq 17 LOGICAL saison 18 LOGICAL ecripar 19 LOGICAL fxyhypb ! true if using hyperbolic function discretization 20 ! for latitudinal grid 21 LOGICAL ysinus ! true if using sine function discretiation 22 ! for latitudinal grid 23 LOGICAL read_start ! true if reading a start.nc file to initialize fields 24 LOGICAL ok_guide ! true if nudging 25 LOGICAL ok_strato 26 LOGICAL ok_gradsfile 27 LOGICAL ok_limit 28 LOGICAL ok_etat0 29 LOGICAL hybrid ! vertical coordinate is hybrid if true (sigma otherwise) 30 ! (only used if disvert_type==2) 31 INTEGER iflag_phys ! type of physics to call: 0 none, 1: phy*** package, 32 ! 2: Held & Suarez, 101-200: aquaplanets & terraplanets 33 INTEGER iflag_trac 24 34 25 integer iflag_phys,iflag_trac 26 !$OMP THREADPRIVATE(/logicl/) 27 !$OMP THREADPRIVATE(/logici/) 28 !----------------------------------------------------------------------- 35 !$OMP THREADPRIVATE(purmats,forward,leapf,apphys,statcl,conser, & 36 !$OMP apdiss,apdelq,saison,ecripar,fxyhypb,ysinus, & 37 !$OMP read_start,ok_guide,ok_strato,ok_gradsfile, & 38 !$OMP ok_limit,ok_etat0,hybrid) 39 !$OMP THREADPRIVATE(iflag_phys,iflag_trac) 40 41 !WARNING: when adding a threadprivate variable in this module 42 ! do not forget to add it to the copyin clause when opening an OpenMP 43 ! parallel section. e.g. in gcm before call leapfrog_loc 44 45 END MODULE logic_mod -
LMDZ5/trunk/libf/dyn3dmem/tourpot_loc.F90
r2336 r2603 11 11 include "paramet.h" 12 12 include "comgeom.h" 13 include "logic.h"14 13 !=============================================================================== 15 14 ! Arguments: -
LMDZ5/trunk/libf/dyn3dmem/vlsplt_loc.F
r2600 r2603 19 19 include "dimensions.h" 20 20 include "paramet.h" 21 include "logic.h"22 21 c 23 22 c … … 420 419 include "dimensions.h" 421 420 include "paramet.h" 422 include "logic.h"423 421 include "comgeom.h" 424 422 c … … 874 872 include "dimensions.h" 875 873 include "paramet.h" 876 include "logic.h"877 874 c 878 875 c -
LMDZ5/trunk/libf/dyn3dmem/vlspltgen_loc.F
r2600 r2603 37 37 include "dimensions.h" 38 38 include "paramet.h" 39 include "logic.h"40 39 41 40 c -
LMDZ5/trunk/libf/dyn3dmem/vlspltqs_loc.F
r2600 r2603 14 14 include "dimensions.h" 15 15 include "paramet.h" 16 include "logic.h"17 16 c 18 17 c … … 423 422 include "dimensions.h" 424 423 include "paramet.h" 425 include "logic.h"426 424 include "comgeom.h" 427 425 c -
LMDZ5/trunk/libf/dyn3dmem/writedynav_loc.F
r2601 r2603 48 48 include "comgeom.h" 49 49 include "ener.h" 50 include "logic.h"51 50 include "description.h" 52 51 include "iniprint.h" -
LMDZ5/trunk/libf/dyn3dmem/writehist_loc.F
r2601 r2603 48 48 include "comgeom.h" 49 49 include "ener.h" 50 include "logic.h"51 50 include "description.h" 52 51 include "iniprint.h"
Note: See TracChangeset
for help on using the changeset viewer.