qmcpack/external_codes/mpi_wrapper/mpi3/test/library_check.cpp

13 lines
262 B
C++

// Test for separate compilation / library usage.
#include "../communicator.hpp"
#include "../environment.hpp"
namespace mpi3 = boost::mpi3;
void do_broadcast(mpi3::communicator &c) { // cppcheck-suppress unusedFunction
int a = 2;
c.broadcast_value(a);
}