Ignore:
Timestamp:
Jun 18, 2015, 1:53:21 PM (9 years ago)
Author:
ymipsl
Message:

Some missing threadprivate...

YM

Location:
dynamico_lmdz/aquaplanet/LMDZ5/libf
Files:
5 edited

Legend:

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

    r3831 r3835  
    8989  REAL,ALLOCATABLE,SAVE :: boundslatfi(:,:)
    9090!$OMP THREADPRIVATE (latfi,lonfi,cufi,cvfi,airefi,boundslonfi,boundslatfi)
    91   INTEGER :: itaufin_phy
    9291 
    9392
     
    237236  ! transfer some flags/infos from dynamics to physics
    238237 
    239   itaufin_phy=itaufin/iphysiq
    240 
    241238  CALL inifis(punjours,prad,pg,pr,pcpp)
    242239
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/inifis_mod.F90

    r3831 r3835  
    1 
    2 ! $Id: $
    31MODULE inifis_mod
    42
    5   IMPLICIT NONE
    6   ! for now constants and flags transmitted from dyn to phys are stored here
    7 !  REAL,SAVE    :: daysec ! length of reference day (s)
    8 !  REAL,SAVE    :: dtphys ! physics time step (s)
    9 !  INTEGER,SAVE :: day_step ! number of physical steps per day
    10 !  INTEGER,SAVE :: nday ! number of days to run
    11 !!$OMP THREADPRIVATE(daysec,dtphys,day_step,iphysiq,dayref,anneeref,nday)
    12 !  INTEGER,SAVE :: annee_ref ! reference year as read from start file
    13 !  INTEGER,SAVE :: day_ini
    14 !  INTEGER,SAVE :: day_end
    15 !!$OMP THREADPRIVATE(annee_ref,day_ini,day_end)
    16 !  INTEGER,SAVE :: itau_phy   ! number of physiq iteration from origin
    17 !  INTEGER,SAVE :: itaufin    ! final iteration
    18 !  REAL,SAVE    :: start_time
    19 !  INTEGER,SAVE :: day_ref
    20 !  REAL,SAVE :: jD_ref
    21 !!$OMP THREADPRIVATE(itau_phy,itaufin,start_time,day_ref,JD_ref)
    22 !  INTEGER,SAVE :: raz_date
    23 !  INTEGER,SAVE :: lunout=6 ! default output file identifier (6==screen)
    24 !  INTEGER,SAVE :: prt_level ! Output level
    25 !  LOGICAL,SAVE :: debug ! flag to specify if in "debug mode"
    26 !!$OMP THREADPRIVATE(lunout,prt_level,debug)
     3
    274
    285CONTAINS
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/phys_cal_mod.F90

    r3831 r3835  
    33! This module contains information on the calendar at the actual time step
    44
    5   SAVE
    6 
    7   INTEGER :: year_cur      ! current year
    8   INTEGER :: mth_cur       ! current month
    9   INTEGER :: day_cur       ! current day
    10   INTEGER :: days_elapsed  ! number of whole days since start of the simulation
    11   INTEGER :: mth_len       ! number of days in the current month
    12   INTEGER :: year_len      ! number of days in the current year
    13   REAL    :: hour
    14   REAL    :: jD_1jan
    15   REAL    :: jH_1jan
    16   REAL    :: xjour
    17   REAL    :: jD_cur  ! jour courant a l'appel de la physique (jour julien)
    18   REAL    :: jH_cur  ! heure courante a l'appel de la physique (jour julien)
    19   REAL    :: jD_ref  ! jour du demarage de la simulation (jour julien)
     5  INTEGER,SAVE :: year_cur      ! current year
     6!$OMP THREADPRIVATE(year_cur)
     7  INTEGER,SAVE :: mth_cur       ! current month
     8!$OMP THREADPRIVATE(mth_cur)
     9  INTEGER,SAVE :: day_cur       ! current day
     10!$OMP THREADPRIVATE(day_cur)
     11  INTEGER,SAVE :: days_elapsed  ! number of whole days since start of the simulation
     12!$OMP THREADPRIVATE(days_elapsed)
     13  INTEGER,SAVE :: mth_len       ! number of days in the current month
     14!$OMP THREADPRIVATE(mth_len)
     15  INTEGER,SAVE :: year_len      ! number of days in the current year
     16!$OMP THREADPRIVATE(year_len)
     17  REAL,SAVE    :: hour
     18!$OMP THREADPRIVATE(hour)
     19  REAL,SAVE    :: jD_1jan
     20!$OMP THREADPRIVATE(jD_1jan)
     21  REAL,SAVE    :: jH_1jan
     22!$OMP THREADPRIVATE(jH_1jan)
     23  REAL,SAVE    :: xjour
     24!$OMP THREADPRIVATE(xjour)
     25  REAL,SAVE    :: jD_cur  ! jour courant a l'appel de la physique (jour julien)
     26!$OMP THREADPRIVATE(jD_cur)
     27  REAL,SAVE    :: jH_cur  ! heure courante a l'appel de la physique (jour julien)
     28!$OMP THREADPRIVATE(jH_cur)
     29  REAL,SAVE    :: jD_ref  ! jour du demarage de la simulation (jour julien)
     30!$OMP THREADPRIVATE(jD_ref)
    2031
    2132
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/regular_lonlat_mod.f90

    r3825 r3835  
    1111  INTEGER, PARAMETER :: south=2          ! boundaries of regular lontlat
    1212
     13! Global definition, shared by all threads
     14! Do not set threadprivate directives
     15
    1316  REAL,SAVE,ALLOCATABLE :: lon_reg(:)      ! value of longitude cell (rad)
    14 !$OMP THREADPRIVATE(lon_reg)
    1517
    1618  REAL,SAVE,ALLOCATABLE :: lat_reg(:)      ! value of longitude cell (rad)
    17 !$OMP THREADPRIVATE(lat_reg)
    1819
    1920  REAL,SAVE,ALLOCATABLE :: boundslon_reg(:,:)      ! value of boundaries cell (1=>east, 2=>west)(rad)
    20 !$OMP THREADPRIVATE(boundslon_reg)
    2121
    2222  REAL,SAVE,ALLOCATABLE :: boundslat_reg(:,:)      ! value of longitude cell (1=>north, 2=>south)(rad)
    23 !$OMP THREADPRIVATE(boundslat_reg)
    2423
    2524
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/time_phylmdz_mod.f90

    r3831 r3835  
    22
    33    REAL,SAVE    :: pdtphys     ! physics time step (s)
     4!$OMP THREADPRIVATE(pdtphys)
    45    INTEGER,SAVE :: day_step    ! number of physical steps per day
     6!$OMP THREADPRIVATE(day_step)
    57    INTEGER,SAVE :: ndays       ! number of days to run
     8!$OMP THREADPRIVATE(ndays)
    69    INTEGER,SAVE :: annee_ref   ! reference year from the origin
     10!$OMP THREADPRIVATE(annee_ref)
    711    INTEGER,SAVE :: day_ref     ! reference year of the origin
     12!$OMP THREADPRIVATE(day_ref)
    813    INTEGER,SAVE :: day_ini     ! initial day of the run starting from 1st january of annee_ref
     14!$OMP THREADPRIVATE(day_ini)
    915    INTEGER,SAVE :: day_end     ! final day of the run starting from 1st january of annee_ref
     16!$OMP THREADPRIVATE(day_end)
    1017    REAL,SAVE    :: start_time  ! starting time from the begining of the initial day
     18!$OMP THREADPRIVATE(start_time)
    1119    INTEGER,SAVE :: raz_date
     20!$OMP THREADPRIVATE(raz_date)
    1221
    1322    INTEGER,SAVE :: itau_phy     ! number of physiq iteration from origin
     23!$OMP THREADPRIVATE(itau_phy)
    1424    INTEGER,SAVE :: itaufin      ! final iteration
     25!$OMP THREADPRIVATE(itaufin)
    1526    REAL,SAVE    :: current_time ! current elapsed time (s) from the begining of the run
    16 
     27!$OMP THREADPRIVATE(current_time)
    1728   
    1829
     
    2233  USE ioipsl, ONLY : getin
    2334  USE phys_cal_mod, ONLY: phys_cal_init
     35  USE mod_phys_lmdz_para
    2436  IMPLICIT NONE
    2537  INCLUDE 'YOMCST.h'
     
    4254 
    4355    raz_date = 0
    44     CALL getin('raz_date', raz_date)
     56    IF (is_master) CALL getin('raz_date', raz_date)
     57    CALL bcast(raz_date)
    4558    current_time=0
    4659   
Note: See TracChangeset for help on using the changeset viewer.