From a9feeefdb93c7766d02e264bbdd7f070c2d6ec83 Mon Sep 17 00:00:00 2001 From: eklee15 Date: Fri, 26 May 2017 23:06:55 -0400 Subject: Added pgi support for mumps (#4369) --- var/spack/repos/builtin/packages/mumps/package.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/var/spack/repos/builtin/packages/mumps/package.py b/var/spack/repos/builtin/packages/mumps/package.py index c5bd783f39..f28941fda3 100644 --- a/var/spack/repos/builtin/packages/mumps/package.py +++ b/var/spack/repos/builtin/packages/mumps/package.py @@ -178,8 +178,8 @@ class Mumps(Package): # TODO: change the value to the correct one according to the # compiler possible values are -DAdd_, -DAdd__ and/or -DUPPER - if self.compiler.name == 'intel': - # Intel Fortran compiler provides the main() function so + if self.compiler.name == 'intel' or self.compiler.name == 'pgi': + # Intel & PGI Fortran compiler provides the main() function so # C examples linked with the Fortran compiler require a # hack defined by _DMAIN_COMP (see examples/c_example.c) makefile_conf.append("CDEFS = -DAdd_ -DMAIN_COMP") -- cgit v1.2.3-70-g09d2