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
1de8704b
Commit
1de8704b
authored
12 years ago
by
Franck Pérignon
Browse files
Options
Downloads
Patches
Plain Diff
Empty template for ghost synchro in topo
parent
3325c4a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
HySoP/hysop/operator/synchronizeGhosts.py
+56
-0
56 additions, 0 deletions
HySoP/hysop/operator/synchronizeGhosts.py
with
56 additions
and
0 deletions
HySoP/hysop/operator/synchronizeGhosts.py
0 → 100644
+
56
−
0
View file @
1de8704b
"""
@package parmepy.operator.synchronizeGhosts
Update ghost points for some fields defined on a specific topology.
"""
from
parmepy.operator
import
Operator
class
SynchronizeGhosts
(
Operator
):
"""
Ghost points synchronization.
"""
@debug
def
__init__
(
self
,
fieldslist
,
topology
,
transferMethod
):
"""
Defines a way to send/recv values at ghosts points for a list
of fields, discretized on a given topology.
@param fieldslist : a list of fields
@param topology : the topology common to all fields.
@param transferMethod : which type of exchange is used.
"""
@debug
def
setUp
(
self
):
"""
Transport operator discretization method.
Create an discrete Transport operator from given specifications.
"""
Operator
.
setUp
(
self
)
# 1 - get discrete fields arrays
# 2 - get list of ghosts area
# 3 - get neighbours
# 4 - find what is to be send/recv, the size of the arrays and
# allocate buffers if required
# 5 - set send/recv order
self
.
discreteOperator
.
setUp
()
@debug
def
apply
(
self
,
*
args
):
# Do the send/recv as defined in setup.
return
self
.
discreteOperator
.
apply
(
*
args
)
def
__str__
(
self
):
"""
ToString method
"""
if
__name__
==
"
__main__
"
:
print
__doc__
print
"
- Provided class : SynchronizeGhosts
"
print
SynchronizeGhosts
.
__doc__
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