Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pySDC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
atml-ati
pySDC
Commits
9bcb6f08
Commit
9bcb6f08
authored
2 months ago
by
Thibaut Lunet
Browse files
Options
Downloads
Patches
Plain Diff
TL: mini fix for edge cases
parent
020dbdc7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#274059
passed
2 months ago
Stage: benchmark
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pySDC/helpers/fieldsIO.py
+4
-2
4 additions, 2 deletions
pySDC/helpers/fieldsIO.py
with
4 additions
and
2 deletions
pySDC/helpers/fieldsIO.py
+
4
−
2
View file @
9bcb6f08
...
...
@@ -417,8 +417,6 @@ class Rectilinear(Scalar):
coords
=
self
.
setupCoords
(
*
coords
)
self
.
header
=
{
"
nVar
"
:
int
(
nVar
),
"
coords
"
:
coords
}
self
.
nItems
=
nVar
*
self
.
nDoF
if
self
.
MPI_ON
:
self
.
MPI_SETUP
()
@property
def
hInfos
(
self
):
...
...
@@ -573,6 +571,8 @@ class Rectilinear(Scalar):
data : np.ndarray
Data to be written in the binary file.
"""
if
self
.
mpiType
is
None
:
self
.
MPI_SETUP
()
self
.
mpiFile
.
Set_view
(
disp
=
offset
,
etype
=
self
.
mpiType
,
filetype
=
self
.
mpiFileType
)
self
.
mpiFile
.
Write_all
(
data
)
...
...
@@ -588,6 +588,8 @@ class Rectilinear(Scalar):
data : np.ndarray
Array on which to read the data from the binary file.
"""
if
self
.
mpiType
is
None
:
self
.
MPI_SETUP
()
self
.
mpiFile
.
Set_view
(
disp
=
offset
,
etype
=
self
.
mpiType
,
filetype
=
self
.
mpiFileType
)
self
.
mpiFile
.
Read_all
(
data
)
...
...
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