Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backofen, Rainer
amdis
Commits
811f3e87
Commit
811f3e87
authored
Oct 22, 2015
by
Siqi Ling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a bug when arh3writer is used directly by usr in parallel
parent
4678a381
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
AMDiS/src/io/FileWriter.cc
AMDiS/src/io/FileWriter.cc
+1
-1
AMDiS/src/io/detail/Arh3Writer.cc
AMDiS/src/io/detail/Arh3Writer.cc
+19
-1
No files found.
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
Markdown
is supported
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