inciter::Transfer struct

Description of solution transfer between two solvers holding different meshes.

Constructors, destructors, conversion operators

Transfer() defaulted explicit
Constructor: empty for Charm++.
Transfer(std::size_t s, std::size_t d) explicit
Constructor: initialize src and dest mesh ids.

Public functions

auto operator==(const Transfer& transfer) const -> bool
Equal operator for, e.g., finding unique elements, used by, e.g., std::unique().
auto operator<(const Transfer& transfer) const -> bool

Public variables

std::size_t src
Source mesh id.
std::size_t dst
Destination mesh id.
std::vector<CkCallback> cb
List of callbacks to continue with.

Pack/Unpack: Serialize Transfer object for Charm++

void pup(PUP::er& p)
void operator|(PUP::er& p, Transfer& t)

Friends

auto operator<<(std::ostream& os, const Transfer& t) -> std::ostream&
Operator << for writing a Transfer object to output streams.

Function documentation

bool inciter::Transfer::operator==(const Transfer& transfer) const

Equal operator for, e.g., finding unique elements, used by, e.g., std::unique().

Parameters
transfer in Transfer object to compare
Returns Boolean indicating if term equals 'this'

Test on src and dst only.

bool inciter::Transfer::operator<(const Transfer& transfer) const

Parameters
transfer in Transfer object to compare
Returns Boolean indicating if term is less than 'this'

Less-than operator for ordering, used by, e.g., std::sort(). Test on src and dst only.

void inciter::Transfer::pup(PUP::er& p)

Parameters
in/out Charm++'s PUP::er serializer object reference

Pack/Unpack serialize member function

void inciter::Transfer::operator|(PUP::er& p, Transfer& t)

Parameters
in/out Charm++'s PUP::er serializer object reference
in/out Transfer object reference

Pack/Unpack serialize operator|

std::ostream& operator<<(std::ostream& os, const Transfer& t)

Operator << for writing a Transfer object to output streams.

Parameters
os in/out Output stream to write to
in Transfer object to write
Returns Updated output stream