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
4f5948af
Commit
4f5948af
authored
Mar 17, 2018
by
Matthieu Schaller
Browse files
Only apply the h-correction at reading time if the user asked for it.
parent
df9ca55b
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/parallel_io.c
View file @
4f5948af
...
...
@@ -141,7 +141,7 @@ void readArray_chunk(hid_t h_data, hid_t h_plist_id,
/* Clean-up h if necessary */
const
float
h_factor_exp
=
units_h_factor
(
internal_units
,
props
.
units
);
if
(
h_factor_exp
!=
0
.
f
&&
exist
!=
0
)
{
if
(
cleanup_h
&&
h_factor_exp
!=
0
.
f
&&
exist
!=
0
)
{
const
double
h_factor
=
pow
(
h
,
h_factor_exp
);
/* message("Multipltying '%s' by h^%f=%f", props.name, h_factor_exp,
...
...
src/serial_io.c
View file @
4f5948af
...
...
@@ -165,7 +165,7 @@ void readArray(hid_t grp, const struct io_props props, size_t N,
/* Clean-up h if necessary */
const
float
h_factor_exp
=
units_h_factor
(
internal_units
,
props
.
units
);
if
(
h_factor_exp
!=
0
.
f
&&
exist
!=
0
)
{
if
(
cleanup_h
&&
h_factor_exp
!=
0
.
f
&&
exist
!=
0
)
{
const
double
h_factor
=
pow
(
h
,
h_factor_exp
);
/* message("Multipltying '%s' by h^%f=%f", props.name, h_factor_exp,
...
...
src/single_io.c
View file @
4f5948af
...
...
@@ -143,7 +143,7 @@ void readArray(hid_t h_grp, const struct io_props prop, size_t N,
/* Clean-up h if necessary */
const
float
h_factor_exp
=
units_h_factor
(
internal_units
,
prop
.
units
);
if
(
h_factor_exp
!=
0
.
f
&&
exist
!=
0
)
{
if
(
cleanup_h
&&
h_factor_exp
!=
0
.
f
&&
exist
!=
0
)
{
const
double
h_factor
=
pow
(
h
,
h_factor_exp
);
/* message("Multipltying '%s' by h^%f=%f", prop.name, h_factor_exp,
...
...
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