Skip to content

Commit

Permalink
use MTHREADS=1 when OPENACC is activated
Browse files Browse the repository at this point in the history
  • Loading branch information
fdisante authored and Fabio Di Sante committed Feb 12, 2024
1 parent 323b97c commit c122a58
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/ecwam/ctuwdrv.F90
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ SUBROUTINE CTUWDRV (DELPRO, MSTART, MEND, &
IF (LHOOK) CALL DR_HOOK('CTUWDRV',0,ZHOOK_HANDLE)

!! NPROMA=NPROMA_WAM
MTHREADS=1
#ifdef _OPENACC
MTHREADS=OMP_GET_MAX_THREADS()
#ifdef _OPENACC
MTHREADS=1
#endif /*_OPENACC*/
NPROMA=(IJL-IJS+1)/MTHREADS + 1

Expand Down
4 changes: 2 additions & 2 deletions src/ecwam/ctuwupdt.F90
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ SUBROUTINE CTUWUPDT (IJS, IJL, NINF, NSUP, &

! SOME INITIALISATION FOR *CTUW*
!! NPROMA=NPROMA_WAM
MTHREADS=1
#ifdef _OPENACC
MTHREADS=OMP_GET_MAX_THREADS()
#ifdef _OPENACC
MTHREADS=1
#endif /*_OPENACC*/
NPROMA=(IJL-IJS+1)/MTHREADS + 1

Expand Down
4 changes: 2 additions & 2 deletions src/ecwam/propag_wam.F90
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ SUBROUTINE PROPAG_WAM (BLK2GLO, WAVNUM, CGROUP, OMOSNH2KD, FL1, &
IJSG = IJFROMCHNK(1,1)
IJLG = IJSG + SUM(KIJL4CHNK) - 1

MTHREADS=1
#ifdef _OPENACC
MTHREADS=OMP_GET_MAX_THREADS()
#ifdef _OPENACC
MTHREADS=1
#endif /*_OPENACC*/
NPROMA=(IJLG-IJSG+1)/MTHREADS + 1

Expand Down

0 comments on commit c122a58

Please sign in to comment.