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
solverstack
ScalFMM
Commits
354341d5
Commit
354341d5
authored
Aug 21, 2017
by
COULAUD Olivier
Browse files
Fix bug when reading an ascii file
parent
46a7ff76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/Files/FMpiFmaGenericLoader.hpp
View file @
354341d5
...
...
@@ -31,6 +31,7 @@ public:
FSize
endPart
=
comm
.
getRight
(
nbParticles
);
this
->
start
=
startPart
;
this
->
myNbOfParticles
=
endPart
-
startPart
;
std
::
cout
<<
" startPart "
<<
startPart
<<
" endPart "
<<
endPart
<<
std
::
endl
;
std
::
cout
<<
"Proc "
<<
comm
.
processId
()
<<
" will hold "
<<
myNbOfParticles
<<
std
::
endl
;
if
(
this
->
binaryFile
)
{
...
...
@@ -40,6 +41,8 @@ public:
//To this header size, we had the parts that belongs to proc on my left
file
->
seekg
(
headerSize
+
startPart
*
typeData
[
1
]
*
sizeof
(
FReal
));
}
else
{
// First finish to read the current line
file
->
ignore
(
std
::
numeric_limits
<
std
::
streamsize
>::
max
(),
'\n'
);
for
(
int
i
=
0
;
i
<
startPart
;
++
i
)
{
file
->
ignore
(
std
::
numeric_limits
<
std
::
streamsize
>::
max
(),
'\n'
);
}
...
...
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