Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
46bba92d
Commit
46bba92d
authored
8 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
formatting.
parent
328c158f
No related branches found
No related tags found
1 merge request
!299
Particle logger
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/logger.c
+4
-3
4 additions, 3 deletions
src/logger.c
with
4 additions
and
3 deletions
src/logger.c
+
4
−
3
View file @
46bba92d
...
@@ -363,7 +363,7 @@ int logger_read_gpart(struct gpart *p, size_t *offset, const char *buff) {
...
@@ -363,7 +363,7 @@ int logger_read_gpart(struct gpart *p, size_t *offset, const char *buff) {
/* We are only interested in particle data. */
/* We are only interested in particle data. */
if
(
mask
&
logger_mask_timestamp
)
if
(
mask
&
logger_mask_timestamp
)
error
(
"Trying to read timestamp as particle."
);
error
(
"Trying to read timestamp as particle."
);
/* We can't store all part fields in a gpart. */
/* We can't store all part fields in a gpart. */
if
(
mask
&
(
logger_mask_u
|
logger_mask_rho
))
if
(
mask
&
(
logger_mask_u
|
logger_mask_rho
))
error
(
"Trying to read SPH quantities into a gpart."
);
error
(
"Trying to read SPH quantities into a gpart."
);
...
@@ -415,7 +415,8 @@ int logger_read_gpart(struct gpart *p, size_t *offset, const char *buff) {
...
@@ -415,7 +415,8 @@ int logger_read_gpart(struct gpart *p, size_t *offset, const char *buff) {
* @return The mask containing the values read.
* @return The mask containing the values read.
*/
*/
int
logger_read_timestamp
(
unsigned
long
long
int
*
t
,
size_t
*
offset
,
const
char
*
buff
)
{
int
logger_read_timestamp
(
unsigned
long
long
int
*
t
,
size_t
*
offset
,
const
char
*
buff
)
{
/* Jump to the offset. */
/* Jump to the offset. */
buff
=
&
buff
[
*
offset
];
buff
=
&
buff
[
*
offset
];
...
@@ -429,7 +430,7 @@ int logger_read_timestamp(unsigned long long int *t, size_t *offset, const char
...
@@ -429,7 +430,7 @@ int logger_read_timestamp(unsigned long long int *t, size_t *offset, const char
/* We are only interested in timestamps. */
/* We are only interested in timestamps. */
if
(
!
(
mask
&
logger_mask_timestamp
))
if
(
!
(
mask
&
logger_mask_timestamp
))
error
(
"Trying to read timestamp from a particle."
);
error
(
"Trying to read timestamp from a particle."
);
/* Make sure we don't have extra fields. */
/* Make sure we don't have extra fields. */
if
(
mask
!=
logger_mask_timestamp
)
if
(
mask
!=
logger_mask_timestamp
)
error
(
"Timestamp message contains extra fields."
);
error
(
"Timestamp message contains extra fields."
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment