diff --git a/gsStructuralAnalysis.h b/gsStructuralAnalysis.h index 4fd54cb..bece542 100644 --- a/gsStructuralAnalysis.h +++ b/gsStructuralAnalysis.h @@ -1,7 +1,5 @@ #include -#include - namespace gismo { @@ -9,11 +7,7 @@ namespace gismo namespace py = pybind11; - void pybind11_init_gsStructuralAnalysis(py::module &m) - { - gismo::pybind11_init_gsPanelCreator( m ); - /*Bindings for gsStructuralAnalysis go here*/ - } + void pybind11_init_gsStructuralAnalysis(py::module &m); #endif } diff --git a/gsStructuralAnalysis_.cpp b/gsStructuralAnalysis_.cpp index c7dcaa2..62869c5 100644 --- a/gsStructuralAnalysis_.cpp +++ b/gsStructuralAnalysis_.cpp @@ -1,4 +1,20 @@ #include #include +#include +namespace gismo +{ + +#ifdef GISMO_WITH_PYBIND11 + + namespace py = pybind11; + + void pybind11_init_gsStructuralAnalysis(py::module &m) + { + gismo::pybind11_init_gsPanelCreator( m ); + /*Bindings for gsStructuralAnalysis go here*/ + } + +#endif +} \ No newline at end of file diff --git a/unittests/gsStaticSolver_test.cpp b/unittests/gsStaticSolver_test.cpp index bff97e0..8a33342 100644 --- a/unittests/gsStaticSolver_test.cpp +++ b/unittests/gsStaticSolver_test.cpp @@ -333,7 +333,7 @@ SUITE(gsStaticSolver_test) // The suite should have the same nam return result; } - std::pair UAT_analytical(const std::vector solver, const index_t material, const index_t impl, const bool Compressibility) + std::pair UAT_analytical(const std::vector, const index_t material, const index_t, const bool Compressibility) { real_t PoissonRatio; real_t Ratio = 7.0;