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
39f3d214
Commit
39f3d214
authored
7 years ago
by
Jacob Kegerreis
Browse files
Options
Downloads
Patches
Plain Diff
Add label_delta to parallel IO too
parent
ce6c4924
No related branches found
No related tags found
1 merge request
!544
Add optional parameter label_delta to set the increment between snapshot output labels
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/parallel_io.c
+6
-2
6 additions, 2 deletions
src/parallel_io.c
with
6 additions
and
2 deletions
src/parallel_io.c
+
6
−
2
View file @
39f3d214
...
...
@@ -850,8 +850,12 @@ void prepare_file(struct engine* e, const char* baseName, long long N_total[6],
/* HDF5 File name */
char
fileName
[
FILENAME_BUFFER_SIZE
];
snprintf
(
fileName
,
FILENAME_BUFFER_SIZE
,
"%s_%04i.hdf5"
,
baseName
,
e
->
snapshot_output_count
);
if
(
e
->
snapshot_label_delta
==
1
)
snprintf
(
fileName
,
FILENAME_BUFFER_SIZE
,
"%s_%04i.hdf5"
,
baseName
,
e
->
snapshot_output_count
);
else
snprintf
(
fileName
,
FILENAME_BUFFER_SIZE
,
"%s_%06i.hdf5"
,
baseName
,
e
->
snapshot_output_count
*
e
->
snapshot_label_delta
);
/* Open HDF5 file with the chosen parameters */
hid_t
h_file
=
H5Fcreate
(
fileName
,
H5F_ACC_TRUNC
,
H5P_DEFAULT
,
H5P_DEFAULT
);
...
...
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