Skip to content

Commit 32d6ca6

Browse files
committed
Allow petsc to 'build_with' superlu_dist.
1 parent ab6b933 commit 32d6ca6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

pkgs/petsc/petsc.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,14 @@ def configure(ctx, stage_args):
108108
conf_lines.append('--with-suitesparse-include=${SUITESPARSE_DIR}/include/suitesparse')
109109
conf_lines.append('--with-suitesparse-lib=[${SUITESPARSE_DIR}/lib/libumfpack.a,libklu.a,libcholmod.a,libbtf.a,libccolamd.a,libcolamd.a,libcamd.a,libamd.a,libsuitesparseconfig.a]')
110110

111+
if 'SUPERLU_DIST' in ctx.dependency_dir_vars:
112+
conf_lines.append('--with-superlu_dist=1')
113+
conf_lines.append('--with-superlu_dist-include=${SUPERLU_DIST_DIR}/include/superlu_dist')
114+
conf_lines.append('--with-superlu_dist-lib=[${SUPERLU_DIST_DIR}/lib/libsuperlu_dist.a]')
115+
111116
for dep_var in ctx.dependency_dir_vars:
112117
if dep_var in ['BLAS', 'LAPACK', 'OPENBLAS', 'PARMETIS',
113-
'SCOTCH', 'TRILINOS', 'SUITESPARSE']:
118+
'SCOTCH', 'TRILINOS', 'SUITESPARSE', 'SUPERLU_DIST']:
114119
continue
115120
if dep_var == 'MPI':
116121
conf_lines.append('--with-mpi-compilers')

0 commit comments

Comments
 (0)