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
SWIFT
SWIFTsim
Commits
02f0dafd
Commit
02f0dafd
authored
Mar 11, 2018
by
Matthieu Schaller
Browse files
Explicitly set the h-factor exponent of all the fields to 0 in the snapshots.
parent
4a93c0aa
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/parallel_io.c
View file @
02f0dafd
...
...
@@ -331,8 +331,7 @@ void prepareArray(struct engine* e, hid_t grp, char* fileName, FILE* xmfFile,
io_write_attribute_d
(
h_data
,
"CGS conversion factor"
,
units_cgs_conversion_factor
(
snapshot_units
,
props
.
units
));
io_write_attribute_f
(
h_data
,
"h-scale exponent"
,
units_h_factor
(
snapshot_units
,
props
.
units
));
io_write_attribute_f
(
h_data
,
"h-scale exponent"
,
0
);
io_write_attribute_f
(
h_data
,
"a-scale exponent"
,
units_a_factor
(
snapshot_units
,
props
.
units
));
io_write_attribute_s
(
h_data
,
"Conversion factor"
,
buffer
);
...
...
src/serial_io.c
View file @
02f0dafd
...
...
@@ -275,8 +275,7 @@ void prepareArray(const struct engine* e, hid_t grp, char* fileName,
io_write_attribute_d
(
h_data
,
"CGS conversion factor"
,
units_cgs_conversion_factor
(
snapshot_units
,
props
.
units
));
io_write_attribute_f
(
h_data
,
"h-scale exponent"
,
units_h_factor
(
snapshot_units
,
props
.
units
));
io_write_attribute_f
(
h_data
,
"h-scale exponent"
,
0
);
io_write_attribute_f
(
h_data
,
"a-scale exponent"
,
units_a_factor
(
snapshot_units
,
props
.
units
));
io_write_attribute_s
(
h_data
,
"Conversion factor"
,
buffer
);
...
...
src/single_io.c
View file @
02f0dafd
...
...
@@ -289,8 +289,7 @@ void writeArray(const struct engine* e, hid_t grp, char* fileName,
io_write_attribute_d
(
h_data
,
"CGS conversion factor"
,
units_cgs_conversion_factor
(
snapshot_units
,
props
.
units
));
io_write_attribute_f
(
h_data
,
"h-scale exponent"
,
units_h_factor
(
snapshot_units
,
props
.
units
));
io_write_attribute_f
(
h_data
,
"h-scale exponent"
,
0
);
io_write_attribute_f
(
h_data
,
"a-scale exponent"
,
units_a_factor
(
snapshot_units
,
props
.
units
));
io_write_attribute_s
(
h_data
,
"Conversion factor"
,
buffer
);
...
...
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