PMPI_COMM_RANK Invalid Communicator
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So I am a complete novice at MPI but I've inherited code that uses it. The script contains a section that processes a data file and uses the MPI_COMM_RANK routine: /* Load Data */ std::cout << "Loading data..." << std::endl; ThisTask=0; All.ICFormat=1; RestartFlag=1; /* This is actually an MPI routine, so we will need to set up MPI */ NTask=1; /* Gadget2 global */ All.PartAllocFactor=1.0; /* The factor for allocating memory for particle data. */ All.BufferSize = 1024.0; /* The size (in MByte per processor) of a communication buffer. */ if(!