preCICE v3.3.0
Loading...
Searching...
No Matches
ProvidedPartition Class Reference

A partition that is provided by the participant. More...

#include <ProvidedPartition.hpp>

Inheritance diagram for ProvidedPartition:
[legend]
Collaboration diagram for ProvidedPartition:
[legend]

Public Member Functions

 ProvidedPartition (mesh::PtrMesh mesh)
 ~ProvidedPartition () override=default
void communicate () override
 The mesh is gathered and sent to another participant (if required)
void compute () override
 All distribution data structures are set up.
void compareBoundingBoxes () override
 Intersections between bounding boxes around each rank are computed.
Public Member Functions inherited from precice::partition::Partition
 Partition (mesh::PtrMesh mesh)
 Constructor.
Partitionoperator= (Partition &&)=delete
virtual ~Partition ()=default
void addFromMapping (mapping::PtrMapping fromMapping)
void addToMapping (mapping::PtrMapping toMapping)
void addM2N (m2n::PtrM2N m2n)

Private Member Functions

void prepare ()

Private Attributes

logging::Logger _log {"partition::ProvidedPartition"}

Additional Inherited Members

Protected Attributes inherited from precice::partition::Partition
mesh::PtrMesh _mesh
std::vector< mapping::PtrMapping_fromMappings
std::vector< mapping::PtrMapping_toMappings
std::vector< m2n::PtrM2N_m2ns
 m2n connection to each connected participant

Detailed Description

A partition that is provided by the participant.

The participant already provides a partition by calling setMeshVertices etc. If required the mesh needs to be sent to another participant. Furthermore, distribution data structures need to be set up.

Definition at line 17 of file ProvidedPartition.hpp.

Constructor & Destructor Documentation

◆ ProvidedPartition()

precice::partition::ProvidedPartition::ProvidedPartition ( mesh::PtrMesh mesh)

Definition at line 29 of file ProvidedPartition.cpp.

◆ ~ProvidedPartition()

precice::partition::ProvidedPartition::~ProvidedPartition ( )
overridedefault

Member Function Documentation

◆ communicate()

void precice::partition::ProvidedPartition::communicate ( )
overridevirtual

The mesh is gathered and sent to another participant (if required)

Implements precice::partition::Partition.

Definition at line 35 of file ProvidedPartition.cpp.

◆ compareBoundingBoxes()

void precice::partition::ProvidedPartition::compareBoundingBoxes ( )
overridevirtual

Intersections between bounding boxes around each rank are computed.

Implements precice::partition::Partition.

Definition at line 245 of file ProvidedPartition.cpp.

◆ compute()

void precice::partition::ProvidedPartition::compute ( )
overridevirtual

All distribution data structures are set up.

Implements precice::partition::Partition.

Definition at line 232 of file ProvidedPartition.cpp.

◆ prepare()

void precice::partition::ProvidedPartition::prepare ( )
private

@TODO are these distributions allowed to contain verices already?

Definition at line 117 of file ProvidedPartition.cpp.

Member Data Documentation

◆ _log

logging::Logger precice::partition::ProvidedPartition::_log {"partition::ProvidedPartition"}
private

Definition at line 34 of file ProvidedPartition.hpp.


The documentation for this class was generated from the following files: