diff --git a/src/nwpw/nwpwlib/Parallel/Parallel-mpi.F b/src/nwpw/nwpwlib/Parallel/Parallel-mpi.F index e8a1d9e414..c2e652b998 100644 --- a/src/nwpw/nwpwlib/Parallel/Parallel-mpi.F +++ b/src/nwpw/nwpwlib/Parallel/Parallel-mpi.F @@ -55,7 +55,8 @@ subroutine Parallel_Init() * **** local variables **** integer MASTER parameter (MASTER=0) - integer i,mpierr,mygroup,myio,mydepth + integer i,mygroup,myio,mydepth + integer*4 mpierr character*50 nwfilename character*7 c_index_name external c_index_name @@ -100,8 +101,13 @@ subroutine Parallel_Init() #ifdef USE_SUBGROUPS #ifdef GA_DEV +#if 0 call MPI_COMM_RANK(comm_world,taskid,mpierr) call MPI_COMM_SIZE(comm_world,np,mpierr) +#else + np = ga_nnodes() + taskid = ga_nodeid() +#endif mydepth = util_sgroup_depth() mygroup = util_sgroup_mygroup() if ((taskid.eq.MASTER).and.(mydepth.gt.0)) then @@ -109,13 +115,12 @@ subroutine Parallel_Init() > "nwpw"//c_index_name(mygroup)//".output") end if #else - np = nnodes() - taskid = nodeid() + taskid = ga_nodeid() #endif #else - np = nnodes() - taskid = nodeid() + np = ga_nnodes() + taskid = ga_nodeid() #endif diff --git a/src/tools/ga_diag_seg_i4_patch.sh b/src/tools/ga_diag_seg_i4_patch.sh new file mode 100755 index 0000000000..479d419347 --- /dev/null +++ b/src/tools/ga_diag_seg_i4_patch.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash +rm -f ga_diag_seg_i4.patch +cat > ga_diag_seg_i4.patch <