Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Backofen, Rainer
amdis
Commits
c5d8c7ad
Commit
c5d8c7ad
authored
Feb 09, 2012
by
Thomas Witkowski
Browse files
Fix of file writer for parallel compilation.
parent
a6bacc8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/AMDiS.cc
View file @
c5d8c7ad
...
...
@@ -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
);
}
...
...
AMDiS/src/io/FileWriter.cc
View file @
c5d8c7ad
...
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment