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
Backofen, Rainer
amdis
Commits
4e3f0a36
Commit
4e3f0a36
authored
Dec 16, 2015
by
Naumann, Andreas
Browse files
long initfile strings
parent
c6dd3036
Changes
1
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/Initfile.cc
View file @
4e3f0a36
...
...
@@ -86,8 +86,10 @@ namespace AMDiS {
void
Initfile
::
read
(
istream
&
in
)
{
const
unsigned
line_length
=
512
;
char
swap
[
line_length
];
in
.
getline
(
swap
,
line_length
);
//char swap[line_length];
std
::
string
swap
;
std
::
getline
(
in
,
swap
);
//in.getline(swap, line_length);
while
(
in
.
good
()
||
in
.
gcount
()
>
0
)
{
std
::
string
whitespaces
=
"
\t\r\f\n
"
;
std
::
string
delimiter
=
"
\r\n
"
;
...
...
@@ -147,7 +149,8 @@ namespace AMDiS {
read
(
fn
,
forceRead
);
}
in
.
getline
(
swap
,
line_length
);
//in.getline(swap, line_length);
getline
(
in
,
swap
);
}
}
...
...
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