Skip to content

Commit

Permalink
replaced TCGMSG and MPI calls with GA calls to avoid 32-bit integer i…
Browse files Browse the repository at this point in the history
…ssues
  • Loading branch information
edoapra committed Oct 31, 2023
1 parent 880025f commit d8d3adc
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/nwpw/nwpwlib/Parallel/Parallel-mpi.F
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -100,22 +101,26 @@ 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
myio = util_sgroup_set_ioname(
> "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


Expand Down

0 comments on commit d8d3adc

Please sign in to comment.