Skip to content
Snippets Groups Projects
Commit fb7b0467 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

disable wrappers if the module is not compiled in

PS : we should discuss a better strategy to clean this up
parent 67783c2d
No related branches found
No related tags found
No related merge requests found
......@@ -4,17 +4,20 @@
%{
#include "GmshConfig.h"
#if defined(HAVE_MESH)
#include "Generator.h"
#include "highOrderTools.h"
#include "meshGFaceLloyd.h"
#include "meshGFaceOptimize.h"
#include "meshPartitionOptions.h"
#include "Levy3D.h"
#if defined(HAVE_METIS) || defined(HAVE_CHACO)
#include "meshPartition.h"
#endif
#include "meshMetric.h"
#include "Field.h"
#include "CenterlineField.h"
#endif
%}
%include std_vector.i
......@@ -23,13 +26,17 @@ namespace std {
}
%include "GmshConfig.h"
#if defined(HAVE_MESH)
%include "Generator.h"
%include "highOrderTools.h"
%include "meshGFaceLloyd.h"
%include "meshGFaceOptimize.h"
%include "meshPartitionOptions.h"
%include "Levy3D.h"
#if defined(HAVE_METIS) || defined(HAVE_CHACO)
%include "meshPartition.h"
#endif
%include "meshMetric.h"
%include "Field.h"
%include "CenterlineField.h"
#endif
......@@ -6,16 +6,18 @@
%{
#include "GmshConfig.h"
#include "fullMatrix.h"
#if defined(HAVE_POST)
#include "PView.h"
#include "PViewFactory.h"
#include "PViewData.h"
#endif
%}
%include "GmshConfig.h"
#if defined(HAVE_POST)
%include "PView.h"
%include "PViewFactory.h"
%apply double &OUTPUT { double &val}
%include "PViewData.h"
#endif
......@@ -7,16 +7,18 @@
%{
#include "GmshConfig.h"
#if defined(HAVE_SOLVER)
#include "dofManager.h"
#include "elasticitySolver.h"
#include "linearSystem.h"
#include "linearSystemCSR.h"
#include "linearSystemFull.h"
#include "linearSystemPETSc.h"
#endif
%}
%include "GmshConfig.h"
#if defined(HAVE_SOLVER)
%include "dofManager.h"
%template(dofManagerDouble) dofManager<double>;
%include "elasticitySolver.h"
......@@ -28,7 +30,8 @@
%template(linearSystemTAUCSDouble) linearSystemCSRTaucs<double>;
%include "linearSystemFull.h"
%template(linearSystemFullDouble) linearSystemFull<double> ;
#ifdef HAVE_PETSC
#if defined(HAVE_PETSC)
%include "linearSystemPETSc.h"
%template(linearSystemPETScDouble) linearSystemPETSc<double>;
#endif
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment