Changeset 3832
- Timestamp:
- Jul 7, 2025, 11:32:55 AM (10 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/phy_common/mod_phys_lmdz_omp_transfert.F90
r3288 r3832 96 96 97 97 !$OMP BARRIER 98 !$OMP MASTER 98 ! Ehouarn: weirdly enough, despite the BARRIER above and after 99 ! tests in debug show that if the task is done by the MASTER 100 ! sometimes the buffer is not allocated (yet) but used by threads 101 ! whereas things go more smoothly if the task is done via SINGLE 102 !$OMP SINGLE 99 103 IF (buff_size>size_l) THEN 100 104 IF (ALLOCATED(buffer_l)) DEALLOCATE(buffer_l) … … 102 106 ALLOCATE(buffer_l(size_l)) 103 107 ENDIF 104 !$OMP END MASTER108 !$OMP END SINGLE 105 109 !$OMP BARRIER 106 110
Note: See TracChangeset
for help on using the changeset viewer.