-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from mfem/add_qspace_dev
(WIP) added i-files for qfunction, quadinterpolator, quadinterpolator_face
- Loading branch information
Showing
16 changed files
with
229 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,5 +20,5 @@ def debug_print(message): | |
|
||
print(message) | ||
|
||
__version__ = '4.4.0.2' | ||
__version__ = '4.4.0.3' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
%module(package="mfem._par") qfunction | ||
%{ | ||
#include "mfem.hpp" | ||
#include "../common/io_stream.hpp" | ||
#include "pyoperator.hpp" | ||
#include "../common/pycoefficient.hpp" | ||
#include "numpy/arrayobject.h" | ||
%} | ||
|
||
%include "../common/existing_mfem_headers.i" | ||
#ifdef FILE_EXISTS_FEM_QFUNCTION | ||
|
||
%init %{ | ||
import_array(); | ||
%} | ||
%include "exception.i" | ||
%import "fe.i" | ||
%import "fe_fixed_order.i" | ||
%import "element.i" | ||
%import "mesh.i" | ||
%import "qspace.i" | ||
%include "../common/typemap_macros.i" | ||
%include "../common/exception.i" | ||
|
||
%import "../common/numpy_int_typemap.i" | ||
%import "../common/io_stream_typemap.i" | ||
OSTREAM_TYPEMAP(std::ostream&) | ||
ISTREAM_TYPEMAP(std::istream&) | ||
|
||
%ignore mfem::QuadratureFunction::SetSpace; | ||
|
||
%include "fem/qfunction.hpp" | ||
OSTREAM_ADD_DEFAULT_FILE(QuadratureFunction, Save) | ||
#endif | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
%module(package="mfem._par") quadinterpolator | ||
%{ | ||
#include "mfem.hpp" | ||
#include "../common/io_stream.hpp" | ||
#include "pyoperator.hpp" | ||
#include "../common/pycoefficient.hpp" | ||
#include "numpy/arrayobject.h" | ||
%} | ||
|
||
%include "../common/existing_mfem_headers.i" | ||
#ifdef FILE_EXISTS_FEM_QUADINTERPOLATOR_FACE | ||
|
||
%init %{ | ||
import_array(); | ||
%} | ||
%include "exception.i" | ||
%import "fe.i" | ||
%import "fe_fixed_order.i" | ||
%import "element.i" | ||
%import "mesh.i" | ||
%import "qspace.i" | ||
%include "../common/typemap_macros.i" | ||
%include "../common/exception.i" | ||
|
||
%import "../common/numpy_int_typemap.i" | ||
|
||
%include "fem/quadinterpolator.hpp" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
%module(package="mfem._par") quadinterpolator_face | ||
%{ | ||
#include "mfem.hpp" | ||
#include "../common/io_stream.hpp" | ||
#include "pyoperator.hpp" | ||
#include "../common/pycoefficient.hpp" | ||
#include "numpy/arrayobject.h" | ||
%} | ||
|
||
%include "../common/existing_mfem_headers.i" | ||
#ifdef FILE_EXISTS_FEM_QUADINTERPOLATOR_FACE | ||
|
||
%init %{ | ||
import_array(); | ||
%} | ||
%include "exception.i" | ||
%import "fe.i" | ||
%import "fe_fixed_order.i" | ||
%import "element.i" | ||
%import "mesh.i" | ||
%import "qspace.i" | ||
%include "../common/typemap_macros.i" | ||
%include "../common/exception.i" | ||
|
||
%import "../common/numpy_int_typemap.i" | ||
|
||
%include "fem/quadinterpolator_face.hpp" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
%module(package="mfem._ser") qfunction | ||
%{ | ||
#include "mfem.hpp" | ||
#include "../common/io_stream.hpp" | ||
#include "pyoperator.hpp" | ||
#include "../common/pycoefficient.hpp" | ||
#include "numpy/arrayobject.h" | ||
%} | ||
|
||
%include "../common/existing_mfem_headers.i" | ||
#ifdef FILE_EXISTS_FEM_QFUNCTION | ||
|
||
%init %{ | ||
import_array(); | ||
%} | ||
%include "exception.i" | ||
%import "fe.i" | ||
%import "fe_fixed_order.i" | ||
%import "element.i" | ||
%import "mesh.i" | ||
%import "qspace.i" | ||
%include "../common/typemap_macros.i" | ||
%include "../common/exception.i" | ||
|
||
%import "../common/numpy_int_typemap.i" | ||
%import "../common/io_stream_typemap.i" | ||
OSTREAM_TYPEMAP(std::ostream&) | ||
ISTREAM_TYPEMAP(std::istream&) | ||
|
||
%ignore mfem::QuadratureFunction::SetSpace; | ||
|
||
%include "fem/qfunction.hpp" | ||
OSTREAM_ADD_DEFAULT_FILE(QuadratureFunction, Save) | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
%module(package="mfem._ser") quadinterpolator | ||
%{ | ||
#include "mfem.hpp" | ||
#include "../common/io_stream.hpp" | ||
#include "pyoperator.hpp" | ||
#include "../common/pycoefficient.hpp" | ||
#include "numpy/arrayobject.h" | ||
%} | ||
|
||
%include "../common/existing_mfem_headers.i" | ||
#ifdef FILE_EXISTS_FEM_QUADINTERPOLATOR | ||
|
||
%init %{ | ||
import_array(); | ||
%} | ||
%include "exception.i" | ||
%import "fe.i" | ||
%import "fe_fixed_order.i" | ||
%import "element.i" | ||
%import "mesh.i" | ||
%import "qspace.i" | ||
%include "../common/typemap_macros.i" | ||
%include "../common/exception.i" | ||
|
||
%import "../common/numpy_int_typemap.i" | ||
|
||
%include "fem/quadinterpolator.hpp" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
%module(package="mfem._ser") quadinterpolator_face | ||
%{ | ||
#include "mfem.hpp" | ||
#include "../common/io_stream.hpp" | ||
#include "pyoperator.hpp" | ||
#include "../common/pycoefficient.hpp" | ||
#include "numpy/arrayobject.h" | ||
%} | ||
|
||
%include "../common/existing_mfem_headers.i" | ||
#ifdef FILE_EXISTS_FEM_QUADINTERPOLATOR_FACE | ||
|
||
%init %{ | ||
import_array(); | ||
%} | ||
%include "exception.i" | ||
%import "fe.i" | ||
%import "fe_fixed_order.i" | ||
%import "element.i" | ||
%import "mesh.i" | ||
%import "qspace.i" | ||
%include "../common/typemap_macros.i" | ||
%include "../common/exception.i" | ||
|
||
%import "../common/numpy_int_typemap.i" | ||
|
||
%include "fem/quadinterpolator_face.hpp" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters