# NOT RUN {
spmd.code = "
suppressMessages(library(pbdBASE))
init.grid()
blacs_ <- blacs(ICTXT = 0)
# get the ICTXT = 0 BLACS coordsinates for process 0
myCoords <- base.pcoord(ICTXT = 0, PNUM = 0)
comm.print(myCoords)
finalize()
"
pbdMPI::execmpi(spmd.code = spmd.code, nranks = 2L)
# }
Run the code above in your browser using DataCamp Workspace