Commit 2a71140a authored by qbisi's avatar qbisi
Browse files

petsc: fix ptscotch dependencies

parent 605ec776
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
  bash,
  pkg-config,
  gfortran,
  bison,
  mpi, # generic mpi dependency
  mpiCheckPhaseHook,
  python3,
@@ -26,7 +27,7 @@
  # External libraries options
  withHdf5 ? withCommonDeps,
  withMetis ? withCommonDeps,
  withZlib ? withP4est,
  withZlib ? (withP4est || withPtscotch),
  withScalapack ? withCommonDeps && mpiSupport,
  withParmetis ? withFullDeps, # parmetis is unfree
  withPtscotch ? withCommonDeps && mpiSupport,
@@ -64,7 +65,7 @@ assert withP4est -> (mpiSupport && withZlib);
# Package parmetis depend on metis and mpi support
assert withParmetis -> (withMetis && mpiSupport);

assert withPtscotch -> mpiSupport;
assert withPtscotch -> (mpiSupport && withZlib);
assert withScalapack -> mpiSupport;
assert (withMumps && mpiSupport) -> withScalapack;
assert withHypre -> mpiSupport;
@@ -117,6 +118,7 @@ stdenv.mkDerivation (finalAttrs: {
      python3
      gfortran
      pkg-config
      bison
    ]
    ++ lib.optional mpiSupport mpi
    ++ lib.optionals pythonSupport [