Skip to content
Snippets Groups Projects
Commit 68679548 authored by webmanue's avatar webmanue
Browse files

conditionally check base mesh

- disable check if AE108_CPPPETSC_DISABLE_BASE_MESH_CHECK is defined
parent 208a41d1
No related branches found
No related tags found
No related merge requests found
Pipeline #121554 passed
......@@ -673,7 +673,7 @@ Mesh<Policy>::fromCanonicalOrder(const distributed<vector_type> &vector) const {
template <class Policy>
void Mesh<Policy>::assertCorrectBaseMesh(const vector_type &vector) const {
#ifndef NDEBUG
#if !defined(NDEBUG) && !defined(AE108_CPPPETSC_DISABLE_BASE_MESH_CHECK)
const auto extractDM = [](const vector_type &vector) {
auto dm = DM{};
Policy::handleError(VecGetDM(vector.data(), &dm));
......@@ -687,4 +687,4 @@ void Mesh<Policy>::assertCorrectBaseMesh(const vector_type &vector) const {
#endif
}
} // namespace cpppetsc
} // namespace ae108
\ No newline at end of file
} // namespace ae108
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