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
fd72330f
Commit
fd72330f
authored
Feb 29, 2016
by
Matthieu Schaller
Browse files
Removed compression in parallel HDF5 mode.
parents
6900cedd
dd5c60cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/parallel_io.c
View file @
fd72330f
...
...
@@ -508,7 +508,8 @@ void write_output_parallel(struct engine* e, struct UnitSystem* us,
/* Open header to write simulation properties */
/* message("Writing runtime parameters..."); */
h_grp
=
H5Gcreate
(
h_file
,
"/RuntimePars"
,
H5P_DEFAULT
,
H5P_DEFAULT
,
H5P_DEFAULT
);
h_grp
=
H5Gcreate
(
h_file
,
"/RuntimePars"
,
H5P_DEFAULT
,
H5P_DEFAULT
,
H5P_DEFAULT
);
if
(
h_grp
<
0
)
error
(
"Error while creating runtime parameters group
\n
"
);
/* Write the relevant information */
...
...
@@ -546,7 +547,7 @@ void write_output_parallel(struct engine* e, struct UnitSystem* us,
writeCodeDescription
(
h_file
);
/* Print the SPH parameters */
h_grpsph
=
H5Gcreate
(
h_file
,
"/SPH"
,
H5P_DEFAULT
,
H5P_DEFAULT
,
H5P_DEFAULT
);
h_grpsph
=
H5Gcreate
(
h_file
,
"/SPH"
,
H5P_DEFAULT
,
H5P_DEFAULT
,
H5P_DEFAULT
);
if
(
h_grpsph
<
0
)
error
(
"Error while creating SPH group"
);
writeSPHflavour
(
h_grpsph
);
H5Gclose
(
h_grpsph
);
...
...
@@ -556,7 +557,8 @@ void write_output_parallel(struct engine* e, struct UnitSystem* us,
/* Create SPH particles group */
/* message("Writing particle arrays..."); */
h_grp
=
H5Gcreate
(
h_file
,
"/PartType0"
,
H5P_DEFAULT
,
H5P_DEFAULT
,
H5P_DEFAULT
);
h_grp
=
H5Gcreate
(
h_file
,
"/PartType0"
,
H5P_DEFAULT
,
H5P_DEFAULT
,
H5P_DEFAULT
);
if
(
h_grp
<
0
)
error
(
"Error while creating particle group.
\n
"
);
/* Write particle fields from the particle structure */
...
...
src/serial_io.c
View file @
fd72330f
...
...
@@ -225,7 +225,7 @@ void prepareArray(hid_t grp, char* fileName, FILE* xmfFile, char* name,
/* Create dataset */
h_data
=
H5Dcreate
(
grp
,
name
,
hdf5Type
(
type
),
h_space
,
H5P_DEFAULT
,
h_prop
,
H5P_DEFAULT
);
H5P_DEFAULT
);
if
(
h_data
<
0
)
{
error
(
"Error while creating dataspace '%s'."
,
name
);
}
...
...
@@ -586,7 +586,8 @@ void write_output_serial(struct engine* e, struct UnitSystem* us, int mpi_rank,
/* Open header to write simulation properties */
/* message("Writing runtime parameters..."); */
h_grp
=
H5Gcreate
(
h_file
,
"/RuntimePars"
,
H5P_DEFAULT
,
H5P_DEFAULT
,
H5P_DEFAULT
);
h_grp
=
H5Gcreate
(
h_file
,
"/RuntimePars"
,
H5P_DEFAULT
,
H5P_DEFAULT
,
H5P_DEFAULT
);
if
(
h_grp
<
0
)
error
(
"Error while creating runtime parameters group
\n
"
);
/* Write the relevant information */
...
...
@@ -634,7 +635,8 @@ void write_output_serial(struct engine* e, struct UnitSystem* us, int mpi_rank,
/* Create SPH particles group */
/* message("Writing particle arrays..."); */
h_grp
=
H5Gcreate
(
h_file
,
"/PartType0"
,
H5P_DEFAULT
,
H5P_DEFAULT
,
H5P_DEFAULT
);
h_grp
=
H5Gcreate
(
h_file
,
"/PartType0"
,
H5P_DEFAULT
,
H5P_DEFAULT
,
H5P_DEFAULT
);
if
(
h_grp
<
0
)
error
(
"Error while creating particle group.
\n
"
);
/* Close particle group */
...
...
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