summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/nwchem/Util_getppn.patch15
-rw-r--r--var/spack/repos/builtin/packages/nwchem/package.py2
2 files changed, 16 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/nwchem/Util_getppn.patch b/var/spack/repos/builtin/packages/nwchem/Util_getppn.patch
new file mode 100644
index 0000000000..5bc7607050
--- /dev/null
+++ b/var/spack/repos/builtin/packages/nwchem/Util_getppn.patch
@@ -0,0 +1,15 @@
+Index: src/util/util_getppn.c
+===================================================================
+--- src/util/util_getppn.c (revision 27443)
++++ src/util/util_getppn.c (working copy)
+@@ -32,7 +33,9 @@
+ void FATR util_getppn_(Integer *ppn_out){
+
+ #if defined(__bgq__)
+- *ppn_out = Kernel_ProcessCount();
++ *ppn_out = (Integer) Kernel_ProcessCount();
++ return;
++ if(0) {
+ #elif MPI_VERSION >= 3
+
+ int err;
diff --git a/var/spack/repos/builtin/packages/nwchem/package.py b/var/spack/repos/builtin/packages/nwchem/package.py
index 3e5d37145d..06816429f5 100644
--- a/var/spack/repos/builtin/packages/nwchem/package.py
+++ b/var/spack/repos/builtin/packages/nwchem/package.py
@@ -59,7 +59,7 @@ class Nwchem(Package):
patch('tddft_mxvec20.patch', when='@6.6', level=0)
patch('tools_lib64.patch', when='@6.6', level=0)
patch('txs_gcc6.patch', when='@6.6', level=0)
- # patch('util_getppn.patch', when='@6.6', level=0) # FAILS
+ patch('Util_getppn.patch', when='@6.6', level=0)
patch('xccvs98.patch', when='@6.6', level=0)
patch('zgesdv.patch', when='@6.6', level=0)