preCICE v3.1.2
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
precice::partition::ProvidedPartition Class Reference

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

#include <ProvidedPartition.hpp>

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

Public Member Functions

 ProvidedPartition (mesh::PtrMesh mesh)
 
virtual ~ProvidedPartition ()
 
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 ()
 
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 18 of file ProvidedPartition.hpp.

Constructor & Destructor Documentation

◆ ProvidedPartition()

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

Definition at line 29 of file ProvidedPartition.cpp.

◆ ~ProvidedPartition()

virtual precice::partition::ProvidedPartition::~ProvidedPartition ( )
inlinevirtual

Definition at line 22 of file ProvidedPartition.hpp.

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.

Here is the call graph for this function:

◆ compareBoundingBoxes()

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

Intersections between bounding boxes around each rank are computed.

Implements precice::partition::Partition.

Definition at line 241 of file ProvidedPartition.cpp.

Here is the call graph for this function:

◆ compute()

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

All distribution data structures are set up.

Implements precice::partition::Partition.

Definition at line 228 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.

Here is the call graph for this function:

Member Data Documentation

◆ _log

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

Definition at line 35 of file ProvidedPartition.hpp.


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