Skip to content
Snippets Groups Projects
Commit 30f2484d authored by Timo Koch's avatar Timo Koch Committed by Dennis Gläser
Browse files

Do nothing and give warning if scotch wasn't found

parent bbce5178
No related branches found
No related tags found
1 merge request!860Feature/remove mineralization typetag
...@@ -39,6 +39,8 @@ extern "C" ...@@ -39,6 +39,8 @@ extern "C"
#include <stdint.h> #include <stdint.h>
#include <ptscotch.h> #include <ptscotch.h>
} }
#else
#warning "PTSCOTCH was not found on your system. Dumux::ScotchBackend won't do anything."
#endif #endif
namespace Dumux { namespace Dumux {
...@@ -81,6 +83,7 @@ public: ...@@ -81,6 +83,7 @@ public:
std::vector<int>& inversePermutation, std::vector<int>& inversePermutation,
std::string scotchStrategy = "") std::string scotchStrategy = "")
{ {
#if HAVE_PTSCOTCH
// Number of local graph vertices (cells) // Number of local graph vertices (cells)
const SCOTCH_Num vertnbr = graph.size(); const SCOTCH_Num vertnbr = graph.size();
...@@ -164,9 +167,10 @@ public: ...@@ -164,9 +167,10 @@ public:
permutation.begin()); permutation.begin());
std::copy(inversePermutationIndices.begin(), inversePermutationIndices.end(), std::copy(inversePermutationIndices.begin(), inversePermutationIndices.end(),
inversePermutation.begin()); inversePermutation.begin());
#endif // HAVE_PTSCOTCH
} }
}; };
} // end namespace Dumux } // end namespace Dumux
#endif #endif // DUMUX_SCOTCH_BACKEND_HH
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