115 typedef Eigen::Matrix<std::vector<Real>, 3, 3> VectorEigenMatrix;
116 typedef std::vector<VectorEigenMatrix> VectorMatrixVector;
117 std::map<processor_id_type, VectorMatrixVector> send_data;
123 send_data[i] = VectorMatrixVector(1);
126 send_data[i][0](row, col).assign(row + col + 1, 10.0 * i + j);
134 const std::size_t rows = recv_data[0].rows();
135 const std::size_t cols = recv_data[0].cols();
137 CPPUNIT_ASSERT_EQUAL( rows, static_cast<std::size_t>(3) );
138 CPPUNIT_ASSERT_EQUAL( cols, static_cast<std::size_t>(3) );
143 CPPUNIT_ASSERT_EQUAL( recv_data[0](row, col).size(), static_cast<std::size_t>(row + col + 1) );
144 for (
const auto & val : recv_data[0](row, col))
145 CPPUNIT_ASSERT_EQUAL( val, static_cast<Real>(j + 10.0 * i) );
150 Parallel::push_parallel_vector_data(*
TestCommWorld, send_data, verify_data);
libMesh::Parallel::Communicator * TestCommWorld
processor_id_type rank() const
uint8_t processor_id_type
IntRange< T > make_range(T beg, T end)
The 2-parameter make_range() helper function returns an IntRange<T> when both input parameters are of...
auto index_range(const T &sizable)
Helper function that returns an IntRange<std::size_t> representing all the indices of the passed-in v...