Skip to content

Commit

Permalink
Add deal.II patch for HDF5 output on clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasquale Africa committed Oct 14, 2020
1 parent b5fad91 commit c90c7dd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkgs/dealii/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ pkgname=dealii
pkgver=9.2.0
archive=$pkgname-$pkgver.tar.gz
sum=fff66749d7e7e8baf569e5da5a42f93e99424a86
dstdir=$mkToolchainPkgs/$pkgname/$pkgver

[[ -r $srcdir/$pkgname-$pkgver.patch ]] && \
suffix=-patch

dstdir=$mkToolchainPkgs/$pkgname/$pkgver$suffix

build() {
download https://github.com/dealii/$pkgname/releases/download/v$pkgver/$archive
Expand Down Expand Up @@ -69,7 +73,7 @@ package() {

if [[ "$mkTest" = "no" ]]; then
install -vd $mkToolchainModules/$pkgname
cat > $mkToolchainModules/$pkgname/$pkgver.lua << EOF
cat > $mkToolchainModules/$pkgname/$pkgver$suffix.lua << EOF
-- -*- lua -*-
whatis("C++ software library supporting the creation of finite element")
help([[
Expand Down
13 changes: 13 additions & 0 deletions pkgs/dealii/dealii-9.2.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc
index e35adfa..6a7cb5b 100644
--- a/source/base/data_out_base.cc
+++ b/source/base/data_out_base.cc
@@ -7504,7 +7504,7 @@ DataOutBase::write_hdf5_parallel(
AssertThrow(plist_id >= 0, ExcIO());
# ifdef DEAL_II_WITH_MPI
# ifdef H5_HAVE_PARALLEL
- status = H5Pset_dxpl_mpio(plist_id, H5FD_MPIO_COLLECTIVE);
+ status = H5Pset_dxpl_mpio(plist_id, H5FD_MPIO_INDEPENDENT);
AssertThrow(status >= 0, ExcIO());
# endif
# endif

0 comments on commit c90c7dd

Please sign in to comment.