Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Boards
Labels
Milestones
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
b954231c
Commit
b954231c
authored
Sep 26, 2016
by
Berenger Bramas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make the logging system working for the loader
parent
5a8bb58c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
Src/Files/FFmaGenericLoader.hpp
Src/Files/FFmaGenericLoader.hpp
+7
-7
No files found.
Src/Files/FFmaGenericLoader.hpp
View file @
b954231c
...
...
@@ -230,7 +230,7 @@ private:
std
::
cerr
<<
"File "
<<
filename
<<
" not opened! Error: "
<<
strerror
(
errno
)
<<
std
::
endl
;
std
::
exit
(
EXIT_FAILURE
);
}
FLOG
(
FLog
::
Controller
<<
"Opened file "
<<
filename
<<
std
::
endl
);
FLOG
(
FLog
::
Controller
<<
"Opened file "
<<
filename
<<
"
\n
"
);
}
public:
...
...
@@ -507,24 +507,24 @@ private:
}
FLOG
(
FLog
::
Controller
<<
" nbParticles: "
<<
this
->
nbParticles
<<
std
::
endl
<<
" Box width: "
<<
this
->
boxWidth
<<
std
::
endl
<<
" Center: "
<<
this
->
centerOfBox
<<
std
::
endl
);
<<
" Box width: "
<<
this
->
boxWidth
<<
"
\n
"
<<
" Center: "
<<
this
->
centerOfBox
<<
"
\n
"
);
}
void
readAscciHeader
()
{
FLOG
(
FLog
::
Controller
<<
" File open in ASCII mode
"
<<
std
::
endl
);
FLOG
(
FLog
::
Controller
<<
" File open in ASCII mode
\n
"
);
FReal
x
,
y
,
z
;
(
*
this
->
file
)
>>
typeData
[
0
]
>>
typeData
[
1
];
FLOG
(
FLog
::
Controller
<<
" Datatype "
<<
typeData
[
0
]
<<
" "
<<
typeData
[
1
]
<<
std
::
endl
);
FLOG
(
FLog
::
Controller
<<
" Datatype "
<<
typeData
[
0
]
<<
" "
<<
typeData
[
1
]
<<
"
\n
"
);
(
*
this
->
file
)
>>
this
->
nbParticles
>>
this
->
boxWidth
>>
x
>>
y
>>
z
;
this
->
centerOfBox
.
setPosition
(
x
,
y
,
z
);
this
->
boxWidth
*=
2
;
otherDataToRead
=
typeData
[
1
]
-
(
unsigned
int
)(
4
);
};
void
readBinaryHeader
(){
FLOG
(
FLog
::
Controller
<<
" File open in binary mode
"
<<
std
::
endl
);
FLOG
(
FLog
::
Controller
<<
" File open in binary mode
\n
"
);
file
->
seekg
(
std
::
ios
::
beg
);
file
->
read
((
char
*
)
&
typeData
,
2
*
sizeof
(
unsigned
int
));
FLOG
(
FLog
::
Controller
<<
" Datatype "
<<
typeData
[
0
]
<<
" "
<<
typeData
[
1
]
<<
std
::
endl
);
FLOG
(
FLog
::
Controller
<<
" Datatype "
<<
typeData
[
0
]
<<
" "
<<
typeData
[
1
]
<<
"
\n
"
);
if
(
typeData
[
0
]
!=
sizeof
(
FReal
)){
std
::
cerr
<<
"Size of elements in part file "
<<
typeData
[
0
]
<<
" is different from size of FReal "
<<
sizeof
(
FReal
)
<<
std
::
endl
;
std
::
exit
(
EXIT_FAILURE
);
...
...
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