Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
c9692302
Commit
c9692302
authored
Jan 30, 2019
by
Matthieu Schaller
Browse files
Small tweaks to the Doxygen documentation of the SF module.
parent
187fd16e
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/parallel_io.c
View file @
c9692302
...
...
@@ -1155,8 +1155,8 @@ void prepare_file(struct engine* e, const char* baseName, long long N_total[6],
}
num_fields
+=
tracers_write_particles
(
parts
,
xparts
,
list
+
num_fields
,
with_cosmology
);
num_fields
+=
star_formation_write_particles
(
parts
,
xparts
,
list
+
num_fields
);
num_fields
+=
star_formation_write_particles
(
parts
,
xparts
,
list
+
num_fields
);
if
(
with_stf
)
{
num_fields
+=
velociraptor_write_parts
(
parts
,
xparts
,
list
+
num_fields
);
...
...
@@ -1478,8 +1478,8 @@ void write_output_parallel(struct engine* e, const char* baseName,
}
num_fields
+=
tracers_write_particles
(
parts
,
xparts
,
list
+
num_fields
,
with_cosmology
);
num_fields
+=
star_formation_write_particles
(
parts
,
xparts
,
list
+
num_fields
);
num_fields
+=
star_formation_write_particles
(
parts
,
xparts
,
list
+
num_fields
);
}
else
{
...
...
@@ -1515,7 +1515,7 @@ void write_output_parallel(struct engine* e, const char* baseName,
num_fields
+=
tracers_write_particles
(
parts_written
,
xparts_written
,
list
+
num_fields
,
with_cosmology
);
num_fields
+=
star_formation_write_particles
(
parts_written
,
xparts_written
,
list
+
num_fields
);
parts_written
,
xparts_written
,
list
+
num_fields
);
}
}
break
;
...
...
src/serial_io.c
View file @
c9692302
...
...
@@ -1123,8 +1123,8 @@ void write_output_serial(struct engine* e, const char* baseName,
}
num_fields
+=
tracers_write_particles
(
parts
,
xparts
,
list
+
num_fields
,
with_cosmology
);
num_fields
+=
star_formation_write_particles
(
parts
,
xparts
,
list
+
num_fields
);
num_fields
+=
star_formation_write_particles
(
parts
,
xparts
,
list
+
num_fields
);
}
else
{
...
...
@@ -1161,8 +1161,7 @@ void write_output_serial(struct engine* e, const char* baseName,
tracers_write_particles
(
parts_written
,
xparts_written
,
list
+
num_fields
,
with_cosmology
);
num_fields
+=
star_formation_write_particles
(
parts_written
,
xparts_written
,
list
+
num_fields
);
parts_written
,
xparts_written
,
list
+
num_fields
);
}
}
break
;
...
...
src/single_io.c
View file @
c9692302
...
...
@@ -926,9 +926,8 @@ void write_output_single(struct engine* e, const char* baseName,
}
num_fields
+=
tracers_write_particles
(
parts
,
xparts
,
list
+
num_fields
,
with_cosmology
);
num_fields
+=
star_formation_write_particles
(
parts
,
xparts
,
list
+
num_fields
);
num_fields
+=
star_formation_write_particles
(
parts
,
xparts
,
list
+
num_fields
);
}
else
{
...
...
@@ -964,7 +963,7 @@ void write_output_single(struct engine* e, const char* baseName,
num_fields
+=
tracers_write_particles
(
parts_written
,
xparts_written
,
list
+
num_fields
,
with_cosmology
);
num_fields
+=
star_formation_write_particles
(
parts_written
,
xparts_written
,
list
+
num_fields
);
parts_written
,
xparts_written
,
list
+
num_fields
);
}
}
break
;
...
...
src/star_formation/EAGLE/star_formation_io.h
View file @
c9692302
...
...
@@ -35,7 +35,8 @@
* @return Returns the number of fields to write.
*/
__attribute__
((
always_inline
))
INLINE
static
int
star_formation_write_particles
(
const
struct
part
*
parts
,
const
struct
xpart
*
xparts
,
struct
io_props
*
list
)
{
const
struct
part
*
parts
,
const
struct
xpart
*
xparts
,
struct
io_props
*
list
)
{
list
[
0
]
=
io_make_output_field
(
"SFR"
,
FLOAT
,
1
,
UNIT_CONV_SFR
,
xparts
,
sf_data
.
SFR
);
...
...
src/star_formation/none/star_formation_io.h
View file @
c9692302
...
...
@@ -35,7 +35,8 @@
* @return Returns the number of fields to write.
*/
__attribute__
((
always_inline
))
INLINE
static
int
star_formation_write_particles
(
const
struct
part
*
parts
,
const
struct
xpart
*
xparts
,
struct
io_props
*
list
)
{
const
struct
part
*
parts
,
const
struct
xpart
*
xparts
,
struct
io_props
*
list
)
{
return
0
;
}
...
...
Write
Preview
Supports
Markdown
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