-
Notifications
You must be signed in to change notification settings - Fork 62
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 #219 from mfem/attribute_sets_dev
Attribute sets dev
- Loading branch information
Showing
10 changed files
with
155 additions
and
20 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
%module(package="mfem._par") arrays_by_name | ||
%{ | ||
#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_GENERAL_ARRAYS_BY_NAME | ||
%init %{ | ||
import_array(); | ||
%} | ||
|
||
%include "exception.i" | ||
%include "../common/exception.i" | ||
|
||
%import "array.i" | ||
%import "../common/io_stream_typemap.i" | ||
OSTREAM_TYPEMAP(std::ostream&) | ||
ISTREAM_TYPEMAP(std::istream&) | ||
|
||
%include "general/arrays_by_name.hpp" | ||
%ignore mfem::ArraysByName::begin; | ||
%ignore mfem::ArraysByName::end; | ||
|
||
%template(intArraysByName) mfem::ArraysByName<int>; | ||
#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") attribute_sets | ||
%{ | ||
#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_MESH_ATTRIBUTE_SETS | ||
|
||
%init %{ | ||
import_array(); | ||
%} | ||
|
||
%include "exception.i" | ||
%include "../common/exception.i" | ||
|
||
%import "array.i" | ||
%import "arrays_by_name.i" | ||
%import "../common/io_stream_typemap.i" | ||
OSTREAM_TYPEMAP(std::ostream&) | ||
ISTREAM_TYPEMAP(std::istream&) | ||
|
||
%include "mesh/attribute_sets.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
%module(package="mfem._ser") arrays_by_name | ||
%{ | ||
#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_GENERAL_ARRAYS_BY_NAME | ||
%init %{ | ||
import_array(); | ||
%} | ||
|
||
%include "exception.i" | ||
%include "../common/exception.i" | ||
|
||
%import "array.i" | ||
%import "../common/io_stream_typemap.i" | ||
OSTREAM_TYPEMAP(std::ostream&) | ||
ISTREAM_TYPEMAP(std::istream&) | ||
|
||
%include "general/arrays_by_name.hpp" | ||
%ignore mfem::ArraysByName::begin; | ||
%ignore mfem::ArraysByName::end; | ||
|
||
%template(intArraysByName) mfem::ArraysByName<int>; | ||
#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") attribute_sets | ||
%{ | ||
#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_MESH_ATTRIBUTE_SETS | ||
|
||
%init %{ | ||
import_array(); | ||
%} | ||
|
||
%include "exception.i" | ||
%include "../common/exception.i" | ||
|
||
%import "array.i" | ||
%import "arrays_by_name.i" | ||
%import "../common/io_stream_typemap.i" | ||
OSTREAM_TYPEMAP(std::ostream&) | ||
ISTREAM_TYPEMAP(std::istream&) | ||
|
||
%include "mesh/attribute_sets.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