From 29c373f475fc6ea117bf67cc74585a863fe30f3f Mon Sep 17 00:00:00 2001 From: edoapra Date: Wed, 10 May 2023 21:15:04 -0700 Subject: [PATCH] set check_mpirun t to trigger mpirun check --- src/nwchem.F | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/nwchem.F b/src/nwchem.F index 3fb9423375..6512a199d6 100644 --- a/src/nwchem.F +++ b/src/nwchem.F @@ -86,7 +86,7 @@ c integer omp_get_max_threads external omp_get_max_threads #endif - logical do_printaff + logical do_printaff,do_checkmpi integer linux_printaff integer mpirun_code c @@ -287,8 +287,6 @@ c c call perfm_start() - call util_checkmpirun(mpirun_code) - if(mpirun_code.eq.0) call errquit('mpirun incompatible ',0,UERR) #ifdef USE_OFFLOAD call util_getppn(ppnout) if(ppnout.eq.0) call errquit('util_getppn failed ',0,UERR) @@ -321,6 +319,14 @@ c #ifdef CATAMOUNT call util_allocga() #endif + if (.not.rtdb_get(rtdb,'check_mpirun',mt_log,1,do_checkmpi)) + & do_checkmpi = .false. + if(do_checkmpi) then + mpirun_code=0 + call util_checkmpirun(mpirun_code) + if(mpirun_code.eq.0) call errquit('mpirun incompatible ', + * 0 ,UERR) + endif if (.not.rtdb_get(rtdb,'do_printaff',mt_log,1,do_printaff)) & do_printaff = .false. if(do_printaff) then