Template Function opensn::SetupMessageData

Function Documentation

template<typename GetUnknownCountFunc>
void opensn::SetupMessageData(const std::vector<int> &locations, const GetUnknownCountFunc &get_unknown_count, std::vector<std::vector<AAH_MessageDetails>> &msg_data, std::vector<std::vector<bool>> *msg_received, int &max_num_messages, const MPICommunicatorSet &comm_set, int max_mpi_message_size)

Compute AAH message data structure.

Template Parameters:

GetUnknownCountFunc – Function getting the number of unknown to transfer for each location.

Parameters:
  • locationsSPDS vector of locations.

  • get_unknown_count – Function getting the number of unknowns for a given location.

  • msg_data – List of vector of message data per location.

  • msg_received – Pointer to the vector of message received flag.

  • max_num_messages – Reference to max number of message.

  • comm_set – Communicator set.

  • max_mpi_message_size – Max size (in bytes) of MPI messages.