diff --git a/NonLinearSolver/nlmechsolpy.i b/NonLinearSolver/nlmechsolpy.i index 5afc90c09c6142f7f649941acf9846a527657e83..f030bdaa3e77ba0604619e63e6b81eaef0123e25 100644 --- a/NonLinearSolver/nlmechsolpy.i +++ b/NonLinearSolver/nlmechsolpy.i @@ -1,3 +1,11 @@ +%include std_string.i +%include std_vector.i +%include std_map.i + +%template(vectorInt) std::vector<int>; +%template(vectorDouble) std::vector<double>; +%template(vectorString) std::vector<std::string>; + %{ #undef HAVE_DLOPEN #include "NonLinearSolverConfig.h" diff --git a/dG3D/src/dG3Dpy.i b/dG3D/src/dG3Dpy.i index 9a44dcec1c706f15381c2b6f98cb73627d45a5f3..8efa466c19c044c16712df712d9ed713c76db442 100644 --- a/dG3D/src/dG3Dpy.i +++ b/dG3D/src/dG3Dpy.i @@ -4,9 +4,7 @@ #else %module dG3Dpy #endif -%include std_string.i -%include std_vector.i -%include std_map.i + %include nlmechsolpy.i