-
Notifications
You must be signed in to change notification settings - Fork 2
/
ParallelTopologyChange.hpp
58 lines (44 loc) · 2.36 KB
/
ParallelTopologyChange.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**
* @file ParallelTopologyChange.hpp
*/
#ifndef SRC_EXTERNALCOMPONENTS_HYDROFRACTURE_PARALLELTOPOLOGYCHANGE_HPP_
#define SRC_EXTERNALCOMPONENTS_HYDROFRACTURE_PARALLELTOPOLOGYCHANGE_HPP_
#include "physicsSolvers/surfaceGeneration/SurfaceGenerator.hpp"
namespace geosx
{
class MeshLevel;
class NeighborCommunicator;
struct ModifiedObjectLists;
class ParallelTopologyChange
{
public:
ParallelTopologyChange();
~ParallelTopologyChange();
static void synchronizeTopologyChange( MeshLevel * const mesh,
std::vector< NeighborCommunicator > & neighbors,
ModifiedObjectLists & modifiedObjects,
ModifiedObjectLists & receivedObjects,
int mpiCommOrder );
static void packNewAndModifiedObjectsToOwningRanks( NeighborCommunicator * const neighbor,
MeshLevel * const meshLevel,
ModifiedObjectLists const & modifiedObjects,
int const commID );
static localIndex
unpackNewAndModifiedObjectsOnOwningRanks( NeighborCommunicator * const neighbor,
MeshLevel * const mesh,
int const commID,
ModifiedObjectLists & receivedObjects );
static void packNewModifiedObjectsToGhosts( NeighborCommunicator * const neighbor,
int commID,
MeshLevel * const mesh,
ModifiedObjectLists & receivedObjects );
static void unpackNewModToGhosts( NeighborCommunicator * const neighbor,
int commID,
MeshLevel * const mesh,
ModifiedObjectLists & receivedObjects );
static void updateConnectorsToFaceElems( std::set< localIndex > const & newFaceElements,
FaceElementSubRegion const & faceElemSubRegion,
EdgeManager & edgeManager );
};
} /* namespace lvarray */
#endif /* SRC_EXTERNALCOMPONENTS_HYDROFRACTURE_PARALLELTOPOLOGYCHANGE_HPP_ */