3.1.4.1.3. c3po.mpi.mpiExchangeMethods.MPISharedRemappingMulti1D3D module

Inheritance diagram of c3po.mpi.mpiExchangeMethods.MPISharedRemappingMulti1D3D

Contain the class MPISharedRemappingMulti1D3D.

class c3po.mpi.mpiExchangeMethods.MPISharedRemappingMulti1D3D.MPIMulti1D3DRemapper(xCoordinates, yCoordinates, indexTable, weights, physics, meshAlignment=False, offset=None, rescaling=1.0, rotation=0.0, outsideCellsScreening=False, reverseTransformations=True)

Bases: MPIRemapper

Allow to share the mesh projection for different MPISharedRemappingMulti1D3D objects by building them with the same instance of this class.

__init__(xCoordinates, yCoordinates, indexTable, weights, physics, meshAlignment=False, offset=None, rescaling=1.0, rotation=0.0, outsideCellsScreening=False, reverseTransformations=True)

Build a MPIMulti1D3DRemapper object, the MPI version of c3po.exchangeMethods.SharedRemappingMulti1D3D.Multi1D3DRemapper.

The constructor has the same form than c3po.exchangeMethods.SharedRemappingMulti1D3D.Multi1D3DRemapper.__init__() with one additional mandatory parameter: physics.

Warning

There seems to be a bug in MEDCoupling that may cause wrong results when rescaling is used with a source mesh (multi1D) of nature IntensiveConservation. In this case, using reverseTransformations=False should be enough to solve the problem.

Parameters:
build1DFields(field3D)

INTERNAL

build3DField(fields1D, defaultValue=0.0)

INTERNAL

buildInnerField(meshes1D)

INTERNAL

getInnerField()

INTERNAL

getNumberOf1DFields()

INTERNAL

shift1DFields(shiftMap)

See Multi1D3DRemapper.shift1DFields()

class c3po.mpi.mpiExchangeMethods.MPISharedRemappingMulti1D3D.MPISharedRemappingMulti1D3D(remapper, reverse=False, defaultValue=0.0, linearTransform=(1.0, 0.0))

Bases: MPISharedRemapping

MPISharedRemappingMulti1D3D is the MPI version of c3po.exchangeMethods.SharedRemappingMulti1D3D.SharedRemappingMulti1D3D.

__call__(fieldsToGet, fieldsToSet, valuesToGet)

Project the input fields one by one before returning them as outputs, in the same order.

__init__(remapper, reverse=False, defaultValue=0.0, linearTransform=(1.0, 0.0))

Build a MPISharedRemappingMulti1D3D object, to be given to an c3po.mpi.MPIExchanger.MPIExchanger.

Warning

MPISharedRemappingMulti1D3D is deprecated and will soon by deleted. Please use c3po.mpi.multi1D package instead.

Parameters:
clean()

See ExchangeMethod.clean().

getPatterns()

See ExchangeMethod.getPatterns().