Ignore:
Timestamp:
Feb 13, 2025, 9:45:25 AM (8 hours ago)
Author:
emillour
Message:

Mars PCM:
OpenMP fix, zdqsdif_ssi_tot is a saved variable and has to be THREADPRIVATE.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/paleoclimate_mod.F90

    r3619 r3625  
    1212
    1313logical :: paleoclimate ! False by default, is activate  for paleoclimates specific processes (e.g., lag layer) is initialized in conf_phys
     14!$OMP THREADPRIVATE(paleoclimate)
    1415
    15 !$OMP THREADPRIVATE(paleoclimate)
    1616    real,    allocatable, dimension(:,:) :: h2o_ice_depth         ! Thickness of the lag before H2O ice [m]
    1717    real,    allocatable, dimension(:,:) :: lag_co2_ice           ! Thickness of the lag before CO2 ice [m]
    1818    real,    allocatable, dimension(:,:) :: zdqsdif_ssi_tot       ! Total flux of the interactions with SSI (kg/m^2/s^-1)
     19!$OMP THREADPRIVATE(h2o_ice_depth,lag_co2_ice,zdqsdif_ssi_tot)
    1920    real,    allocatable, dimension(:,:) :: d_coef                ! Diffusion coefficent
    2021    logical                              :: lag_layer             ! Does lag layer is present?
    2122    logical                              :: include_waterbuoyancy ! Include the effect of water buoyancy when computing the sublimation of water ice ?
    22 !$OMP THREADPRIVATE(h2o_ice_depth,lag_co2_ice,d_coef,lag_layer,include_waterbuoyancy)
     23!$OMP THREADPRIVATE(d_coef,lag_layer,include_waterbuoyancy)
    2324
    2425!=======================================================================
Note: See TracChangeset for help on using the changeset viewer.