Package Details: mfem 4.7-1

Git Clone URL: https://aur.archlinux.org/mfem.git (read-only, click to copy)
Package Base: mfem
Description: Lightweight, general, scalable C++ library for finite element methods
Upstream URL: https://github.com/mfem/mfem
Keywords: amr computational-science fem finite-elements high-order high-performance-computing hpc math-physics parallel-computing radiuss scientific-computing
Licenses: BSD-3-Clause
Provides: libmfem.so
Submitter: lmartinez-mirror
Maintainer: carlosal1015
Last Packager: carlosal1015
Votes: 1
Popularity: 0.001644
First Submitted: 2021-08-09 17:50 (UTC)
Last Updated: 2024-05-09 16:00 (UTC)

Required by (1)

Sources (1)

Latest Comments

lahwaacz commented on 2024-03-29 11:33 (UTC)

The license should be just BSD-3-Clause, without the custom: prefix.

japs commented on 2024-02-02 01:03 (UTC)

Hi, thanks for updating the PKGBUILD. There are two small mistakes in the new version:

  1. Metis is not marked as a dependency
  2. In the cmake call, the following flag was added: -DMETIS_DIR=/usr/include/hypre. This is of course wrong as it points to hypre's include dir. To the best of my knowledge, metis' AUR package correctly installs metis.h in /usr/include/ and libmetis.so in /usr/lib. These being default locations, I think that the -DMETIS_DIR flag in cmake can safely be omitted.

Thanks again!

japs commented on 2024-01-11 00:45 (UTC)

Thanks for packaging MFEM. The current build is not parallel and I think most users would likely benefit from having MPI enabled, as all the parallel examples of the project would either not build or fail at runtime without it.

The following patch of the PKGBUILD enables the use of MPI and adds the dependencies required to run in parallel (I'm not sure I did it right, though). I also count cores and build in parallel.

Please kindly consider patching the AUR version.

5c5
< pkgrel=1
---
> pkgrel=2
10,11c10,11
< depends=('gcc-libs')
< makedepends=('cmake')
---
> depends=('gcc-libs' 'openmpi' 'hypre' 'metis')
> makedepends=('cmake' 'openmpi' 'hypre' 'metis')
26a27,28
>     -DMFEM_USE_MPI=YES \
>     -DHYPRE_DIR=/usr/include/hypre \
28c30,31
<   cmake --build build
---
>   N_CORES=`grep "core id" /proc/cpuinfo | uniq | wc -l`
>   cmake --build build -j ${N_CORES}

carlosal1015 commented on 2023-06-15 18:20 (UTC)

Thanks @tsokar for heads up.

tsokar commented on 2023-06-15 07:23 (UTC)

Hi ! The package is not compiling anymore due to more strict language enforcement in g++. I had to apply the following patch and update the PKGBUILD. https://pastebin.com/wR271QGL (updated pkgbuild) https://pastebin.com/JSDdYnnT (patch)

T.