Ignore:
Timestamp:
Mar 23, 2026, 11:30:30 PM (2 weeks ago)
Author:
lguez
Message:

Set variables to OpenMP threadprivate

Set press_cen_climoz, press_edg_climoz and time_climoz in
procedure physiq to OpenMP threadprivate. We then have to call
open_climoz for each thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/physiq_mod.F90

    r6120 r6122  
    10701070    !     climatology and the daylight climatology
    10711071    INTEGER,SAVE :: ncid_climoz                ! NetCDF file identifier
    1072     !$OMP THREADPRIVATE(read_climoz, ncid_climoz)
    1073 
    1074     !  Following variables are OpenMP shared
    10751072    REAL, ALLOCATABLE, SAVE :: press_cen_climoz(:) ! Pressure levels
    10761073    REAL, ALLOCATABLE, SAVE :: press_edg_climoz(:) ! Edges of pressure intervals
    10771074    REAL, ALLOCATABLE, SAVE :: time_climoz(:)      ! Time vector
     1075    !$OMP THREADPRIVATE(read_climoz, ncid_climoz, press_cen_climoz)
     1076    !$OMP THREADPRIVATE(press_edg_climoz, time_climoz)
    10781077
    10791078    CHARACTER(LEN=13), PARAMETER :: vars_climoz(2) &
     
    21242123       ENDIF
    21252124
    2126        !$omp master
    21272125       IF (read_climoz >= 1) CALL open_climoz(ncid_climoz, press_cen_climoz,   &
    21282126            press_edg_climoz, time_climoz, ok_daily_climoz, adjust_tropopause)
    2129        !$omp end master
    21302127       !
    21312128       !IM betaCRF
Note: See TracChangeset for help on using the changeset viewer.