Skip to content
Snippets Groups Projects
Commit c941664d authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

removed access to not-availbe extents_ member if non HAVE_MPI mode.

parent eb3dea8e
No related branches found
No related tags found
No related merge requests found
...@@ -165,9 +165,9 @@ public: // default implementation: ...@@ -165,9 +165,9 @@ public: // default implementation:
template <class Writer> template <class Writer>
void writePiecesImpl (Writer const& writer) const void writePiecesImpl (Writer const& writer) const
{ {
#if HAVE_MPI
writer(0, extents_[0], true); writer(0, extents_[0], true);
#if HAVE_MPI
int num_ranks = -1; int num_ranks = -1;
MPI_Comm_size(gridView_.comm(), &num_ranks); MPI_Comm_size(gridView_.comm(), &num_ranks);
for (int p = 1; p < num_ranks; ++p) { for (int p = 1; p < num_ranks; ++p) {
...@@ -179,6 +179,8 @@ public: // default implementation: ...@@ -179,6 +179,8 @@ public: // default implementation:
writer(idx, extents_[idx], true); writer(idx, extents_[idx], true);
} }
} }
#else
writer(0, this->extent(), true);
#endif #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment