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
26203900
Commit
26203900
authored
11 years ago
by
Jean-Matthieu Etancelin
Browse files
Options
Downloads
Patches
Plain Diff
Fix a bad use of MPI precision
parent
6474c1d6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
HySoP/hysop/operator/monitors/compute_forces.py
+3
-2
3 additions, 2 deletions
HySoP/hysop/operator/monitors/compute_forces.py
with
3 additions
and
2 deletions
HySoP/hysop/operator/monitors/compute_forces.py
+
3
−
2
View file @
26203900
...
...
@@ -4,7 +4,7 @@
Compute forces
"""
from
parmepy.constants
import
debug
,
np
,
ORDER
,
\
PARMES_INTEGER
,
PI
,
XDIR
,
YDIR
,
ZDIR
PARMES_INTEGER
,
PI
,
XDIR
,
YDIR
,
ZDIR
,
PARMES_MPI_REAL
from
parmepy.numerics.updateGhosts
import
UpdateGhosts
from
parmepy.numerics.differential_operations
import
Laplacian
,
\
DivStressTensor3D
...
...
@@ -573,7 +573,8 @@ class Forces(Monitoring):
# Reduction operation
if
self
.
topo
.
comm
.
Get_rank
()
==
0
:
comm
=
self
.
topo
.
comm
comm
.
Reduce
([
localForce
,
MPI
.
DOUBLE
],
[
force
,
MPI
.
DOUBLE
],
comm
.
Reduce
([
localForce
,
PARMES_MPI_REAL
],
[
force
,
PARMES_MPI_REAL
],
op
=
MPI
.
SUM
,
root
=
0
)
force
=
force
*
self
.
coef
# Print drag, lift and side force coefficients in output file
...
...
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