Changeset 1450


Ignore:
Timestamp:
Jun 11, 2015, 12:26:20 PM (9 years ago)
Author:
emillour
Message:

Generic GCM:
OpenMP fix: only master allocates/deallocates shared saved variables.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/sugas_corrk.F90

    r1397 r1450  
    261261      tgasmin = tgasref(1)
    262262      tgasmax = tgasref(L_NTREF)
     263
     264      IF( .NOT. ALLOCATED( gasi8 ) ) ALLOCATE( gasi8(L_NTREF,L_NPREF,L_REFVAR,L_NSPECTI,L_NGAUSS) )
     265      IF( .NOT. ALLOCATED( gasv8 ) ) ALLOCATE( gasv8(L_NTREF,L_NPREF,L_REFVAR,L_NSPECTV,L_NGAUSS) )
    263266!$OMP END MASTER
    264267!$OMP BARRIER
     
    266269!-----------------------------------------------------------------------
    267270! allocate the multidimensional arrays in radcommon_h
    268 
    269       IF( .NOT. ALLOCATED( gasi8 ) ) ALLOCATE( gasi8(L_NTREF,L_NPREF,L_REFVAR,L_NSPECTI,L_NGAUSS) )
    270       IF( .NOT. ALLOCATED( gasv8 ) ) ALLOCATE( gasv8(L_NTREF,L_NPREF,L_REFVAR,L_NSPECTV,L_NGAUSS) )
    271271      IF( .NOT. ALLOCATED( gasi ) ) ALLOCATE( gasi(L_NTREF,L_PINT,L_REFVAR,L_NSPECTI,L_NGAUSS) )
    272272      IF( .NOT. ALLOCATED( gasv ) ) ALLOCATE( gasv(L_NTREF,L_PINT,L_REFVAR,L_NSPECTV,L_NGAUSS) )
Note: See TracChangeset for help on using the changeset viewer.