<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/586bfa2905e2ebe32637ec7ef86de5e2a0398bcb">https://github.com/macports/macports-ports/commit/586bfa2905e2ebe32637ec7ef86de5e2a0398bcb</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 586bfa2905e2ebe32637ec7ef86de5e2a0398bcb
</span>Author: Giovanni Bussi <giovanni.bussi@gmail.com>
AuthorDate: Fri Oct 6 13:16:51 2017 +0200

<span style='display:block; white-space:pre;color:#404040;'>    gromacs-plumed: MPI variant
</span>---
 science/gromacs/Portfile | 7 +++++++
 1 file changed, 7 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/gromacs/Portfile b/science/gromacs/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1c41a2b..50691e8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/gromacs/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/gromacs/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -90,6 +90,13 @@ subport gromacs-plumed {
</span>       (THIS PORT INSTALLS A VERSION OF GROMACS PATCHED WITH PLUMED)
     conflicts gromacs
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# in case gromacs is compiled with MPI, also enforce that plumed is complied with the same MPI variant:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    if {[mpi_variant_isset]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+      require_active_variants path:${prefix}/lib/libplumedKernel.dylib:plumed [mpi_variant_name]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# make sure that thread MPI is disabled, since it does not work with plumed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.args-append -DGMX_THREAD_MPI=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     depends_build-append   path:${prefix}/bin/plumed:plumed
     depends_lib-append     path:${prefix}/lib/libplumedKernel.dylib:plumed
     pre-configure {
</pre><pre style='margin:0'>

</pre>