summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMichaelLaufer <70094649+MichaelLaufer@users.noreply.github.com>2020-12-02 00:21:19 +0200
committerTamara Dahlgren <dahlgren1@llnl.gov>2021-02-17 17:07:19 -0800
commit24fb43cc43d908a421bddd26eb714338050d428b (patch)
tree79158db1174453e9a58a1e7899a33d1ca315d950 /var
parent0b7a22dea26c9a4608f9e4864bc02f136a9302ab (diff)
downloadspack-24fb43cc43d908a421bddd26eb714338050d428b.tar.gz
spack-24fb43cc43d908a421bddd26eb714338050d428b.tar.bz2
spack-24fb43cc43d908a421bddd26eb714338050d428b.tar.xz
spack-24fb43cc43d908a421bddd26eb714338050d428b.zip
Fixes compile time errors (#20006)
Co-authored-by: michael laufer <michael.laufer@toganetworks.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/wrf/package.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/wrf/package.py b/var/spack/repos/builtin/packages/wrf/package.py
index b0a9fd450b..4841bd2a12 100644
--- a/var/spack/repos/builtin/packages/wrf/package.py
+++ b/var/spack/repos/builtin/packages/wrf/package.py
@@ -225,7 +225,7 @@ class Wrf(Package):
for line in ifh:
if line.startswith("DM_"):
line = line.replace(
- "mpif90 -f90=$(SFC)", self.spec['mpi'].mpif90
+ "mpif90 -f90=$(SFC)", self.spec['mpi'].mpifc
)
line = line.replace(
"mpicc -cc=$(SCC)", self.spec['mpi'].mpicc
@@ -289,7 +289,7 @@ class Wrf(Package):
csh = Executable(csh_bin)
# num of compile jobs capped at 20 in wrf
- num_jobs = str(min(int(make_jobs, 10)))
+ num_jobs = str(min(int(make_jobs), 10))
# Now run the compile script and track the output to check for
# failure/success We need to do this because upstream use `make -i -k`
@@ -300,6 +300,8 @@ class Wrf(Package):
"-j",
num_jobs,
self.spec.variants["compile_type"].value,
+ output=str,
+ error=str
)
if "Executables successfully built" in result_buf: