Skip to content

Commit

Permalink
Add parmetis to spack build
Browse files Browse the repository at this point in the history
  • Loading branch information
xylar committed Jan 10, 2024
1 parent 0125562 commit bcbde3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deploy/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ def build_spack_env(config, update_spack, machine, compiler, mpi, # noqa: C901
esmf = config.get('deploy', 'esmf')
lapack = config.get('deploy', 'lapack')
metis = config.get('deploy', 'metis')
parmetis = config.get('deploy', 'parmetis')
petsc = config.get('deploy', 'petsc')
scorpio = config.get('deploy', 'scorpio')

Expand Down Expand Up @@ -434,6 +435,8 @@ def build_spack_env(config, update_spack, machine, compiler, mpi, # noqa: C901
include_e3sm_lapack = True
if metis != 'None':
specs.append(f'"metis@{metis}"')
if parmetis != 'None':
specs.append(f'"parmetis@{parmetis}"')
if petsc != 'None':
specs.append(f'"petsc@{petsc}+mpi+batch"')

Expand Down Expand Up @@ -523,7 +526,7 @@ def build_spack_env(config, update_spack, machine, compiler, mpi, # noqa: C901
f'export LAPACK={spack_view}\n' \
f'export USE_LAPACK=true\n'

if metis != 'None':
if parmetis != 'None':
env_vars = f'{env_vars}' \
f'export PARMETIS_ROOT={spack_view}\n'

Expand Down
1 change: 1 addition & 0 deletions deploy/default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ albany = develop
cmake = 3.23.0:
hdf5 = 1.14.1
lapack = 3.9.1
parmetis = 4.0.3
petsc = 3.19.1
scorpio = 1.4.1

0 comments on commit bcbde3b

Please sign in to comment.