Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hysop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
particle_methods
hysop
Commits
1ed2ddb0
Commit
1ed2ddb0
authored
6 years ago
by
Jean-Baptiste Keck
Browse files
Options
Downloads
Patches
Plain Diff
reverted hdfio to commit
1e369fd5
parent
2adde051
No related branches found
No related tags found
1 merge request
!16
MPI operators
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+0
-3
0 additions, 3 deletions
CMakeLists.txt
hysop/__init__.py.in
+0
-3
0 additions, 3 deletions
hysop/__init__.py.in
hysop/operator/hdf_io.py
+12
-5
12 additions, 5 deletions
hysop/operator/hdf_io.py
with
12 additions
and
11 deletions
CMakeLists.txt
+
0
−
3
View file @
1ed2ddb0
...
...
@@ -651,10 +651,7 @@ if(VERBOSE_MODE)
message
(
STATUS
" Project uses Scales :
${
WITH_SCALES
}
"
)
message
(
STATUS
" Project uses FFTW :
${
WITH_FFTW
}
"
)
message
(
STATUS
" Project uses GPU :
${
WITH_GPU
}
"
)
<<<<<<< HEAD
message
(
STATUS
" Project uses parallel hdf5 interface :
${
H5PY_PARALLEL_COMPRESSION_ENABLED
}
"
)
=======
>>>>>>> c9b88f65566d41430ec337958469ac7b37608012
message
(
STATUS
"
${
PROJECT_NAME
}
profile mode :
${
PROFILE
}
"
)
message
(
STATUS
"
${
PROJECT_NAME
}
debug mode :
${
DEBUG
}
"
)
message
(
STATUS
" Enable -OO run? :
${
OPTIM
}
"
)
...
...
This diff is collapsed.
Click to expand it.
hysop/__init__.py.in
+
0
−
3
View file @
1ed2ddb0
...
...
@@ -33,10 +33,7 @@ __GPU_ENABLED__ = "@WITH_GPU@" is "ON"
__FFTW_ENABLED__ = "@WITH_FFTW@" is "ON"
__SCALES_ENABLED__ = "@WITH_SCALES@" is "ON"
__OPTIMIZE__ = not __debug__
<<<<<<< HEAD
__H5PY_PARALLEL_COMPRESSION_ENABLED__ = ("@H5PY_PARALLEL_COMPRESSION_ENABLED@" is "ON")
=======
>>>>>>> c9b88f65566d41430ec337958469ac7b37608012
__VERBOSE__ = get_env('VERBOSE', ("@VERBOSE@" is "ON"))
__DEBUG__ = get_env('DEBUG', ("@DEBUG@" is "ON"))
...
...
This diff is collapsed.
Click to expand it.
hysop/operator/hdf_io.py
+
12
−
5
View file @
1ed2ddb0
...
...
@@ -113,6 +113,8 @@ class HDF_IO(ComputationalGraphOperator):
self
.
topology
=
None
self
.
_local_compute_slices
=
None
self
.
_global_grid_resolution
=
None
self
.
_local_grid_resolution
=
None
self
.
_all_local_grid_resolution
=
None
self
.
_global_slices
=
None
# Dictionnary of discrete fields. Key = name in hdf file,
# Value = discrete field
...
...
@@ -374,6 +376,7 @@ class HDF_Writer(HDF_IO):
assert
self
.
use_local_hdf5
return
self
.
io_params
.
filename
+
"
_{0:05d}
"
.
format
(
i
)
+
"
_rk{rk:03d}.h5
"
@op_apply
def
apply
(
self
,
simulation
=
None
,
**
kwds
):
if
(
simulation
is
None
):
...
...
@@ -405,14 +408,12 @@ class HDF_Writer(HDF_IO):
write_step
=
tuple
(
step
)
ds_names
=
self
.
dataset
.
keys
()
joinrkfiles
=
None
if
self
.
use_local_hdf5
and
(
self
.
topology
.
cart_size
>
1
):
joinrkfiles
=
range
(
self
.
topology
.
cart_size
)
grid_attributes
=
XMF
.
prepare_grid_attributes
(
ds_names
,
resolution
,
origin
,
step
)
resolution
,
origin
,
step
,
joinrkfiles
=
joinrkfiles
)
self
.
grid_attributes_template
=
grid_attributes
...
...
@@ -444,7 +445,7 @@ class HDF_Writer(HDF_IO):
filenames
=
dict
((
'
filename
'
+
str
(
r
),
self
.
_get_filename
(
i
).
format
(
rk
=
r
).
split
(
'
/
'
)[
-
1
])
for
r
in
range
(
self
.
topology
.
cart_size
))
filenames
.
update
((
'
resolution
'
+
str
(
r
),
XMF
.
_list_format
(
self
.
_all_local_grid_resolution
[
r
]))
for
r
in
range
(
self
.
topology
.
cart_size
))
grid_attrs
=
self
.
grid_attributes_template
.
format
(
niteration
=
i
,
time
=
t
,
filename
=
filename
)
niteration
=
i
,
time
=
t
,
**
filename
s
)
f
.
seek
(
lastp
)
f
.
write
(
grid_attrs
)
self
.
_last_xmf_pos
=
f
.
tell
()
...
...
@@ -455,7 +456,13 @@ class HDF_Writer(HDF_IO):
self
.
_xdmf_data_files
=
[]
def
_step_HDF5
(
self
,
simu
):
"""
Write an h5 file with data on each mpi process.
"""
"""
Write an h5 file with data on each mpi process.
If parallel interface of HDF5 is not enabled, each rank is
writing its own h5 file. All files are concatenated in the xmf
part with a
'
JOIN
'
function. If parallel interface enabled,
only one h5 file is written by all ranks.
"""
# Remarks:
# - force np.float64, ParaView seems unable to read float32
# - writing compressed hdf5 files (gzip compression seems the best)
...
...
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