Skip to content
Snippets Groups Projects
Commit 1de8704b authored by Franck Pérignon's avatar Franck Pérignon
Browse files

Empty template for ghost synchro in topo

parent 3325c4a7
No related branches found
No related tags found
No related merge requests found
"""
@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__
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment