Ignore:
Timestamp:
Oct 22, 2023, 1:42:30 PM (13 months ago)
Author:
emillour
Message:

Mars PCM:
Fix issues with dates when in parallel with OpenMP (missing copyin
statement when opening parallel section in iniphysiq). Added some threadprivate
clauses in saved module variables in comcstfi_h.F90 and planete_h.F90.
Prettyfied solarlong.F and made it a module. Likewise for conf_phys.F
EM

File:
1 edited

Legend:

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

    r1524 r3094  
    22      IMPLICIT NONE
    33
    4       REAL pi ! something like 3.14159
    5       REAL rad ! radius of the planet (m)
    6       REAL g ! gravity (m/s2)
    7       REAL r ! reduced gas constant (r=8.314511/(mugaz/1000.0))
    8       REAL cpp ! Cp of the atmosphere
    9       REAL rcp ! r/cpp
    10       REAL mugaz ! molar mass of the atmosphere (g/mol)
    11       REAL omeg ! planet rotation rate (rad/s)
    12 
     4      REAL,SAVE :: pi ! something like 3.14159
     5      REAL,SAVE :: rad ! radius of the planet (m)
     6      REAL,SAVE :: g ! gravity (m/s2)
     7!$OMP THREADPRIVATE(pi,rad,g)
     8      REAL,SAVE :: r ! reduced gas constant (r=8.314511/(mugaz/1000.0))
     9      REAL,SAVE :: cpp ! Cp of the atmosphere
     10      REAL,SAVE :: rcp ! r/cpp
     11!$OMP THREADPRIVATE(r,cpp,rcp)
     12      REAL,SAVE :: mugaz ! molar mass of the atmosphere (g/mol)
     13      REAL,SAVE :: omeg ! planet rotation rate (rad/s)
     14!$OMP THREADPRIVATE(mugaz,omeg)
     15     
    1316      END MODULE comcstfi_h
Note: See TracChangeset for help on using the changeset viewer.