Ignore:
Timestamp:
Mar 11, 2009, 1:47:42 PM (15 years ago)
Author:
yann meurdesoif
Message:

Correction pour bon fonctionnement en OpenMP suite à la mise à jour des modifications sur le nombre de traceur spécifié dynamiquement
YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/LMDZ4-dev/libf/dyn3dpar/vlspltgen_p.F

    r1114 r1117  
    6969      INTEGER ijb,ije,iq
    7070      LOGICAL, SAVE :: firstcall=.TRUE.
    71 
     71!$OMP THREADPRIVATE(firstcall)
    7272      type(request) :: MyRequest1
    7373      type(request) :: MyRequest2
     
    8888
    8989c Allocate variables depending on dynamic variable nqtot
     90
    9091         IF (firstcall) THEN
    9192            firstcall=.FALSE.
     93!$OMP MASTER
    9294            ALLOCATE(zm(ip1jmp1,llm,nqtot))
    9395            ALLOCATE(zq(ip1jmp1,llm,nqtot))
     96!$OMP END MASTER
     97!$OMP BARRIER
    9498         END IF
    95 
    9699c-- Calcul de Qsat en chaque point
    97100c-- approximation: au milieu des couches play(l)=(p(l)+p(l+1))/2
Note: See TracChangeset for help on using the changeset viewer.