Chi-Tech
AsyncComm.h
Go to the documentation of this file.
1
#ifndef CHITECH_ASYNCCOMM_H
2
#define CHITECH_ASYNCCOMM_H
3
4
#include <cstddef>
5
#include <cstdint>
6
#include <vector>
7
8
namespace
chi
9
{
10
class
ChiMPICommunicatorSet;
11
}
12
13
namespace
chi_mesh::sweep_management
14
{
15
16
class
FLUDS;
17
18
class
AsynchronousCommunicator
19
{
20
public
:
21
explicit
AsynchronousCommunicator
(
FLUDS
& fluds,
22
const
chi::ChiMPICommunicatorSet
& comm_set);
23
virtual
~AsynchronousCommunicator
() =
default
;
24
25
/**Obtains a data vector holding a spot into which outgoing data can be
26
* written.*/
27
virtual
std::vector<double>&
28
InitGetDownwindMessageData
(
int
location_id,
29
uint64_t cell_global_id,
30
unsigned
int
face_id,
31
size_t
angle_set_id,
32
size_t
data_size);
33
34
protected
:
35
FLUDS
&
fluds_
;
36
const
chi::ChiMPICommunicatorSet
&
comm_set_
;
37
};
38
39
}
// namespace chi_mesh::sweep_management
40
41
#endif
// CHITECH_ASYNCCOMM_H
chi::ChiMPICommunicatorSet
Definition:
chi_mpi_commset.h:17
chi_mesh::sweep_management::AsynchronousCommunicator
Definition:
AsyncComm.h:19
chi_mesh::sweep_management::AsynchronousCommunicator::AsynchronousCommunicator
AsynchronousCommunicator(FLUDS &fluds, const chi::ChiMPICommunicatorSet &comm_set)
Definition:
AsyncComm.cc:8
chi_mesh::sweep_management::AsynchronousCommunicator::InitGetDownwindMessageData
virtual std::vector< double > & InitGetDownwindMessageData(int location_id, uint64_t cell_global_id, unsigned int face_id, size_t angle_set_id, size_t data_size)
Definition:
AsyncComm.cc:15
chi_mesh::sweep_management::AsynchronousCommunicator::~AsynchronousCommunicator
virtual ~AsynchronousCommunicator()=default
chi_mesh::sweep_management::AsynchronousCommunicator::comm_set_
const chi::ChiMPICommunicatorSet & comm_set_
Definition:
AsyncComm.h:36
chi_mesh::sweep_management::AsynchronousCommunicator::fluds_
FLUDS & fluds_
Definition:
AsyncComm.h:35
chi_mesh::sweep_management::FLUDS
Definition:
FLUDS.h:23
chi_mesh::sweep_management
Definition:
AAH_AngleSet.cc:9
chi
Definition:
chi_runtime.h:53
framework
mesh
SweepUtilities
Communicators
AsyncComm.h
Generated by
1.9.3