BioCMAMC-ST
message_t.hpp
1#ifndef __PMESSAGE_HPP__
2#define __PMESSAGE_HPP__
3
4#include <type_traits>
5namespace WrapMPI
6{
7 // static bool is_mpi_init = false;
8 int critical_error() noexcept;
9 void barrier() noexcept;
10 void finalize() noexcept;
11 bool is_initialized() noexcept;
12 enum class SIGNALS : char
13 {
19 };
20
21 template <typename T>
22 concept POD_t
23 = std::is_standard_layout_v<T> && std::is_trivially_copyable_v<T>
24 && std::is_trivially_destructible_v<T>
25 && std::is_trivially_default_constructible_v<T>;
26
27} // namespace WrapMPI
28
29#endif //__PMESSAGE_HPP__
Definition message_t.hpp:23
Namespace to correclty wrap MPI C API for modern C++.
Definition impl_async.hpp:14
void barrier() noexcept
Definition mpi_wrap.cpp:32
bool is_initialized() noexcept
Definition mpi_wrap.cpp:10
SIGNALS
Definition message_t.hpp:13
@ NOP
Definition message_t.hpp:17
@ STOP
Definition message_t.hpp:14
@ RUN
Definition message_t.hpp:16
@ HydroUpdate
Definition message_t.hpp:15
@ DUMP
Definition message_t.hpp:18
int critical_error() noexcept
Definition mpi_wrap.cpp:26
void finalize() noexcept
Definition mpi_wrap.cpp:20