Ignore:
Timestamp:
Jul 9, 2021, 5:18:17 PM (3 years ago)
Author:
emillour
Message:

Common dynamics:
Fix a weird issue that only arises in mixed MPI/OpenMP mode with
deallocation (via deallocate_buffer called by WaitRequest?) if
only the halo of surface pressure is registered. Adding the registration
of a companion 3D field seems to solve the problem.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/dyn3dpar/leapfrog_p.F

    r2544 r2549  
    13031303        ! sponge layer
    13041304        if (callsponge) then
    1305           call Register_Hallo(ps,ip1jm,1,1,1,1,1,Request_Dissip)
     1305! NB: Call to Register_Hallo is in principle only required for ps
     1306!     but it seems that then WaitRequest crashes (only in mixed MPI/OpenMP)
     1307!     unless a 3D field has also been registered
     1308          call Register_Hallo(teta,ip1jmp1,llm,0,1,1,0,Request_Dissip)
     1309          call Register_Hallo(ps,ip1jmp1,1,0,1,1,0,Request_Dissip)
    13061310          call SendRequest(Request_Dissip)
    13071311c$OMP BARRIER
Note: See TracChangeset for help on using the changeset viewer.