|
BioCMAMC-ST
|
Represents the payload of data exchanged during an iteration. More...
#include <iteration_payload.hpp>
Public Member Functions | |
| IterationPayload (size_t volumes) | |
| Constructs an IterationPayload with specified sizes for flows and volumes. | |
| bool | recv (size_t source, MPI_Status *status) noexcept |
| Receives data for this payload from a specified source. | |
Public Attributes | |
| std::vector< double > | liquid_volumes |
| std::vector< std::size_t > | liquid_neighbors_flat |
| std::vector< double > | proba_leaving_flat |
| std::vector< double > | liquid_out_flows |
Represents the payload of data exchanged during an iteration.
This class encapsulates the data related to liquid flows, liquid volumes, gas volumes, and neighbor information for a given iteration.
|
explicit |
Constructs an IterationPayload with specified sizes for flows and volumes.
| size_flows | The number of elements in the liquid flows vector. |
| volumes | The number of elements in the liquid and gas volumes vectors. |
|
noexcept |
Receives data for this payload from a specified source.
This function receives liquid flows, liquid volumes, and gas volumes from a given MPI source rank.
| source | The MPI rank of the source process sending the data. |
| status | Pointer to an MPI_Status object to store information about the receive operation. |
| std::vector<std::size_t> WrapMPI::IterationPayload::liquid_neighbors_flat |
| std::vector<double> WrapMPI::IterationPayload::liquid_out_flows |
| std::vector<double> WrapMPI::IterationPayload::liquid_volumes |
| std::vector<double> WrapMPI::IterationPayload::proba_leaving_flat |