Commit c5d8c7ad authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

Fix of file writer for parallel compilation.

parent a6bacc8a
...@@ -44,7 +44,7 @@ namespace AMDiS { ...@@ -44,7 +44,7 @@ namespace AMDiS {
TEST_EXIT(argc >= 2)("No init file!\n"); TEST_EXIT(argc >= 2)("No init file!\n");
Parameters::init(string(argv[1])); Parameters::init(string(argv[2]));
Parameters::readArgv(argc, argv); Parameters::readArgv(argc, argv);
} }
......
...@@ -160,10 +160,11 @@ namespace AMDiS { ...@@ -160,10 +160,11 @@ namespace AMDiS {
// vtkVectorWriter.writeFile(fn + paraviewFileExt); // vtkVectorWriter.writeFile(fn + paraviewFileExt);
#if HAVE_PARALLEL_DOMAIN_AMDIS #if HAVE_PARALLEL_DOMAIN_AMDIS
if (MPI::COMM_WORLD.Get_rank() == 0) ERROR_EXIT("Simon must make some work in this, does not compile in parallel!\n");
vtkVectorWriter.writeParallelFile(paraFilename + paraviewParallelFileExt, // if (MPI::COMM_WORLD.Get_rank() == 0)
MPI::COMM_WORLD.Get_size(), // vtkVectorWriter.writeParallelFile(paraFilename + paraviewParallelFileExt,
filename, postfix); // MPI::COMM_WORLD.Get_size(),
// filename, postfix);
#endif #endif
MSG("ParaView file written to %s\n", (fn + paraviewFileExt).c_str()); MSG("ParaView file written to %s\n", (fn + paraviewFileExt).c_str());
......
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