Commit 6791ab5c authored by Max Lyon's avatar Max Lyon

only build symmetric dirichlet problem if adolc is available

parent 584b840f
Pipeline #11958 failed with stages
in 8 minutes and 39 seconds
......@@ -23,6 +23,9 @@
\*===========================================================================*/
#include <CoMISo/Config/config.hh>
#if (COMISO_ADOLC_AVAILABLE && COMISO_EIGEN3_AVAILABLE)
#include <CoMISo/Utils/StopWatch.hh>
#include <vector>
#include <CoMISo/NSolver/NewtonSolver.hh>
......@@ -73,3 +76,13 @@ int main(void)
return 0;
}
#else // (COMISO_ADOLC_AVAILABLE && COMISO_EIGEN3_AVAILABLE)
int main(void)
{
std::cerr << "Warning: Example cannot be executed since either EIGEN3 or ADOLC is not available..." << std::endl;
return 0;
}
#endif // (COMISO_ADOLC_AVAILABLE && COMISO_EIGEN3_AVAILABLE)
......@@ -22,6 +22,10 @@
* *
\*===========================================================================*/
#include <CoMISo/Config/config.hh>
#if (COMISO_ADOLC_AVAILABLE && COMISO_EIGEN3_AVAILABLE)
#include "SymmetricDirichletProblem.hh"
......@@ -330,8 +334,7 @@ void SymmetricDirichletProblem::get_constraints(SMatrixD& _A, VectorD& _b)
_A.setFromTriplets(triplets.begin(), triplets.end());
}
} // namespace COMISO
}
#endif //(COMISO_ADOLC_AVAILABLE && COMISO_EIGEN3_AVAILABLE)
......@@ -34,6 +34,10 @@
//== INCLUDES =================================================================
#include <CoMISo/Config/config.hh>
#if (COMISO_ADOLC_AVAILABLE && COMISO_EIGEN3_AVAILABLE)
#include <CoMISo/Config/CoMISoDefines.hh>
#include "FiniteElementProblem.hh"
......@@ -151,6 +155,10 @@ private:
//=============================================================================
} // namespace COMISO
//=============================================================================
#endif //(COMISO_ADOLC_AVAILABLE && COMISO_EIGEN3_AVAILABLE)
//=============================================================================
#endif // COMISO_SYMMETRICDIRICHLETPROBLEM_HH defined
//=============================================================================
......
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