Commit 72936780 authored by BRAMAS Berenger's avatar BRAMAS Berenger

udpate mpi starpu rotation

parent 3cbd6d3d
......@@ -85,7 +85,13 @@ int main(int argc, char* argv[]){
// open particle file
std::cout << "Opening : " << filename << "\n" << std::endl;
FRandomLoader<FReal> loader(FParameters::getValue(argc,argv,FParameterDefinitions::NbParticles.options, 2000),
const int totalParticles = FParameters::getValue(argc,argv,FParameterDefinitions::NbParticles.options, 2000);
const int localParticles = totalParticles/mpiComm.global().processCount();
std::cout << " totalParticles " << totalParticles << std::endl;
std::cout << " localParticles " << localParticles << std::endl;
FRandomLoader<FReal> loader(localParticles,
1.0, FPoint<FReal>(0,0,0), mpiComm.global().processId());
FAssertLF(loader.isOpen());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment