diff --git a/INSTALL.md b/INSTALL.md index 590bab27..6e8a65e0 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -2,24 +2,23 @@ ## Basic serial install -Most users (on Linux and Mac) will be fine using the binary bundled in the default `pip` install: +For serial version, most users (on Linux and Mac) will be fine using the binary bundled in the default `pip` install: ```shell pip install mfem ``` The above installation will download and install a *serial* version of `MFEM`. -## Environmental variables -Build script checks the following environmental variables -- CC : c compiler for parallel build -- CXX : c++ compiler for serial build -- MPICC : c compiler for parallel build -- MPICXX : c++ compiler for parallel build -- CXX11FLAG : C++11 flag for C++ compiler -- MPIINC : the location of MPI.h (if this variable is set, the parallle PyMFEM is build with CXX, not MPICXX) - ## Building from source +To build it from source, clone the repository and use pip command + +```shell +git clone git@github:mfem/PyMFEM.git +cd PyMFEM +pip install . --user +``` + PyMFEM has many options for installation, when building from source, including: - Serial and parallel (MPI) wrappers - Using pre-built local dependencies @@ -28,32 +27,28 @@ PyMFEM has many options for installation, when building from source, including: - `gslib` - `libceed` - `metis` - -Most of the options for PyMFEM can be used directly when installing via `pip install . or python setup.py install`, e.g. -```shell -git clone git@github:mfem/PyMFEM.git -cd PyMFEM -pip install . --user - -or - -python setup.py install --user -``` + +Build script checks the following environmental variables + - CC : c compiler for parallel build + - CXX : c++ compiler for serial build + - MPICC : c compiler for parallel build + - MPICXX : c++ compiler for parallel build + - CXX11FLAG : C++11 flag for C++ compiler + - MPIINC : the location of MPI.h (if this variable is set, the parallle PyMFEM is build with CXX, not MPICXX) Note that `python setup.py install` is deprecated and will be removed soon in favor of `pip`. When installing via `pip`, options are specified using the `-C` flag using the syntax `-C"name=value"`; e.g. the `--with-parallel` option is now specified as `-C"with-parallel=Yes`. The name and value of each option should be written explicitly with a dedicated -C flag. For example, parallel (MPI) support and GSlib support is built with `--with-parallel` -and `--with-gslib' flags as follows. +and `--with-gslib` flags as follows. ```shell -python setup.py install --with-parallel --with-gslib -or pip install . -C"with-parallel=Yes" -C"with-gslib=Yes" ``` -Note: this option turns on building `metis` and `Hypre` +(Warning) The migration to `pip install . ` is on-going effort and Some of the example commands are not tested yet, which are indicated by using old conversion of "python setup.py install XXXX" + ## Commonly used flags @@ -63,12 +58,6 @@ Note: this option turns on building `metis` and `Hypre` | `--mfem-branch=` | Download/install MFEM using a specific reference (`git` `branch`, `hash`, or `tag`) | | `--user` | Install in user's site-package | -In order to see the full list of options, use - -```shell -python setup.py install --help -``` - ## Advanced options ### Suitesparse diff --git a/README.md b/README.md index 0bfa5f4a..ca964bbb 100644 --- a/README.md +++ b/README.md @@ -18,24 +18,25 @@ pip install mfem # binary install is available only on linux platform ### Build with additional features (MPI, GPU, GPU-Hypre, GSLIB, SuiteSparse, libCEED, LAPACK) -The setup script accept various options. Download the package manually and run the script. Examples below downloads and build parallel version of MFEM library (linked with Metis and Hypre) and installs under /mfem. See INSTALL.md for various other options +The setup script accept various options. Download the package manually and run the script. Examples below downloads and build parallel version of MFEM library (linked with Metis and Hypre) and installs under /mfem. See [INSTALL](INSTALL.md) for various other options +#### Download source and build ```shell -# Download source and build $ git clone https://github.com/mfem/PyMFEM.git # Build it from local source with MPI $ pip install ./ -C"with-parallel=Yes" --verbose +``` - -# Cleaning +#### Cleaning +```shell $ python setup.py clean --all # clean external dependencies + wrapper code - -# Run test +``` +#### Run test +```shell cd test python test_examples.py -serial - -# For other configurations, see INSTALL.md +``` ## Usage This example (modified from `ex1.cpp`) solves the Poisson equation, @@ -118,7 +119,9 @@ plt.show() ## License -PyMFEM is licensed under BSD-3. +PyMFEM is licensed under BSD-3 license. All new contributions +must be made under this license. See [License](LICENSE) for details. + Please refer the developers' web sites for the external libraries * MFEM: https://mfem.org/ * Hypre: https://computing.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods diff --git a/docs/development_memo.txt b/docs/development_memo.txt index aeb97b10..9f4a953d 100644 --- a/docs/development_memo.txt +++ b/docs/development_memo.txt @@ -12,22 +12,25 @@ $ twine check dist/* # check syntax $ python3 -m twine upload --repository testpypi dist/* # upload at testpypi $ python3 -m twine upload dist/* # uploade to the official -### building step-by-step -pip download -i https://test.pypi.org/simple/ mfem -python3 setup.py install --prefix=~/sandbox --verbose --with-parallel - -### test inside virtualenv -virtualenv env -source env/bin/activate +### check test PyPI distribution +pip3 install -i https://test.pypi.org/simple mfem==4.8.0rc10 -verbose -### test verious pip combinations -pip3 install -i https://test.pypi.org/simple mfem --no-binary mfem --verbose -pip3 install -i https://test.pypi.org/simple mfem --no-binary mfem --verbose --prefix=~/sandbox -virtualenv env -source env/bin/activate -pip3 install -i https://test.pypi.org/simple mfem --no-binary mfem --verbose +### building step-by-step +git clone https://github.com/mfem/PyMFEM.git +cd PyMFEM +1) build external libraries +pip install . -C"ext-only=Yes" --verbose +pip install . -C"with-parallel=Yes" -C"ext-only=Yes" --verbose + +2) generate wrapper codes +pip install . -C"skip-ext=Yes" -C"swig=Yes" --verbose +pip install . -C"with-parallel=Yes" -C"skip-ext=Yes" -C"swig=Yes" --verbose + +3) compile wrapper +pip install . -C"skip-ext=Yes" -C"skip-swig=Yes" --verbose +pip install . -C"with-parallel=Yes" -C"skip-ext=Yes" -C"skip-swig=Yes" --verbose ### Test linux binary build locally using docker (1) for Python <= 3.9 diff --git a/mfem/__init__.py b/mfem/__init__.py index 1ff4c3c0..2744e015 100644 --- a/mfem/__init__.py +++ b/mfem/__init__.py @@ -20,5 +20,5 @@ def debug_print(message): print(message) -__version__ = '4.8.0rc10' +__version__ = '4.8.0' diff --git a/mfem/_par/array.i b/mfem/_par/array.i index 633aea48..6377f501 100644 --- a/mfem/_par/array.i +++ b/mfem/_par/array.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") array %feature("autodoc", "1"); diff --git a/mfem/_par/arrays_by_name.i b/mfem/_par/arrays_by_name.i index a2c7b9b9..d8ff670f 100644 --- a/mfem/_par/arrays_by_name.i +++ b/mfem/_par/arrays_by_name.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") arrays_by_name %{ #include "mfem.hpp" diff --git a/mfem/_par/attribute_sets.i b/mfem/_par/attribute_sets.i index 1f130ccf..b4c324f7 100644 --- a/mfem/_par/attribute_sets.i +++ b/mfem/_par/attribute_sets.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") attribute_sets %{ #include "mfem.hpp" diff --git a/mfem/_par/auxiliary.i b/mfem/_par/auxiliary.i index 91b138f4..e139f542 100644 --- a/mfem/_par/auxiliary.i +++ b/mfem/_par/auxiliary.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module (package="mfem._par") auxiliary %{ diff --git a/mfem/_par/bilinearform.i b/mfem/_par/bilinearform.i index f237da2b..2e150e3b 100644 --- a/mfem/_par/bilinearform.i +++ b/mfem/_par/bilinearform.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par", directors="1") bilinearform %{ #include "fem/bilinearform.hpp" diff --git a/mfem/_par/bilininteg.i b/mfem/_par/bilininteg.i index 2766e5a0..3989b825 100644 --- a/mfem/_par/bilininteg.i +++ b/mfem/_par/bilininteg.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par", directors="1") bilininteg %{ #include "mfem.hpp" diff --git a/mfem/_par/blockmatrix.i b/mfem/_par/blockmatrix.i index 977b97e0..e91a9ab1 100644 --- a/mfem/_par/blockmatrix.i +++ b/mfem/_par/blockmatrix.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") blockmatrix %{ diff --git a/mfem/_par/blockoperator.i b/mfem/_par/blockoperator.i index c7fcae6c..492e9c8c 100644 --- a/mfem/_par/blockoperator.i +++ b/mfem/_par/blockoperator.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") blockoperator %{ diff --git a/mfem/_par/blockvector.i b/mfem/_par/blockvector.i index ca9cc268..71b45442 100644 --- a/mfem/_par/blockvector.i +++ b/mfem/_par/blockvector.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") blockvector %{ diff --git a/mfem/_par/bounds.i b/mfem/_par/bounds.i index dff23d82..554517eb 100644 --- a/mfem/_par/bounds.i +++ b/mfem/_par/bounds.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") bounds %{ diff --git a/mfem/_par/coefficient.i b/mfem/_par/coefficient.i index 4dc5387c..7c603473 100644 --- a/mfem/_par/coefficient.i +++ b/mfem/_par/coefficient.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// /* coefficient.i SWIG interface file for coefficient.hpp diff --git a/mfem/_par/common_functions.i b/mfem/_par/common_functions.i index 1868d956..6f297500 100644 --- a/mfem/_par/common_functions.i +++ b/mfem/_par/common_functions.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") common_functions %{ diff --git a/mfem/_par/communication.i b/mfem/_par/communication.i index e70db6af..17addeb3 100644 --- a/mfem/_par/communication.i +++ b/mfem/_par/communication.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") communication %feature("autodoc", "1"); diff --git a/mfem/_par/complex_fem.i b/mfem/_par/complex_fem.i index 5bbfad95..9e365ceb 100644 --- a/mfem/_par/complex_fem.i +++ b/mfem/_par/complex_fem.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// /* complex_fem.i diff --git a/mfem/_par/complex_operator.i b/mfem/_par/complex_operator.i index 0a4bd8f5..8ad6e4aa 100644 --- a/mfem/_par/complex_operator.i +++ b/mfem/_par/complex_operator.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// /* complex_operator.i diff --git a/mfem/_par/constraints.i b/mfem/_par/constraints.i index a2b7051d..a86af52a 100644 --- a/mfem/_par/constraints.i +++ b/mfem/_par/constraints.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// /* constraints.i diff --git a/mfem/_par/cpointers.i b/mfem/_par/cpointers.i index e48510ec..73af49d2 100644 --- a/mfem/_par/cpointers.i +++ b/mfem/_par/cpointers.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") cpointers %include "../common/cpointers.i" diff --git a/mfem/_par/datacollection.i b/mfem/_par/datacollection.i index b1e94cc6..38763979 100644 --- a/mfem/_par/datacollection.i +++ b/mfem/_par/datacollection.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") datacollection %{ #include "mfem.hpp" diff --git a/mfem/_par/densemat.i b/mfem/_par/densemat.i index 4635d627..7e30f339 100644 --- a/mfem/_par/densemat.i +++ b/mfem/_par/densemat.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// /* densemat.i diff --git a/mfem/_par/device.i b/mfem/_par/device.i index 9e147938..c3f12f0a 100644 --- a/mfem/_par/device.i +++ b/mfem/_par/device.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") device %{ #include "mfem.hpp" diff --git a/mfem/_par/dist_solver.i b/mfem/_par/dist_solver.i index c3d8cbd9..0a100868 100644 --- a/mfem/_par/dist_solver.i +++ b/mfem/_par/dist_solver.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") dist_solver %{ #include "mfem.hpp" diff --git a/mfem/_par/doftrans.i b/mfem/_par/doftrans.i index 549582bf..a3c7c270 100644 --- a/mfem/_par/doftrans.i +++ b/mfem/_par/doftrans.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") doftrans %{ #include "mfem.hpp" diff --git a/mfem/_par/element.i b/mfem/_par/element.i index ed883f96..ccc78043 100644 --- a/mfem/_par/element.i +++ b/mfem/_par/element.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") element %{ diff --git a/mfem/_par/eltrans.i b/mfem/_par/eltrans.i index e41342d9..0bd91cd5 100644 --- a/mfem/_par/eltrans.i +++ b/mfem/_par/eltrans.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module (package="mfem._par") eltrans %{ diff --git a/mfem/_par/enzyme.i b/mfem/_par/enzyme.i index 97b33c02..662886bf 100644 --- a/mfem/_par/enzyme.i +++ b/mfem/_par/enzyme.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") enzyme %{ #include "mfem.hpp" diff --git a/mfem/_par/error.i b/mfem/_par/error.i index 8ca25982..ed5e862f 100644 --- a/mfem/_par/error.i +++ b/mfem/_par/error.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") error %{ #include diff --git a/mfem/_par/estimators.i b/mfem/_par/estimators.i index 10184fb4..4877cfe4 100644 --- a/mfem/_par/estimators.i +++ b/mfem/_par/estimators.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") estimators %{ #include "mfem.hpp" diff --git a/mfem/_par/fe.i b/mfem/_par/fe.i index d9a51677..a548fd61 100644 --- a/mfem/_par/fe.i +++ b/mfem/_par/fe.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module (package="mfem._par") fe %{ diff --git a/mfem/_par/fe_base.i b/mfem/_par/fe_base.i index 768fde43..7c457774 100644 --- a/mfem/_par/fe_base.i +++ b/mfem/_par/fe_base.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") fe_base %{ #include "mfem.hpp" diff --git a/mfem/_par/fe_coll.i b/mfem/_par/fe_coll.i index 8cdf51b3..5adb777d 100644 --- a/mfem/_par/fe_coll.i +++ b/mfem/_par/fe_coll.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") fe_coll %{ #include diff --git a/mfem/_par/fe_fixed_order.i b/mfem/_par/fe_fixed_order.i index ef7e15d8..ec837c6c 100644 --- a/mfem/_par/fe_fixed_order.i +++ b/mfem/_par/fe_fixed_order.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") fe_fixed_order %{ #include "mfem.hpp" diff --git a/mfem/_par/fe_h1.i b/mfem/_par/fe_h1.i index 551ab0cc..a5907c4f 100644 --- a/mfem/_par/fe_h1.i +++ b/mfem/_par/fe_h1.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") fe_h1 %{ #include "mfem.hpp" diff --git a/mfem/_par/fe_l2.i b/mfem/_par/fe_l2.i index 9581a46e..aafdedf8 100644 --- a/mfem/_par/fe_l2.i +++ b/mfem/_par/fe_l2.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") fe_l2 %{ #include "mfem.hpp" diff --git a/mfem/_par/fe_nd.i b/mfem/_par/fe_nd.i index 6828397d..64ec5bc9 100644 --- a/mfem/_par/fe_nd.i +++ b/mfem/_par/fe_nd.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") fe_nd %{ #include "mfem.hpp" diff --git a/mfem/_par/fe_nurbs.i b/mfem/_par/fe_nurbs.i index d24a893c..1c32df90 100644 --- a/mfem/_par/fe_nurbs.i +++ b/mfem/_par/fe_nurbs.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") fe_nurbs %{ #include "mfem.hpp" diff --git a/mfem/_par/fe_pos.i b/mfem/_par/fe_pos.i index 91a8266c..a8202e05 100644 --- a/mfem/_par/fe_pos.i +++ b/mfem/_par/fe_pos.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") fe_pos %{ #include "mfem.hpp" diff --git a/mfem/_par/fe_rt.i b/mfem/_par/fe_rt.i index 656f606a..87d41fa1 100644 --- a/mfem/_par/fe_rt.i +++ b/mfem/_par/fe_rt.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") fe_rt %{ #include "mfem.hpp" diff --git a/mfem/_par/fe_ser.i b/mfem/_par/fe_ser.i index cbf350db..ce53ce67 100644 --- a/mfem/_par/fe_ser.i +++ b/mfem/_par/fe_ser.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") fe_ser %{ #include "mfem.hpp" diff --git a/mfem/_par/fespace.i b/mfem/_par/fespace.i index 558381b0..2849532e 100644 --- a/mfem/_par/fespace.i +++ b/mfem/_par/fespace.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") fespace %feature("autodoc", "1"); diff --git a/mfem/_par/fespacehierarchy.i b/mfem/_par/fespacehierarchy.i index 75dbcacc..97d981f7 100644 --- a/mfem/_par/fespacehierarchy.i +++ b/mfem/_par/fespacehierarchy.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// /* fespacehierarchy.i diff --git a/mfem/_par/geom.i b/mfem/_par/geom.i index 38768827..73f0ef56 100644 --- a/mfem/_par/geom.i +++ b/mfem/_par/geom.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") geom %{ #include "mfem.hpp" diff --git a/mfem/_par/globals.i b/mfem/_par/globals.i index b922462b..bdb775ef 100644 --- a/mfem/_par/globals.i +++ b/mfem/_par/globals.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") globals %{ #include "mfem.hpp" diff --git a/mfem/_par/gridfunc.i b/mfem/_par/gridfunc.i index 7066dfc0..e3c4598e 100644 --- a/mfem/_par/gridfunc.i +++ b/mfem/_par/gridfunc.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par", directors="0") gridfunc %{ #include diff --git a/mfem/_par/gslib.i b/mfem/_par/gslib.i index 72efde7f..d4851483 100644 --- a/mfem/_par/gslib.i +++ b/mfem/_par/gslib.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") gslib %{ #include "mfem.hpp" diff --git a/mfem/_par/handle.i b/mfem/_par/handle.i index 2a863553..711e98ef 100644 --- a/mfem/_par/handle.i +++ b/mfem/_par/handle.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") handle %feature("autodoc", "1"); %{ diff --git a/mfem/_par/hash.i b/mfem/_par/hash.i index 154bc794..d98a37d4 100644 --- a/mfem/_par/hash.i +++ b/mfem/_par/hash.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") hash %{ diff --git a/mfem/_par/hexahedron.i b/mfem/_par/hexahedron.i index 6796766a..d4c34c68 100644 --- a/mfem/_par/hexahedron.i +++ b/mfem/_par/hexahedron.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") hexahedron %{ #include "mfem.hpp" diff --git a/mfem/_par/hybridization.i b/mfem/_par/hybridization.i index addf12e2..05c13981 100644 --- a/mfem/_par/hybridization.i +++ b/mfem/_par/hybridization.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") hybridization %{ #include "mfem.hpp" diff --git a/mfem/_par/hyperbolic.i b/mfem/_par/hyperbolic.i index c71660cd..464d68ba 100644 --- a/mfem/_par/hyperbolic.i +++ b/mfem/_par/hyperbolic.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") hyperbolic %feature("autodoc", "1"); diff --git a/mfem/_par/hypre.i b/mfem/_par/hypre.i index 805932dd..63f5dd3c 100644 --- a/mfem/_par/hypre.i +++ b/mfem/_par/hypre.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") hypre %feature("autodoc", "1"); %{ diff --git a/mfem/_par/intrules.i b/mfem/_par/intrules.i index 709f1f86..26b82d15 100644 --- a/mfem/_par/intrules.i +++ b/mfem/_par/intrules.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module (package="mfem._par") intrules %{ diff --git a/mfem/_par/intrules_cut.i b/mfem/_par/intrules_cut.i index 57ae12e4..3e620b7e 100644 --- a/mfem/_par/intrules_cut.i +++ b/mfem/_par/intrules_cut.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module (package="mfem._par", director="1") intrules_cut %{ diff --git a/mfem/_par/io_stream.i b/mfem/_par/io_stream.i index ee11c64c..36fb6ff3 100644 --- a/mfem/_par/io_stream.i +++ b/mfem/_par/io_stream.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") io_stream %feature("autodoc", "1"); diff --git a/mfem/_par/istream_typemap.i b/mfem/_par/istream_typemap.i index cb2b68b5..dfd7c635 100644 --- a/mfem/_par/istream_typemap.i +++ b/mfem/_par/istream_typemap.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") istream_typemap //recipe for istream diff --git a/mfem/_par/linearform.i b/mfem/_par/linearform.i index 3addabcb..49052502 100644 --- a/mfem/_par/linearform.i +++ b/mfem/_par/linearform.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par", directors="1") linearform %{ #include diff --git a/mfem/_par/lininteg.i b/mfem/_par/lininteg.i index 6a772e4c..b543d00f 100644 --- a/mfem/_par/lininteg.i +++ b/mfem/_par/lininteg.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par", directors="1") lininteg %{ #include diff --git a/mfem/_par/matrix.i b/mfem/_par/matrix.i index 56b2871c..78b53005 100644 --- a/mfem/_par/matrix.i +++ b/mfem/_par/matrix.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") matrix %feature("autodoc", "1"); diff --git a/mfem/_par/mem_manager.i b/mfem/_par/mem_manager.i index d6538d00..8f44a0df 100644 --- a/mfem/_par/mem_manager.i +++ b/mfem/_par/mem_manager.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") mem_manager %{ #include "mfem.hpp" diff --git a/mfem/_par/mesh.i b/mfem/_par/mesh.i index 76d18b88..7d881aa6 100644 --- a/mfem/_par/mesh.i +++ b/mfem/_par/mesh.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") mesh %{ diff --git a/mfem/_par/mesh_operators.i b/mfem/_par/mesh_operators.i index 2ca72b04..723e416a 100644 --- a/mfem/_par/mesh_operators.i +++ b/mfem/_par/mesh_operators.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") mesh_operators %{ diff --git a/mfem/_par/multigrid.i b/mfem/_par/multigrid.i index 0e75a0b0..3fdb8225 100644 --- a/mfem/_par/multigrid.i +++ b/mfem/_par/multigrid.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// /* multigrid.i diff --git a/mfem/_par/navier_solver.i b/mfem/_par/navier_solver.i index 28dc8eeb..2f06b0bc 100644 --- a/mfem/_par/navier_solver.i +++ b/mfem/_par/navier_solver.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") navier_solver %{ #include "mfem.hpp" diff --git a/mfem/_par/ncmesh.i b/mfem/_par/ncmesh.i index d43135fe..a302533d 100644 --- a/mfem/_par/ncmesh.i +++ b/mfem/_par/ncmesh.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") ncmesh %feature("autodoc", "1"); diff --git a/mfem/_par/nonlinearform.i b/mfem/_par/nonlinearform.i index 1f6f4f73..c16e4492 100644 --- a/mfem/_par/nonlinearform.i +++ b/mfem/_par/nonlinearform.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") nonlinearform %{ #include diff --git a/mfem/_par/nonlininteg.i b/mfem/_par/nonlininteg.i index 240cbbd6..b553400b 100644 --- a/mfem/_par/nonlininteg.i +++ b/mfem/_par/nonlininteg.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par", directors="1") nonlininteg %{ #include "mfem.hpp" diff --git a/mfem/_par/ode.i b/mfem/_par/ode.i index 33538fc7..05fc9842 100644 --- a/mfem/_par/ode.i +++ b/mfem/_par/ode.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") ode %{ #include "mfem.hpp" diff --git a/mfem/_par/operators.i b/mfem/_par/operators.i index 59678351..05685862 100644 --- a/mfem/_par/operators.i +++ b/mfem/_par/operators.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module (package="mfem._par", directors="1") operators %feature("autodoc", "1"); diff --git a/mfem/_par/ostream_typemap.i b/mfem/_par/ostream_typemap.i index fdd7940c..4dc64c2e 100644 --- a/mfem/_par/ostream_typemap.i +++ b/mfem/_par/ostream_typemap.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") ostream_typemap // recipe for ostream diff --git a/mfem/_par/pbilinearform.i b/mfem/_par/pbilinearform.i index 191f0b9e..7c1bae79 100644 --- a/mfem/_par/pbilinearform.i +++ b/mfem/_par/pbilinearform.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") pbilinearform %{ //#include diff --git a/mfem/_par/pfespace.i b/mfem/_par/pfespace.i index b3a1331c..3f4b8d6c 100644 --- a/mfem/_par/pfespace.i +++ b/mfem/_par/pfespace.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") pfespace %{ #include diff --git a/mfem/_par/pgridfunc.i b/mfem/_par/pgridfunc.i index c55ad8ed..0a96046a 100644 --- a/mfem/_par/pgridfunc.i +++ b/mfem/_par/pgridfunc.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") pgridfunc %feature("autodoc", "1"); diff --git a/mfem/_par/plinearform.i b/mfem/_par/plinearform.i index 4f50dfff..428eb6db 100644 --- a/mfem/_par/plinearform.i +++ b/mfem/_par/plinearform.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") plinearform %{ #include "mfem.hpp" diff --git a/mfem/_par/pmesh.i b/mfem/_par/pmesh.i index b7b6cf7a..7b381ed2 100644 --- a/mfem/_par/pmesh.i +++ b/mfem/_par/pmesh.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") pmesh %feature("autodoc", "1"); diff --git a/mfem/_par/pncmesh.i b/mfem/_par/pncmesh.i index a8886915..6850266e 100644 --- a/mfem/_par/pncmesh.i +++ b/mfem/_par/pncmesh.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") pncmesh %feature("autodoc", "1"); diff --git a/mfem/_par/pnonlinearform.i b/mfem/_par/pnonlinearform.i index c0db54ec..e142b2d8 100644 --- a/mfem/_par/pnonlinearform.i +++ b/mfem/_par/pnonlinearform.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") pnonlinearform %{ #include diff --git a/mfem/_par/point.i b/mfem/_par/point.i index 26aca69b..9df4585d 100644 --- a/mfem/_par/point.i +++ b/mfem/_par/point.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") point %feature("autodoc", "1"); diff --git a/mfem/_par/prestriction.i b/mfem/_par/prestriction.i index 959f2aed..315d26d7 100644 --- a/mfem/_par/prestriction.i +++ b/mfem/_par/prestriction.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") prestriction %{ #include "mfem.hpp" diff --git a/mfem/_par/psubmesh.i b/mfem/_par/psubmesh.i index 440766b1..6f85db5c 100644 --- a/mfem/_par/psubmesh.i +++ b/mfem/_par/psubmesh.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") psubmesh %feature("autodoc", "1"); diff --git a/mfem/_par/ptransfermap.i b/mfem/_par/ptransfermap.i index 491b5fcf..f6ab6d76 100644 --- a/mfem/_par/ptransfermap.i +++ b/mfem/_par/ptransfermap.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") ptransfermap %feature("autodoc", "1"); diff --git a/mfem/_par/pumi.i b/mfem/_par/pumi.i index 97210663..14c7e56e 100644 --- a/mfem/_par/pumi.i +++ b/mfem/_par/pumi.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par", directors="0") pumi %feature("autodoc", "1"); diff --git a/mfem/_par/qfunction.i b/mfem/_par/qfunction.i index e7fec570..5db5ada9 100644 --- a/mfem/_par/qfunction.i +++ b/mfem/_par/qfunction.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") qfunction %{ #include "mfem.hpp" diff --git a/mfem/_par/qspace.i b/mfem/_par/qspace.i index 1de6a752..786abc6f 100644 --- a/mfem/_par/qspace.i +++ b/mfem/_par/qspace.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") qspace %{ #include "mfem.hpp" diff --git a/mfem/_par/quadinterpolator.i b/mfem/_par/quadinterpolator.i index 650bd395..27f3d598 100644 --- a/mfem/_par/quadinterpolator.i +++ b/mfem/_par/quadinterpolator.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") quadinterpolator %{ #include "mfem.hpp" diff --git a/mfem/_par/quadinterpolator_face.i b/mfem/_par/quadinterpolator_face.i index 435c4d9d..d3f110be 100644 --- a/mfem/_par/quadinterpolator_face.i +++ b/mfem/_par/quadinterpolator_face.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") quadinterpolator_face %{ #include "mfem.hpp" diff --git a/mfem/_par/quadrilateral.i b/mfem/_par/quadrilateral.i index 93b1f7df..eb709289 100644 --- a/mfem/_par/quadrilateral.i +++ b/mfem/_par/quadrilateral.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") quadrilateral %{ #include "mfem.hpp" diff --git a/mfem/_par/restriction.i b/mfem/_par/restriction.i index 3649a3e2..3c629fa2 100644 --- a/mfem/_par/restriction.i +++ b/mfem/_par/restriction.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") restriction %{ #include "mfem.hpp" diff --git a/mfem/_par/schwarz.i b/mfem/_par/schwarz.i index e1ac028f..e9a03392 100644 --- a/mfem/_par/schwarz.i +++ b/mfem/_par/schwarz.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") schwarz %{ #include "mfem.hpp" diff --git a/mfem/_par/segment.i b/mfem/_par/segment.i index f57d0223..df4c3c0a 100644 --- a/mfem/_par/segment.i +++ b/mfem/_par/segment.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") segment %{ #include "mfem.hpp" diff --git a/mfem/_par/sets.i b/mfem/_par/sets.i index a9199219..539ba031 100644 --- a/mfem/_par/sets.i +++ b/mfem/_par/sets.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") sets %{ #include diff --git a/mfem/_par/sidredatacollection.i b/mfem/_par/sidredatacollection.i index 98d39223..4fb6546d 100644 --- a/mfem/_par/sidredatacollection.i +++ b/mfem/_par/sidredatacollection.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") sidredatacollection %{ #include "mfem.hpp" diff --git a/mfem/_par/socketstream.i b/mfem/_par/socketstream.i index b4a555f5..b7cc6f39 100644 --- a/mfem/_par/socketstream.i +++ b/mfem/_par/socketstream.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") socketstream %feature("autodoc", "1"); diff --git a/mfem/_par/solvers.i b/mfem/_par/solvers.i index 027fc601..4f49e513 100644 --- a/mfem/_par/solvers.i +++ b/mfem/_par/solvers.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par", directors="1") solvers %{ #include diff --git a/mfem/_par/sort_pairs.i b/mfem/_par/sort_pairs.i index 72f30c89..0b51659b 100644 --- a/mfem/_par/sort_pairs.i +++ b/mfem/_par/sort_pairs.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") sort_pairs %{ #include "mfem.hpp" diff --git a/mfem/_par/sparsemat.i b/mfem/_par/sparsemat.i index 1a5c97f7..ade10750 100644 --- a/mfem/_par/sparsemat.i +++ b/mfem/_par/sparsemat.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module (package="mfem._par") sparsemat %{ diff --git a/mfem/_par/sparsesmoothers.i b/mfem/_par/sparsesmoothers.i index 40c71fda..1b6c9266 100644 --- a/mfem/_par/sparsesmoothers.i +++ b/mfem/_par/sparsesmoothers.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") sparsesmoothers %{ #include "linalg/sparsesmoothers.hpp" diff --git a/mfem/_par/stable3d.i b/mfem/_par/stable3d.i index b45783a0..db3e3e38 100644 --- a/mfem/_par/stable3d.i +++ b/mfem/_par/stable3d.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") stable3d %feature("autodoc", "1"); diff --git a/mfem/_par/staticcond.i b/mfem/_par/staticcond.i index ea2e5133..143f4952 100644 --- a/mfem/_par/staticcond.i +++ b/mfem/_par/staticcond.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") staticcond %{ #include "mfem.hpp" diff --git a/mfem/_par/std_vectors.i b/mfem/_par/std_vectors.i index 27243250..33e48ad9 100644 --- a/mfem/_par/std_vectors.i +++ b/mfem/_par/std_vectors.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") std_vectors // // std_vectors : diff --git a/mfem/_par/strumpack.i b/mfem/_par/strumpack.i index 32dfd121..f7312aef 100644 --- a/mfem/_par/strumpack.i +++ b/mfem/_par/strumpack.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par", directors="0") strumpack %feature("autodoc", "1"); diff --git a/mfem/_par/submesh.i b/mfem/_par/submesh.i index a26ad6a0..916e11a2 100644 --- a/mfem/_par/submesh.i +++ b/mfem/_par/submesh.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") submesh %feature("autodoc", "1"); diff --git a/mfem/_par/symmat.i b/mfem/_par/symmat.i index 2a56ebe2..5fe59ff3 100644 --- a/mfem/_par/symmat.i +++ b/mfem/_par/symmat.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") symmat %{ #include "mfem.hpp" diff --git a/mfem/_par/table.i b/mfem/_par/table.i index 6934db04..98c08f09 100644 --- a/mfem/_par/table.i +++ b/mfem/_par/table.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") table %feature("autodoc", "1"); diff --git a/mfem/_par/tetrahedron.i b/mfem/_par/tetrahedron.i index 7ca08dbf..a337d6b9 100644 --- a/mfem/_par/tetrahedron.i +++ b/mfem/_par/tetrahedron.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") tetrahedron %{ #include "mfem.hpp" diff --git a/mfem/_par/tmop.i b/mfem/_par/tmop.i index a657c705..276fd19c 100644 --- a/mfem/_par/tmop.i +++ b/mfem/_par/tmop.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par", directors="1") tmop %{ #include "mfem.hpp" diff --git a/mfem/_par/tmop_amr.i b/mfem/_par/tmop_amr.i index 6cfb05a8..5da523c1 100644 --- a/mfem/_par/tmop_amr.i +++ b/mfem/_par/tmop_amr.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par", directors="1") tmop_amr %{ #include "mfem.hpp" diff --git a/mfem/_par/tmop_tools.i b/mfem/_par/tmop_tools.i index b07d76d3..ced83e0b 100644 --- a/mfem/_par/tmop_tools.i +++ b/mfem/_par/tmop_tools.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par", directors="1") tmop_tools %{ #include "mfem.hpp" diff --git a/mfem/_par/transfer.i b/mfem/_par/transfer.i index 95242256..e45d22c6 100644 --- a/mfem/_par/transfer.i +++ b/mfem/_par/transfer.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") transfer %feature("autodoc", "1"); diff --git a/mfem/_par/transfermap.i b/mfem/_par/transfermap.i index abec9bdf..15d85b6c 100644 --- a/mfem/_par/transfermap.i +++ b/mfem/_par/transfermap.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") transfermap %feature("autodoc", "1"); diff --git a/mfem/_par/triangle.i b/mfem/_par/triangle.i index 76d548c7..e2796a62 100644 --- a/mfem/_par/triangle.i +++ b/mfem/_par/triangle.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") triangle %{ #include "mfem.hpp" diff --git a/mfem/_par/vector.i b/mfem/_par/vector.i index 62808ccf..5b847843 100644 --- a/mfem/_par/vector.i +++ b/mfem/_par/vector.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// /* vector.i diff --git a/mfem/_par/vertex.i b/mfem/_par/vertex.i index 3906e1cc..12a28960 100644 --- a/mfem/_par/vertex.i +++ b/mfem/_par/vertex.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") vertex %{ diff --git a/mfem/_par/vtk.i b/mfem/_par/vtk.i index a7a190af..2f2dbea5 100644 --- a/mfem/_par/vtk.i +++ b/mfem/_par/vtk.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") vtk %{ #include "mfem.hpp" diff --git a/mfem/_par/wedge.i b/mfem/_par/wedge.i index f2248f32..c498d77c 100644 --- a/mfem/_par/wedge.i +++ b/mfem/_par/wedge.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._par") wedge %{ diff --git a/mfem/_ser/array.i b/mfem/_ser/array.i index 64bf6f4c..72a95ae2 100644 --- a/mfem/_ser/array.i +++ b/mfem/_ser/array.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") array %feature("autodoc", "1"); diff --git a/mfem/_ser/arrays_by_name.i b/mfem/_ser/arrays_by_name.i index 0ba9c95d..a6b7b7d2 100644 --- a/mfem/_ser/arrays_by_name.i +++ b/mfem/_ser/arrays_by_name.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") arrays_by_name %{ #include "mfem.hpp" diff --git a/mfem/_ser/attribute_sets.i b/mfem/_ser/attribute_sets.i index b9fd738f..5ce5e479 100644 --- a/mfem/_ser/attribute_sets.i +++ b/mfem/_ser/attribute_sets.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") attribute_sets %feature("autodoc", "1"); diff --git a/mfem/_ser/bilinearform.i b/mfem/_ser/bilinearform.i index d30da958..4ce85339 100644 --- a/mfem/_ser/bilinearform.i +++ b/mfem/_ser/bilinearform.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser", directors="1") bilinearform %{ #include "fem/bilinearform.hpp" diff --git a/mfem/_ser/bilininteg.i b/mfem/_ser/bilininteg.i index 8d549a2a..a56f4b3a 100644 --- a/mfem/_ser/bilininteg.i +++ b/mfem/_ser/bilininteg.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser", directors="1") bilininteg %{ #include "mfem.hpp" diff --git a/mfem/_ser/blockmatrix.i b/mfem/_ser/blockmatrix.i index e7518687..14c10fc9 100644 --- a/mfem/_ser/blockmatrix.i +++ b/mfem/_ser/blockmatrix.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") blockmatrix %{ diff --git a/mfem/_ser/blockoperator.i b/mfem/_ser/blockoperator.i index 53ba7c1f..ffe0aa18 100644 --- a/mfem/_ser/blockoperator.i +++ b/mfem/_ser/blockoperator.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") blockoperator %{ diff --git a/mfem/_ser/blockvector.i b/mfem/_ser/blockvector.i index b21c2524..8824ede8 100644 --- a/mfem/_ser/blockvector.i +++ b/mfem/_ser/blockvector.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") blockvector %{ diff --git a/mfem/_ser/bounds.i b/mfem/_ser/bounds.i index 1ced9442..4558b7b5 100644 --- a/mfem/_ser/bounds.i +++ b/mfem/_ser/bounds.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") bounds %{ diff --git a/mfem/_ser/coefficient.i b/mfem/_ser/coefficient.i index f208929a..202ad28e 100644 --- a/mfem/_ser/coefficient.i +++ b/mfem/_ser/coefficient.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// /* coefficient.i SWIG interface file for coefficient.hpp diff --git a/mfem/_ser/common_functions.i b/mfem/_ser/common_functions.i index 978d5dac..a8e21efd 100644 --- a/mfem/_ser/common_functions.i +++ b/mfem/_ser/common_functions.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") common_functions %{ diff --git a/mfem/_ser/complex_densemat.i b/mfem/_ser/complex_densemat.i index 84a1a61a..1a7e9432 100644 --- a/mfem/_ser/complex_densemat.i +++ b/mfem/_ser/complex_densemat.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") complex_densemat %{ #include "mfem.hpp" diff --git a/mfem/_ser/complex_fem.i b/mfem/_ser/complex_fem.i index 97e7596f..0261f161 100644 --- a/mfem/_ser/complex_fem.i +++ b/mfem/_ser/complex_fem.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// /* complex_fem.i diff --git a/mfem/_ser/complex_operator.i b/mfem/_ser/complex_operator.i index 9f60b0d4..5b9b7dfb 100644 --- a/mfem/_ser/complex_operator.i +++ b/mfem/_ser/complex_operator.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// /* complex_operator.i diff --git a/mfem/_ser/complexstaticcond.i b/mfem/_ser/complexstaticcond.i index bf3f61ff..f9025a79 100644 --- a/mfem/_ser/complexstaticcond.i +++ b/mfem/_ser/complexstaticcond.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") complexstaticcond %{ #include "mfem.hpp" diff --git a/mfem/_ser/complexweakform.i b/mfem/_ser/complexweakform.i index 632c0eab..e2ee6c90 100644 --- a/mfem/_ser/complexweakform.i +++ b/mfem/_ser/complexweakform.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") complexweakform %{ #include "mfem.hpp" diff --git a/mfem/_ser/constraints.i b/mfem/_ser/constraints.i index db263464..5fc16743 100644 --- a/mfem/_ser/constraints.i +++ b/mfem/_ser/constraints.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// /* constraints.i diff --git a/mfem/_ser/cpointers.i b/mfem/_ser/cpointers.i index 1434aaa9..60ae623d 100644 --- a/mfem/_ser/cpointers.i +++ b/mfem/_ser/cpointers.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") cpointers %include "../common/cpointers.i" diff --git a/mfem/_ser/datacollection.i b/mfem/_ser/datacollection.i index 8033ea59..4e2e2727 100644 --- a/mfem/_ser/datacollection.i +++ b/mfem/_ser/datacollection.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") datacollection %{ #include "mfem.hpp" diff --git a/mfem/_ser/densemat.i b/mfem/_ser/densemat.i index 721ea204..d2279e3d 100644 --- a/mfem/_ser/densemat.i +++ b/mfem/_ser/densemat.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// /* densemat.i diff --git a/mfem/_ser/device.i b/mfem/_ser/device.i index e1ab5d5d..c718b901 100644 --- a/mfem/_ser/device.i +++ b/mfem/_ser/device.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") device %{ #include "mfem.hpp" diff --git a/mfem/_ser/doftrans.i b/mfem/_ser/doftrans.i index 485f6726..8537e884 100644 --- a/mfem/_ser/doftrans.i +++ b/mfem/_ser/doftrans.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") doftrans %{ #include "mfem.hpp" diff --git a/mfem/_ser/element.i b/mfem/_ser/element.i index 19c517b9..34174d7b 100644 --- a/mfem/_ser/element.i +++ b/mfem/_ser/element.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") element %{ diff --git a/mfem/_ser/eltrans.i b/mfem/_ser/eltrans.i index 9e6aea8b..f79a4605 100644 --- a/mfem/_ser/eltrans.i +++ b/mfem/_ser/eltrans.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module (package="mfem._ser") eltrans %{ diff --git a/mfem/_ser/enzyme.i b/mfem/_ser/enzyme.i index 28c07034..0b2d9cc9 100644 --- a/mfem/_ser/enzyme.i +++ b/mfem/_ser/enzyme.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") enzyme %{ #include "mfem.hpp" diff --git a/mfem/_ser/error.i b/mfem/_ser/error.i index ff150910..82190d47 100644 --- a/mfem/_ser/error.i +++ b/mfem/_ser/error.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") error %{ #include diff --git a/mfem/_ser/estimators.i b/mfem/_ser/estimators.i index 77136c9e..ec4d2f49 100644 --- a/mfem/_ser/estimators.i +++ b/mfem/_ser/estimators.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") estimators %{ diff --git a/mfem/_ser/fe.i b/mfem/_ser/fe.i index 6b933a85..8e3bbc49 100644 --- a/mfem/_ser/fe.i +++ b/mfem/_ser/fe.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") fe %{ diff --git a/mfem/_ser/fe_base.i b/mfem/_ser/fe_base.i index 1d380045..f7fd343b 100644 --- a/mfem/_ser/fe_base.i +++ b/mfem/_ser/fe_base.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") fe_base %{ #include "mfem.hpp" diff --git a/mfem/_ser/fe_coll.i b/mfem/_ser/fe_coll.i index 6d379fcc..fd4f02a2 100644 --- a/mfem/_ser/fe_coll.i +++ b/mfem/_ser/fe_coll.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") fe_coll %{ #include diff --git a/mfem/_ser/fe_fixed_order.i b/mfem/_ser/fe_fixed_order.i index c469efc3..f222c953 100644 --- a/mfem/_ser/fe_fixed_order.i +++ b/mfem/_ser/fe_fixed_order.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") fe_fixed_order %{ #include "mfem.hpp" diff --git a/mfem/_ser/fe_h1.i b/mfem/_ser/fe_h1.i index eee8acf8..a383faa7 100644 --- a/mfem/_ser/fe_h1.i +++ b/mfem/_ser/fe_h1.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") fe_h1 %{ #include "mfem.hpp" diff --git a/mfem/_ser/fe_l2.i b/mfem/_ser/fe_l2.i index 91da2b74..4e6878d7 100644 --- a/mfem/_ser/fe_l2.i +++ b/mfem/_ser/fe_l2.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") fe_l2 %{ #include "mfem.hpp" diff --git a/mfem/_ser/fe_nd.i b/mfem/_ser/fe_nd.i index 80d9bbd2..488c12aa 100644 --- a/mfem/_ser/fe_nd.i +++ b/mfem/_ser/fe_nd.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") fe_nd %{ #include "mfem.hpp" diff --git a/mfem/_ser/fe_nurbs.i b/mfem/_ser/fe_nurbs.i index 81f6b2b1..4b0469fe 100644 --- a/mfem/_ser/fe_nurbs.i +++ b/mfem/_ser/fe_nurbs.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") fe_nurbs %{ #include "mfem.hpp" diff --git a/mfem/_ser/fe_pos.i b/mfem/_ser/fe_pos.i index af957809..54e6ba4d 100644 --- a/mfem/_ser/fe_pos.i +++ b/mfem/_ser/fe_pos.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") fe_pos %{ #include "mfem.hpp" diff --git a/mfem/_ser/fe_rt.i b/mfem/_ser/fe_rt.i index 0bcd8be4..9ed034d8 100644 --- a/mfem/_ser/fe_rt.i +++ b/mfem/_ser/fe_rt.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") fe_rt %{ #include "mfem.hpp" diff --git a/mfem/_ser/fe_ser.i b/mfem/_ser/fe_ser.i index 90fe8869..4c8281d4 100644 --- a/mfem/_ser/fe_ser.i +++ b/mfem/_ser/fe_ser.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") fe_ser %{ #include "mfem.hpp" diff --git a/mfem/_ser/fespace.i b/mfem/_ser/fespace.i index fd26643b..adef3e32 100644 --- a/mfem/_ser/fespace.i +++ b/mfem/_ser/fespace.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") fespace %feature("autodoc", "1"); %{ diff --git a/mfem/_ser/fespacehierarchy.i b/mfem/_ser/fespacehierarchy.i index 9ef32592..b913656d 100644 --- a/mfem/_ser/fespacehierarchy.i +++ b/mfem/_ser/fespacehierarchy.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// /* fespacehierarchy.i diff --git a/mfem/_ser/geom.i b/mfem/_ser/geom.i index dca63f12..2c8ac12c 100644 --- a/mfem/_ser/geom.i +++ b/mfem/_ser/geom.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") geom %{ #include "mfem.hpp" diff --git a/mfem/_ser/globals.i b/mfem/_ser/globals.i index 526ca8d7..1a70b200 100644 --- a/mfem/_ser/globals.i +++ b/mfem/_ser/globals.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") globals %{ #include "mfem.hpp" diff --git a/mfem/_ser/gridfunc.i b/mfem/_ser/gridfunc.i index 3cd168ae..8bf80119 100644 --- a/mfem/_ser/gridfunc.i +++ b/mfem/_ser/gridfunc.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser", directors="0") gridfunc %feature("autodoc", "1"); diff --git a/mfem/_ser/gslib.i b/mfem/_ser/gslib.i index da079466..37337f20 100644 --- a/mfem/_ser/gslib.i +++ b/mfem/_ser/gslib.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") gslib %{ #include "mfem.hpp" diff --git a/mfem/_ser/handle.i b/mfem/_ser/handle.i index 7471aea4..63a97ff0 100644 --- a/mfem/_ser/handle.i +++ b/mfem/_ser/handle.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") handle %feature("autodoc", "1"); %{ diff --git a/mfem/_ser/hash.i b/mfem/_ser/hash.i index 8806eced..ab33e33a 100644 --- a/mfem/_ser/hash.i +++ b/mfem/_ser/hash.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") hash %{ diff --git a/mfem/_ser/hexahedron.i b/mfem/_ser/hexahedron.i index 6c9118a9..68abb699 100644 --- a/mfem/_ser/hexahedron.i +++ b/mfem/_ser/hexahedron.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") hexahedron %{ diff --git a/mfem/_ser/hybridization.i b/mfem/_ser/hybridization.i index 91f6dd87..158b8135 100644 --- a/mfem/_ser/hybridization.i +++ b/mfem/_ser/hybridization.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") hybridization %{ #include "mfem.hpp" diff --git a/mfem/_ser/hyperbolic.i b/mfem/_ser/hyperbolic.i index b0d919ef..c6ae0f6d 100644 --- a/mfem/_ser/hyperbolic.i +++ b/mfem/_ser/hyperbolic.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") hyperbolic %feature("autodoc", "1"); diff --git a/mfem/_ser/intrules.i b/mfem/_ser/intrules.i index c8fcc4be..b0d144ba 100644 --- a/mfem/_ser/intrules.i +++ b/mfem/_ser/intrules.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module (package="mfem._ser") intrules %{ diff --git a/mfem/_ser/intrules_cut.i b/mfem/_ser/intrules_cut.i index 2a29d9fc..2e695572 100644 --- a/mfem/_ser/intrules_cut.i +++ b/mfem/_ser/intrules_cut.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module (package="mfem._ser", director="1") intrules_cut %{ diff --git a/mfem/_ser/io_stream.i b/mfem/_ser/io_stream.i index 5c455625..4dbec803 100644 --- a/mfem/_ser/io_stream.i +++ b/mfem/_ser/io_stream.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") io_stream %feature("autodoc", "1"); diff --git a/mfem/_ser/istream_typemap.i b/mfem/_ser/istream_typemap.i index 6582ca41..2484fda7 100644 --- a/mfem/_ser/istream_typemap.i +++ b/mfem/_ser/istream_typemap.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") istream_typemap //recipe for istream diff --git a/mfem/_ser/linearform.i b/mfem/_ser/linearform.i index 53be6127..4d714368 100644 --- a/mfem/_ser/linearform.i +++ b/mfem/_ser/linearform.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser", directors="1") linearform %{ #include diff --git a/mfem/_ser/lininteg.i b/mfem/_ser/lininteg.i index 428d0e6c..db26f761 100644 --- a/mfem/_ser/lininteg.i +++ b/mfem/_ser/lininteg.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser", directors="1") lininteg %{ #include diff --git a/mfem/_ser/matrix.i b/mfem/_ser/matrix.i index 37834f74..a9157543 100644 --- a/mfem/_ser/matrix.i +++ b/mfem/_ser/matrix.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") matrix %feature("autodoc", "1"); diff --git a/mfem/_ser/mem_manager.i b/mfem/_ser/mem_manager.i index d9130ac9..d3a12785 100644 --- a/mfem/_ser/mem_manager.i +++ b/mfem/_ser/mem_manager.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") mem_manager %{ #include "mfem.hpp" diff --git a/mfem/_ser/mesh.i b/mfem/_ser/mesh.i index 9005f012..481da0a8 100644 --- a/mfem/_ser/mesh.i +++ b/mfem/_ser/mesh.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser", directors="0") mesh %{ diff --git a/mfem/_ser/mesh_operators.i b/mfem/_ser/mesh_operators.i index 3476458e..b7f47cb3 100644 --- a/mfem/_ser/mesh_operators.i +++ b/mfem/_ser/mesh_operators.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") mesh_operators %{ diff --git a/mfem/_ser/multigrid.i b/mfem/_ser/multigrid.i index da9d6e38..27cd592d 100644 --- a/mfem/_ser/multigrid.i +++ b/mfem/_ser/multigrid.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// /* multigrid.i diff --git a/mfem/_ser/ncmesh.i b/mfem/_ser/ncmesh.i index fd6158c9..e40db05b 100644 --- a/mfem/_ser/ncmesh.i +++ b/mfem/_ser/ncmesh.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") ncmesh %feature("autodoc", "1"); diff --git a/mfem/_ser/nonlinearform.i b/mfem/_ser/nonlinearform.i index 8bb38a7a..a0833bab 100644 --- a/mfem/_ser/nonlinearform.i +++ b/mfem/_ser/nonlinearform.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") nonlinearform %{ #include "mfem.hpp" diff --git a/mfem/_ser/nonlininteg.i b/mfem/_ser/nonlininteg.i index 25a531df..e7a2d90b 100644 --- a/mfem/_ser/nonlininteg.i +++ b/mfem/_ser/nonlininteg.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser", directors="1") nonlininteg %{ #include "mfem.hpp" diff --git a/mfem/_ser/ode.i b/mfem/_ser/ode.i index d1802f30..16b3ab1b 100644 --- a/mfem/_ser/ode.i +++ b/mfem/_ser/ode.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") ode %{ #include "mfem.hpp" diff --git a/mfem/_ser/operators.i b/mfem/_ser/operators.i index 7327220a..23321a7d 100644 --- a/mfem/_ser/operators.i +++ b/mfem/_ser/operators.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module (package="mfem._ser", directors="1") operators %feature("autodoc", "1"); diff --git a/mfem/_ser/ostream_typemap.i b/mfem/_ser/ostream_typemap.i index f8c35a30..50eeeca1 100644 --- a/mfem/_ser/ostream_typemap.i +++ b/mfem/_ser/ostream_typemap.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") ostream_typemap // recipe for ostream diff --git a/mfem/_ser/point.i b/mfem/_ser/point.i index 9608f066..cba07e00 100644 --- a/mfem/_ser/point.i +++ b/mfem/_ser/point.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") point %feature("autodoc", "1"); diff --git a/mfem/_ser/qfunction.i b/mfem/_ser/qfunction.i index 7e9fbef7..d910cec8 100644 --- a/mfem/_ser/qfunction.i +++ b/mfem/_ser/qfunction.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") qfunction %{ #include "mfem.hpp" diff --git a/mfem/_ser/qspace.i b/mfem/_ser/qspace.i index ef69d2b0..916a7869 100644 --- a/mfem/_ser/qspace.i +++ b/mfem/_ser/qspace.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") qspace %{ #include "mfem.hpp" diff --git a/mfem/_ser/quadinterpolator.i b/mfem/_ser/quadinterpolator.i index 48f79612..394b7a22 100644 --- a/mfem/_ser/quadinterpolator.i +++ b/mfem/_ser/quadinterpolator.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") quadinterpolator %{ #include "mfem.hpp" diff --git a/mfem/_ser/quadinterpolator_face.i b/mfem/_ser/quadinterpolator_face.i index c40d1ecb..21fe4bc5 100644 --- a/mfem/_ser/quadinterpolator_face.i +++ b/mfem/_ser/quadinterpolator_face.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") quadinterpolator_face %{ #include "mfem.hpp" diff --git a/mfem/_ser/quadrilateral.i b/mfem/_ser/quadrilateral.i index 667bef52..9c03c4fe 100644 --- a/mfem/_ser/quadrilateral.i +++ b/mfem/_ser/quadrilateral.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") quadrilateral %{ #include "mfem.hpp" diff --git a/mfem/_ser/restriction.i b/mfem/_ser/restriction.i index b8f2999c..0640bff3 100644 --- a/mfem/_ser/restriction.i +++ b/mfem/_ser/restriction.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") restriction %{ #include "mfem.hpp" diff --git a/mfem/_ser/segment.i b/mfem/_ser/segment.i index 900eed0a..dc066181 100644 --- a/mfem/_ser/segment.i +++ b/mfem/_ser/segment.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") segment %{ #include "mfem.hpp" diff --git a/mfem/_ser/sets.i b/mfem/_ser/sets.i index 9b69004a..5be10da2 100644 --- a/mfem/_ser/sets.i +++ b/mfem/_ser/sets.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") sets %{ #include "general/sets.hpp" diff --git a/mfem/_ser/sidredatacollection.i b/mfem/_ser/sidredatacollection.i index 9eedaef5..9eba18ff 100644 --- a/mfem/_ser/sidredatacollection.i +++ b/mfem/_ser/sidredatacollection.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") sidredatacollection %{ #include "mfem.hpp" diff --git a/mfem/_ser/socketstream.i b/mfem/_ser/socketstream.i index 2fc0e336..482edd8c 100644 --- a/mfem/_ser/socketstream.i +++ b/mfem/_ser/socketstream.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") socketstream %feature("autodoc", "1"); diff --git a/mfem/_ser/solvers.i b/mfem/_ser/solvers.i index 507bf94c..4e1625b4 100644 --- a/mfem/_ser/solvers.i +++ b/mfem/_ser/solvers.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser", directors="1") solvers %{ diff --git a/mfem/_ser/sort_pairs.i b/mfem/_ser/sort_pairs.i index a2c15f6d..80dad568 100644 --- a/mfem/_ser/sort_pairs.i +++ b/mfem/_ser/sort_pairs.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") sort_pairs %{ #include "mfem.hpp" diff --git a/mfem/_ser/sparsemat.i b/mfem/_ser/sparsemat.i index c80bb2cf..b0a93ee9 100644 --- a/mfem/_ser/sparsemat.i +++ b/mfem/_ser/sparsemat.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module (package="mfem._ser") sparsemat %{ #include diff --git a/mfem/_ser/sparsesmoothers.i b/mfem/_ser/sparsesmoothers.i index 0b9826aa..78939db1 100644 --- a/mfem/_ser/sparsesmoothers.i +++ b/mfem/_ser/sparsesmoothers.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") sparsesmoothers %{ #include "linalg/sparsesmoothers.hpp" diff --git a/mfem/_ser/stable3d.i b/mfem/_ser/stable3d.i index 522318e4..b49caa27 100644 --- a/mfem/_ser/stable3d.i +++ b/mfem/_ser/stable3d.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") stable3d %feature("autodoc", "1"); diff --git a/mfem/_ser/staticcond.i b/mfem/_ser/staticcond.i index 5f5efe18..323f0cff 100644 --- a/mfem/_ser/staticcond.i +++ b/mfem/_ser/staticcond.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") staticcond %{ #include "mfem.hpp" diff --git a/mfem/_ser/std_vectors.i b/mfem/_ser/std_vectors.i index ebb80685..8001b7db 100644 --- a/mfem/_ser/std_vectors.i +++ b/mfem/_ser/std_vectors.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") std_vectors // // std_vectors : diff --git a/mfem/_ser/submesh.i b/mfem/_ser/submesh.i index 152bb902..1985fcf9 100644 --- a/mfem/_ser/submesh.i +++ b/mfem/_ser/submesh.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") submesh %feature("autodoc", "1"); diff --git a/mfem/_ser/symmat.i b/mfem/_ser/symmat.i index cc793fac..5dab2ae0 100644 --- a/mfem/_ser/symmat.i +++ b/mfem/_ser/symmat.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") symmat %{ #include "mfem.hpp" diff --git a/mfem/_ser/table.i b/mfem/_ser/table.i index a984ee79..ac08a207 100644 --- a/mfem/_ser/table.i +++ b/mfem/_ser/table.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") table %feature("autodoc", "1"); diff --git a/mfem/_ser/tetrahedron.i b/mfem/_ser/tetrahedron.i index 7be00018..2f4604a7 100644 --- a/mfem/_ser/tetrahedron.i +++ b/mfem/_ser/tetrahedron.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") tetrahedron %{ #include "mfem.hpp" diff --git a/mfem/_ser/tmop.i b/mfem/_ser/tmop.i index 6d0152b9..940bfe9c 100644 --- a/mfem/_ser/tmop.i +++ b/mfem/_ser/tmop.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser", directors="1") tmop %{ #include "mfem.hpp" diff --git a/mfem/_ser/tmop_amr.i b/mfem/_ser/tmop_amr.i index 31094e31..cdf81d38 100644 --- a/mfem/_ser/tmop_amr.i +++ b/mfem/_ser/tmop_amr.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser", directors="1") tmop_amr %{ #include "mfem.hpp" diff --git a/mfem/_ser/tmop_tools.i b/mfem/_ser/tmop_tools.i index 3e4cf2e5..1f12b770 100644 --- a/mfem/_ser/tmop_tools.i +++ b/mfem/_ser/tmop_tools.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser", directors="1") tmop_tools %{ #include "mfem.hpp" diff --git a/mfem/_ser/transfer.i b/mfem/_ser/transfer.i index 10955b7e..04bcdd1b 100644 --- a/mfem/_ser/transfer.i +++ b/mfem/_ser/transfer.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") transfer %feature("autodoc", "1"); diff --git a/mfem/_ser/transfermap.i b/mfem/_ser/transfermap.i index acf0db6a..f29dccac 100644 --- a/mfem/_ser/transfermap.i +++ b/mfem/_ser/transfermap.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") transfermap %feature("autodoc", "1"); diff --git a/mfem/_ser/triangle.i b/mfem/_ser/triangle.i index 3259565f..1fe0fd93 100644 --- a/mfem/_ser/triangle.i +++ b/mfem/_ser/triangle.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") triangle %{ #include "mfem.hpp" diff --git a/mfem/_ser/vector.i b/mfem/_ser/vector.i index ec1a34a8..7a0ec5a8 100644 --- a/mfem/_ser/vector.i +++ b/mfem/_ser/vector.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// /* vector.i diff --git a/mfem/_ser/vertex.i b/mfem/_ser/vertex.i index 1653b1f9..dbe2d7b6 100644 --- a/mfem/_ser/vertex.i +++ b/mfem/_ser/vertex.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") vertex %{ diff --git a/mfem/_ser/vtk.i b/mfem/_ser/vtk.i index cfb66d56..0995f5ce 100644 --- a/mfem/_ser/vtk.i +++ b/mfem/_ser/vtk.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") vtk %{ #include "mfem.hpp" diff --git a/mfem/_ser/wedge.i b/mfem/_ser/wedge.i index 902c0611..9fb6c75a 100644 --- a/mfem/_ser/wedge.i +++ b/mfem/_ser/wedge.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %module(package="mfem._ser") wedge %{ diff --git a/mfem/common/array_instantiation_macro.i b/mfem/common/array_instantiation_macro.i index 0ebacb8a..f31288eb 100644 --- a/mfem/common/array_instantiation_macro.i +++ b/mfem/common/array_instantiation_macro.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %define INSTANTIATE_ARRAY2(XXX, YYY, ZZZ, USEPTR) #if USEPTR == 1 //%template(##ZZZ##Ptr##Array) mfem::Array; diff --git a/mfem/common/array_listtuple_typemap.i b/mfem/common/array_listtuple_typemap.i index 4bbda049..7e9b0f28 100644 --- a/mfem/common/array_listtuple_typemap.i +++ b/mfem/common/array_listtuple_typemap.i @@ -1,4 +1,7 @@ // +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// +// // this typemap is used together with %extend, which // adds a class member taking int *pymfem_size // diff --git a/mfem/common/bilininteg_ext.i b/mfem/common/bilininteg_ext.i index c6b093ce..a1ad7e45 100644 --- a/mfem/common/bilininteg_ext.i +++ b/mfem/common/bilininteg_ext.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// namespace mfem { %pythonappend BilinearFormIntegrator::BilinearFormIntegrator %{ self._coeff = args diff --git a/mfem/common/coefficient_common.i b/mfem/common/coefficient_common.i index 5a78d345..a77d0de7 100644 --- a/mfem/common/coefficient_common.i +++ b/mfem/common/coefficient_common.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// namespace mfem { %pythonappend PWCoefficient::PWCoefficient %{ if len(args) > 1: diff --git a/mfem/common/complex_fem_ext.i b/mfem/common/complex_fem_ext.i index 5008fde7..6d02406d 100644 --- a/mfem/common/complex_fem_ext.i +++ b/mfem/common/complex_fem_ext.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// namespace mfem { // serial %pythonappend ComplexLinearForm::AddDomainIntegrator %{ diff --git a/mfem/common/const_doubleptr_typemap.i b/mfem/common/const_doubleptr_typemap.i index 8853f2f4..ca1d1573 100644 --- a/mfem/common/const_doubleptr_typemap.i +++ b/mfem/common/const_doubleptr_typemap.i @@ -1,4 +1,7 @@ // +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// +// // const_doubleptr_typemap // // this typemap accept list/const */vector/numpy float array for double * (used in mesh.i) diff --git a/mfem/common/const_intptr_typemap.i b/mfem/common/const_intptr_typemap.i index b7b91184..4b1b7869 100644 --- a/mfem/common/const_intptr_typemap.i +++ b/mfem/common/const_intptr_typemap.i @@ -1,4 +1,7 @@ // +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// +// // const_intptr_typemap // // This typemap accept list/const */Array/numpy float array for int32 * (used in mesh.i) diff --git a/mfem/common/cpointers.i b/mfem/common/cpointers.i index 408732d5..644c38bd 100644 --- a/mfem/common/cpointers.i +++ b/mfem/common/cpointers.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %include "cpointer.i" %pointer_class(int, intp); %pointer_class(double, doublep); diff --git a/mfem/common/data_size_typemap.i b/mfem/common/data_size_typemap.i index adf51a7a..0b7d025c 100644 --- a/mfem/common/data_size_typemap.i +++ b/mfem/common/data_size_typemap.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// // Used in array.i // INTPTR_SIZE_IN(int *data_, int asize) // DOUBLEPTR_SIZE_IN(double *data_, int asize) diff --git a/mfem/common/deprecation.i b/mfem/common/deprecation.i index 036462d2..1b096f03 100644 --- a/mfem/common/deprecation.i +++ b/mfem/common/deprecation.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// // deprecate an overload method %define DEPRECATED_OVERLOADED_METHOD(method, message, condition) %feature("pythonprepend") method %{ diff --git a/mfem/common/enum_class.i b/mfem/common/enum_class.i index a98b2ec7..54161027 100644 --- a/mfem/common/enum_class.i +++ b/mfem/common/enum_class.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %define ENUM_CLASS_WRAP(P1, P2) %pythoncode %{ diff --git a/mfem/common/exception.i b/mfem/common/exception.i index 61e3ba12..76c1519e 100644 --- a/mfem/common/exception.i +++ b/mfem/common/exception.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %exception { try { $action diff --git a/mfem/common/exception_director.i b/mfem/common/exception_director.i index 5f480749..5d35b850 100644 --- a/mfem/common/exception_director.i +++ b/mfem/common/exception_director.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %exception { try { $action diff --git a/mfem/common/handle_template.i b/mfem/common/handle_template.i index da64b957..0c81704e 100644 --- a/mfem/common/handle_template.i +++ b/mfem/common/handle_template.i @@ -1,4 +1,7 @@ // +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// +// // AS_RENAME rename As -> AsHypreParMatrix // AS_WRAP instatiate As // diff --git a/mfem/common/hypre_int.i b/mfem/common/hypre_int.i index 72fb978c..7f9ad72b 100644 --- a/mfem/common/hypre_int.i +++ b/mfem/common/hypre_int.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %include "HYPRE_utilities.h" %inline %{ #if MFEM_HYPRE_VERSION < 21600 diff --git a/mfem/common/ignore_common_functions.i b/mfem/common/ignore_common_functions.i index b6ba69f7..d170f90b 100644 --- a/mfem/common/ignore_common_functions.i +++ b/mfem/common/ignore_common_functions.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %ignore mfem::Add; %ignore mfem::Mult; %ignore mfem::Transpose; diff --git a/mfem/common/io_stream_typemap.i b/mfem/common/io_stream_typemap.i index b2ce785a..83e9b2ba 100644 --- a/mfem/common/io_stream_typemap.i +++ b/mfem/common/io_stream_typemap.i @@ -1,4 +1,7 @@ // +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// +// // // ostream // diff --git a/mfem/common/kernel_dispatch.i b/mfem/common/kernel_dispatch.i index 20475486..0c5615de 100644 --- a/mfem/common/kernel_dispatch.i +++ b/mfem/common/kernel_dispatch.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// /* kernel_dispatch.i diff --git a/mfem/common/lininteg_ext.i b/mfem/common/lininteg_ext.i index ebd59a46..e083d5af 100644 --- a/mfem/common/lininteg_ext.i +++ b/mfem/common/lininteg_ext.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// namespace mfem { %pythonappend LinearFormIntegrator::LinearFormIntegrator %{ self._coeff = args diff --git a/mfem/common/memorytype_typemap.i b/mfem/common/memorytype_typemap.i index 224d5e84..52a3322f 100644 --- a/mfem/common/memorytype_typemap.i +++ b/mfem/common/memorytype_typemap.i @@ -1,4 +1,7 @@ // +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// +// // this typemap is used to replace MemoryType input // to mfem.MemoryType in Pythonl, which is a IntEnum class // diff --git a/mfem/common/mfem_config.i b/mfem/common/mfem_config.i index 21dd988c..2e9ccab3 100644 --- a/mfem/common/mfem_config.i +++ b/mfem/common/mfem_config.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// %ignore MFEM_GIT_STRING; %ignore MFEM_HYPRE_VERSION; %ignore MFEM_SOURCE_DIR; diff --git a/mfem/common/numba_coefficient.i b/mfem/common/numba_coefficient.i index 5687d3a6..c262a0a7 100644 --- a/mfem/common/numba_coefficient.i +++ b/mfem/common/numba_coefficient.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// /* # # USING numba JIT function for mfem::FunctionCoefficient diff --git a/mfem/common/numpy_int_typemap.i b/mfem/common/numpy_int_typemap.i index 50e49db9..5fb723c6 100644 --- a/mfem/common/numpy_int_typemap.i +++ b/mfem/common/numpy_int_typemap.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// // conversion of Int (can handle numpy int) %typemap(in) int { if ((PyArray_PyIntAsInt($input) == -1) && PyErr_Occurred()) { diff --git a/mfem/common/object_array_typemap.i b/mfem/common/object_array_typemap.i index af84ba50..7e8de31c 100644 --- a/mfem/common/object_array_typemap.i +++ b/mfem/common/object_array_typemap.i @@ -1,4 +1,7 @@ // +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// +// // Array< T > & -> Python list of T // // ObjectArrayInput(Solver*) diff --git a/mfem/common/operator_ptr_typemap.i b/mfem/common/operator_ptr_typemap.i index 70885555..3494357b 100644 --- a/mfem/common/operator_ptr_typemap.i +++ b/mfem/common/operator_ptr_typemap.i @@ -1,4 +1,7 @@ // +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// +// // allows to pass OperatorPtr to operator & // %typemap(in, noblock=1) mfem::Operator & (void *argp = 0, int res = 0) { diff --git a/mfem/common/typemap_macros.i b/mfem/common/typemap_macros.i index 2fb3090d..69bdaa67 100644 --- a/mfem/common/typemap_macros.i +++ b/mfem/common/typemap_macros.i @@ -1,3 +1,6 @@ +// +// Copyright (c) 2020-2025, Princeton Plasma Physics Laboratory, All rights reserved. +// // integer array output with known length (tuple) %define INTARRAY_OUT_TO_TUPLE(type_name, l) %typemap(out) type_name{