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
Aland, Sebastian
amdis
Commits
52419cef
Commit
52419cef
authored
Jun 10, 2011
by
Backofen, Rainer
Browse files
Error message for missing file in deserialization
parent
5ce8ac8b
Changes
3
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/AdaptInstationary.cc
View file @
52419cef
...
...
@@ -82,7 +82,7 @@ namespace AMDiS {
// serialization file mentioned in the used init file.
MSG
(
"Deserialization from file: %s
\n
"
,
queueSerializationFilename
.
c_str
());
std
::
ifstream
in
(
queueSerializationFilename
.
c_str
());
std
::
ifstream
in
(
queueSerializationFilename
.
c_str
()
,
ios
::
in
);
deserialize
(
in
);
in
.
close
();
...
...
@@ -388,7 +388,8 @@ namespace AMDiS {
void
AdaptInstationary
::
deserialize
(
std
::
istream
&
in
)
{
FUNCNAME
(
"AdaptInstationary::deserialize()"
);
if
(
in
.
fail
())
ERROR_EXIT
(
"File not found for deserialization
\n
"
);
problemIteration
->
deserialize
(
in
);
adaptInfo
->
deserialize
(
in
);
if
(
problemTime
)
...
...
AMDiS/src/ProblemStat.cc
View file @
52419cef
...
...
@@ -196,11 +196,11 @@ namespace AMDiS {
// If AMDiS is compiled for parallel computations, the deserialization is
// controlled by the parallel problem object.
#ifndef HAVE_PARALLEL_DOMAIN_AMDIS
MSG
(
"Deserialization from file: %s
\n
"
,
serializationFilename
.
c_str
());
ifstream
in
(
serializationFilename
.
c_str
());
deserialize
(
in
);
in
.
close
();
MSG
(
"Deserialization from file: %s
\n
"
,
serializationFilename
.
c_str
());
#endif
deserialized
=
true
;
...
...
@@ -1814,6 +1814,8 @@ namespace AMDiS {
void
ProblemStatSeq
::
deserialize
(
istream
&
in
)
{
FUNCNAME
(
"ProblemStat::deserialize()"
);
if
(
in
.
fail
())
ERROR_EXIT
(
"File not found for deserialization
\n
"
);
for
(
unsigned
int
i
=
0
;
i
<
meshes
.
size
();
i
++
)
meshes
[
i
]
->
deserialize
(
in
);
...
...
doc/tutorial/tutorial.pdf
View file @
52419cef
No preview for this file type
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