Skip to content
Snippets Groups Projects
Commit 46bba92d authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

formatting.

parent 328c158f
No related branches found
No related tags found
1 merge request!299Particle logger
...@@ -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.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment