Skip to content

Commit

Permalink
Merge branch 'fix-ex18-v2' of github.com:/mfem/PyMFEM into fix-ex18-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
sshiraiwa committed Aug 5, 2024
2 parents 823c1d8 + 566af73 commit e1d03d2
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
35 changes: 35 additions & 0 deletions mfem/_par/hyperbolic.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
%module(package="mfem._par") hyperbolic
%feature("autodoc", "1");

%{
#include "mfem.hpp"
#include "numpy/arrayobject.h"
#include "../common/io_stream.hpp"
#include "../common/pyoperator.hpp"
#include "../common/pycoefficient.hpp"
#include "../common/pyintrules.hpp"
%}

%include "../common/existing_mfem_headers.i"
#ifdef FILE_EXISTS_FEM_HYPERBOLIC

%init %{
import_array();
%}

%include "exception.i"
%include "std_string.i"
%include "../common/exception.i"

%import "array.i"
%import "vector.i"
%import "densemat.i"
%import "eltrans.i"


%include "fem/hyperbolic.hpp"

#endif



35 changes: 35 additions & 0 deletions mfem/_ser/hyperbolic.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
%module(package="mfem._ser") hyperbolic
%feature("autodoc", "1");

%{
#include "mfem.hpp"
#include "numpy/arrayobject.h"
#include "../common/io_stream.hpp"
#include "../common/pyoperator.hpp"
#include "../common/pycoefficient.hpp"
#include "../common/pyintrules.hpp"
%}

%include "../common/existing_mfem_headers.i"
#ifdef FILE_EXISTS_FEM_HYPERBOLIC

%init %{
import_array();
%}

%include "exception.i"
%include "std_string.i"
%include "../common/exception.i"

%import "array.i"
%import "vector.i"
%import "densemat.i"
%import "eltrans.i"


%include "fem/hyperbolic.hpp"

#endif



0 comments on commit e1d03d2

Please sign in to comment.