Skip to content

Commit

Permalink
small change python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
hverhelst committed Jan 5, 2025
1 parent ce6e351 commit cf65073
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
8 changes: 1 addition & 7 deletions gsStructuralAnalysis.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
#include <gsCore/gsTemplateTools.h>

#include <gsStructuralAnalysis/src/gsStructuralAnalysisTools/gsPanelCreator.h>

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*/
}
void pybind11_init_gsStructuralAnalysis(py::module &m);

#endif
}
Expand Down
16 changes: 16 additions & 0 deletions gsStructuralAnalysis_.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
#include <gsCore/gsTemplateTools.h>

#include <gsStructuralAnalysis/gsStructuralAnalysis.h>
#include <gsStructuralAnalysis/src/gsStructuralAnalysisTools/gsPanelCreator.h>

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
}
2 changes: 1 addition & 1 deletion unittests/gsStaticSolver_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ SUITE(gsStaticSolver_test) // The suite should have the same nam
return result;
}

std::pair<real_t,real_t> UAT_analytical(const std::vector<index_t> solver, const index_t material, const index_t impl, const bool Compressibility)
std::pair<real_t,real_t> UAT_analytical(const std::vector<index_t>, const index_t material, const index_t, const bool Compressibility)
{
real_t PoissonRatio;
real_t Ratio = 7.0;
Expand Down

0 comments on commit cf65073

Please sign in to comment.