<pre style='margin:0'>
David Strubbe (dstrubbe) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/c80e1f11f389132cdf8c7453a7423984aa7f78b9">https://github.com/macports/macports-ports/commit/c80e1f11f389132cdf8c7453a7423984aa7f78b9</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new c80e1f11f38 berkeleygw: Fix serial compilation issue with HDF5.
</span>c80e1f11f38 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit c80e1f11f389132cdf8c7453a7423984aa7f78b9
</span>Author: David Strubbe <dstrubbe@macports.org>
AuthorDate: Sun Aug 23 17:56:08 2020 -0700
<span style='display:block; white-space:pre;color:#404040;'> berkeleygw: Fix serial compilation issue with HDF5.
</span>---
science/berkeleygw/Portfile | 6 ++++--
science/berkeleygw/files/patch-BSE-vmtxel.f90.diff | 22 ++++++++++++++++++++++
2 files changed, 26 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/berkeleygw/Portfile b/science/berkeleygw/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 580c46aa4e9..5235c4ce3d9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/berkeleygw/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/berkeleygw/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -66,8 +66,10 @@ configure {
</span> reinplace -W ${worksrcpath} "s|MATHFLAG += -DHDF5||" arch.mk
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# fix changed path, otherwise destroot would fail
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-Makefile.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Makefile: fix changed path, otherwise destroot would fail
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# BSE/vmtxel.f90: guard MPI_COMM_WORLD with #ifdef MPI, or cannot compile in serial
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-Makefile.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-BSE-vmtxel.f90.diff
</span>
build.target all-flavors
use_parallel_build yes
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/berkeleygw/files/patch-BSE-vmtxel.f90.diff b/science/berkeleygw/files/patch-BSE-vmtxel.f90.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..cf71c373171
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/berkeleygw/files/patch-BSE-vmtxel.f90.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,22 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- BSE/vmtxel.f90.orig 2020-08-21 11:43:52.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ BSE/vmtxel.f90 2020-08-21 11:44:23.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -783,7 +783,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (present(comm)) then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ comm_ = comm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef MPI
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ comm_ = MPI_COMM_WORLD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ end if
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (this%is_master) then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -835,7 +835,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ integer(HID_T) :: file_id ! File identifier
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ integer :: error
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef MPI
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ integer :: comm_ = MPI_COMM_WORLD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PUSH_SUB(read_and_broadcast_vmtxel_data_hdf5)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>