preCICE v3.1.2
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
precice::com::serialize::SerializedMesh Class Reference

serialized representation of mesh::Mesh More...

#include <SerializedMesh.hpp>

Collaboration diagram for precice::com::serialize::SerializedMesh:
[legend]

Public Member Functions

void addToMesh (mesh::Mesh &mesh) const
 
void assertValid () const
 asserts the content for correctness
 
void send (Communication &communication, int rankReceiver)
 
void broadcastSend (Communication &communication)
 

Static Public Member Functions

static SerializedMesh serialize (const mesh::Mesh &mesh)
 
static SerializedMesh receive (Communication &communication, int rankSender)
 receives a SerializedMesh and calls assertValid before returning
 
static SerializedMesh broadcastReceive (Communication &communication)
 receives a SerializedMesh and calls assertValid before returning
 

Private Member Functions

 SerializedMesh ()=default
 

Private Attributes

std::vector< int > sizes
 contains the dimension, followed by the numbers of vertices, edges, triangles, and tetrahedra
 
std::vector< double > coords
 sizes[0] * dimension coordinates for vertices
 
std::vector< int > ids
 

Detailed Description

serialized representation of mesh::Mesh

Definition at line 15 of file SerializedMesh.hpp.

Constructor & Destructor Documentation

◆ SerializedMesh()

precice::com::serialize::SerializedMesh::SerializedMesh ( )
privatedefault

Member Function Documentation

◆ addToMesh()

void precice::com::serialize::SerializedMesh::addToMesh ( mesh::Mesh & mesh) const

adds the serialized mesh to an actual mesh

The mesh to add to may contain vertices.

Definition at line 97 of file SerializedMesh.cpp.

Here is the call graph for this function:

◆ assertValid()

void precice::com::serialize::SerializedMesh::assertValid ( ) const

asserts the content for correctness

Definition at line 12 of file SerializedMesh.cpp.

Here is the call graph for this function:

◆ broadcastReceive()

SerializedMesh precice::com::serialize::SerializedMesh::broadcastReceive ( Communication & communication)
static

receives a SerializedMesh and calls assertValid before returning

Definition at line 82 of file SerializedMesh.cpp.

Here is the call graph for this function:

◆ broadcastSend()

void precice::com::serialize::SerializedMesh::broadcastSend ( Communication & communication)

Definition at line 73 of file SerializedMesh.cpp.

Here is the call graph for this function:

◆ receive()

SerializedMesh precice::com::serialize::SerializedMesh::receive ( Communication & communication,
int rankSender )
static

receives a SerializedMesh and calls assertValid before returning

Definition at line 59 of file SerializedMesh.cpp.

Here is the call graph for this function:

◆ send()

void precice::com::serialize::SerializedMesh::send ( Communication & communication,
int rankReceiver )

Definition at line 50 of file SerializedMesh.cpp.

Here is the call graph for this function:

◆ serialize()

SerializedMesh precice::com::serialize::SerializedMesh::serialize ( const mesh::Mesh & mesh)
static

serializes a given mesh::Mesh

Calls assertValid prior

Definition at line 157 of file SerializedMesh.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ coords

std::vector<double> precice::com::serialize::SerializedMesh::coords
private

sizes[0] * dimension coordinates for vertices

Definition at line 49 of file SerializedMesh.hpp.

◆ ids

std::vector<int> precice::com::serialize::SerializedMesh::ids
private

Definition at line 57 of file SerializedMesh.hpp.

◆ sizes

std::vector<int> precice::com::serialize::SerializedMesh::sizes
private

contains the dimension, followed by the numbers of vertices, edges, triangles, and tetrahedra

Definition at line 46 of file SerializedMesh.hpp.


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