Commit dd3858d5 authored by Tobias Malkmus's avatar Tobias Malkmus Committed by Steffen Müthing

[bugfix,yaspgrid] add HAVE_MPI marco to ensure mpi is present if MPI functions are used.

(cherry picked from commit a3f835ee)
Signed-off-by: Steffen Müthing's avatarSteffen Müthing <muething@dune-project.org>
parent 5840007e
......@@ -758,6 +758,7 @@ namespace Dune {
_torus.partition(_torus.rank(),o,s,o_interior,s_interior);
#if HAVE_MPI
// check whether the grid is large enough to be overlapping
for (int i=0; i<dim; i++)
{
......@@ -770,6 +771,7 @@ namespace Dune {
if (global)
DUNE_THROW(Dune::GridError,"YaspGrid is too small to be overlapping");
}
#endif // #if HAVE_MPI
fTupel h(L);
for (int i=0; i<dim; i++)
......@@ -826,6 +828,7 @@ namespace Dune {
_torus.partition(_torus.rank(),o,s,o_interior,s_interior);
#if HAVE_MPI
// check whether the grid is large enough to be overlapping
for (int i=0; i<dim; i++)
{
......@@ -838,6 +841,7 @@ namespace Dune {
if (global)
DUNE_THROW(Dune::GridError,"YaspGrid is too small to be overlapping");
}
#endif // #if HAVE_MPI
Dune::FieldVector<ctype,dim> extension(upperright);
Dune::FieldVector<ctype,dim> h;
......@@ -902,6 +906,7 @@ namespace Dune {
_torus.partition(_torus.rank(),o,_coarseSize,o_interior,s_interior);
#if HAVE_MPI
// check whether the grid is large enough to be overlapping
for (int i=0; i<dim; i++)
{
......@@ -914,6 +919,7 @@ namespace Dune {
if (global)
DUNE_THROW(Dune::GridError,"YaspGrid is too small to be overlapping");
}
#endif // #if HAVE_MPI
std::array<std::vector<ctype>,dim> newcoords;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment