Skip to content

Commit 497b914

Browse files
authored
Merge pull request #198 from mfem/mfem_46_dev
minumum changes to build PyMFEM with MFEM4.6
2 parents ce1ba0b + 1765515 commit 497b914

File tree

6 files changed

+279
-238
lines changed

6 files changed

+279
-238
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,5 @@ Please refer the developers' web sites for the external libraries
139139
* MFEM: https://mfem.org/
140140
* Hypre: https://computing.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods
141141
* METIS: http://glaros.dtc.umn.edu/gkhome/metis/metis/overview
142+
* libceed: https://github.com/CEED/libCEED
143+
* gslib: https://github.com/Nek5000/gslib

docs/changelog.txt

+35-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,33 @@
11
<<< Change Log. >>>
2+
3+
2023 11 - 2024 01
4+
* MFEM 4.6 support
5+
- Default MFEM SHA is updated to a version on 11/26/2023 (slightly newer than
6+
MFEM4.6 release)
7+
- new Python version of examples, translated from ex34, 34p, 35p, 36, 36p, 37,
8+
37p, 38
9+
- intrules_cut.i is added
10+
- PyLinFormIntegraor, PyBilinearFormIntegrator, PyNonlinearFormIntegrator are
11+
added as Director classes, which allows for implementing these integrators
12+
using Python (see ex38.py)
13+
- following method of (Par)MixedBilinearForm accept HypreParMatrix as OperatorPtr
14+
- (Par)MixedBilinearForm::FormRectangularSystemMatrix
15+
- (Par)MixedBilinearForm::FormRectangularLinearSystem
16+
- field_diff.py is added under miniapps/gslib (PR195)
17+
- wrappers for Array<char>, Array<long long>, and Array<unsigned char> are added as
18+
uintArray, int8Array, int64Array.
19+
- Since Array<unsigned int> is not explicitly instantiated in Array.cpp, thus some
20+
method such as Print, Sort etc are not avaialbe. As a workaround, GetDataArray is
21+
added to return a numpy array view of underlying memory section.
22+
>>> v = mfem.uintArray(10)
23+
>>> v.GetDataArray()[:] = (1, 105, 20, 3, 50, 4, 2, 15, 8)
24+
>>> v.GetDataArray()[:] = np.sort(a.GetDataArray())
25+
>>> v.ToList()
26+
[1, 2, 3, 4, 8, 15, 20, 50, 105, 300]
27+
28+
29+
- Fixed the return value of FindPointsGSLIB::GetCode() not being properly wrapped.
30+
231
2023 01.
332
* Improved mfem.jit decorator to create Numba JITed coefficient.
433
(note, this involves an incompatible API change)
@@ -12,11 +41,11 @@
1241
- user function can use other MFEM coefficient as a variable
1342
(using dependency keyword)
1443

15-
- decorator without () is supported
16-
@mfem.jit.scalar is the same as
17-
@mfem.jit.scalar(td=False, params=None, complex=False,
18-
dependency=None, interface="simple", sdim=None,
19-
debug=False)
44+
- decorator without () is supported
45+
@mfem.jit.scalar is the same as
46+
@mfem.jit.scalar(td=False, params=None, complex=False,
47+
dependency=None, interface="simple", sdim=None,
48+
debug=False)
2049

2150

2251
* mfem::Array<T>::Append accepts list/tuple
@@ -37,7 +66,7 @@
3766
gslib version 1.0.8
3867

3968
* ex33, ex33p is added.
40-
* ex15 is updated to use Numba
69+
* ex15 is updated to use Numba
4170

4271
2022 03.
4372
* Added --cuda-arch option to specify the compute cuda archtecture

0 commit comments

Comments
 (0)