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