Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
811f3e87
Commit
811f3e87
authored
Oct 22, 2015
by
Siqi Ling
Browse files
fix a bug when arh3writer is used directly by usr in parallel
parent
4678a381
Changes
2
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/io/FileWriter.cc
View file @
811f3e87
...
...
@@ -231,7 +231,7 @@ namespace AMDiS
createSubDir
>
0
);
}
#endif
Arh3Writer
::
writeFile
(
solutionVecs
,
fn
+
".arh"
);
Arh3Writer
::
writeFile
(
solutionVecs
,
fn
+
".arh"
,
false
);
}
...
...
AMDiS/src/io/detail/Arh3Writer.cc
View file @
811f3e87
...
...
@@ -219,7 +219,25 @@ namespace AMDiS { namespace io {
TEST_EXIT
(
nameset
.
size
()
==
vecs
.
size
())
(
"DOFVectors in vecs cannot have idential name. Please check.
\n
"
);
#ifdef HAVE_PARALLEL_DOMAIN_AMDIS
if
(
writeParallel
)
{
using
boost
::
lexical_cast
;
int
sPos
=
filename
.
find
(
".arh"
);
TEST_EXIT
(
sPos
>=
0
)(
"Failed to find file postfix!
\n
"
);
string
name
=
filename
.
substr
(
0
,
sPos
);
std
::
vector
<
int
>
macroIdx
;
Mesh
*
mesh_
=
mesh
?
mesh
:
vecs
[
0
]
->
getFeSpace
()
->
getMesh
();
if
(
MPI
::
COMM_WORLD
.
Get_rank
()
==
0
)
writeParallelFile
(
name
+
".parh"
,
mesh_
,
false
);
filename
=
name
+
"-p"
+
lexical_cast
<
string
>
(
MPI
::
COMM_WORLD
.
Get_rank
())
+
"-.arh"
;
}
#endif
bool
multiMesh
=
meshset
.
size
()
>
1
;
//if mesh exists, the meshes in vecs should be the same.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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