Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
3f4324e6
Commit
3f4324e6
authored
7 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Fixed missing documentation of the new parallel write function.
parent
d94234f7
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!497
Parallel io improvements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/parallel_io.c
+19
-8
19 additions, 8 deletions
src/parallel_io.c
with
19 additions
and
8 deletions
src/parallel_io.c
+
19
−
8
View file @
3f4324e6
...
@@ -241,16 +241,16 @@ void readArray(hid_t grp, struct io_props props, size_t N, long long N_total,
...
@@ -241,16 +241,16 @@ void readArray(hid_t grp, struct io_props props, size_t N, long long N_total,
*-----------------------------------------------------------------------------*/
*-----------------------------------------------------------------------------*/
/**
/**
* @brief
Writes a chunk of data in an open HDF5 dataset
* @brief
Prepares an array in the snapshot.
*
*
* @param e The #engine we are writing from.
* @param e The #engine we are writing from.
* @param
h_data
The HDF5
dataset
to write to.
* @param
grp
The HDF5
grp
to write to.
* @param
h_plist_id the parallel HDF5 properties
.
* @param
fileName The name of the file we are writing to
.
* @param
props The #io_props of the field to read
.
* @param
xmfFile The (opened) XMF file we are appending to
.
* @param
N The number of particles to write
.
* @param
partTypeGroupName The name of the group we are writing to
.
* @param
offset Offset in the array where this mpi task starts
writ
ing
.
* @param
props The #io_props of the field to
writ
e
.
* @param
internal_units The #unit_system used internall
y.
* @param
N_total The total number of particles to write in this arra
y.
* @param snapshot_units The
#
unit
_system used
in th
e
snapshot
s
.
* @param snapshot_units The unit
s used for the data
in th
is
snapshot.
*/
*/
void
prepareArray
(
struct
engine
*
e
,
hid_t
grp
,
char
*
fileName
,
FILE
*
xmfFile
,
void
prepareArray
(
struct
engine
*
e
,
hid_t
grp
,
char
*
fileName
,
FILE
*
xmfFile
,
char
*
partTypeGroupName
,
struct
io_props
props
,
char
*
partTypeGroupName
,
struct
io_props
props
,
...
@@ -325,6 +325,17 @@ void prepareArray(struct engine* e, hid_t grp, char* fileName, FILE* xmfFile,
...
@@ -325,6 +325,17 @@ void prepareArray(struct engine* e, hid_t grp, char* fileName, FILE* xmfFile,
H5Sclose
(
h_space
);
H5Sclose
(
h_space
);
}
}
/**
* @brief Writes a chunk of data in an open HDF5 dataset
*
* @param e The #engine we are writing from.
* @param h_data The HDF5 dataset to write to.
* @param props The #io_props of the field to write.
* @param N The number of particles to write.
* @param offset Offset in the array where this mpi task starts writing.
* @param internal_units The #unit_system used internally.
* @param snapshot_units The #unit_system used in the snapshots.
*/
void
writeArray_chunk
(
struct
engine
*
e
,
hid_t
h_data
,
void
writeArray_chunk
(
struct
engine
*
e
,
hid_t
h_data
,
const
struct
io_props
props
,
size_t
N
,
long
long
offset
,
const
struct
io_props
props
,
size_t
N
,
long
long
offset
,
const
struct
unit_system
*
internal_units
,
const
struct
unit_system
*
internal_units
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment