Commit 57c7aea6 authored by qbisi's avatar qbisi
Browse files

petsc: add test for varient built with mpich

mpich is not yet in pkgs/by-name and requires an explicit extra argument
`ch4backend` when used with callPackage, unlike openmpi. As a result, we
cannot override `mpi` in the petscPackages scope using the form
`callPackage mpi.override { }`.
parent d5e08421
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@

  # Used in passthru.tests
  petsc,
  mpich,
}:
assert withFullDeps -> withCommonDeps;

@@ -76,6 +77,7 @@ assert withSuperLuDist -> mpiSupport;
let
  petscPackages = lib.makeScope newScope (self: {
    inherit
      mpi
      # global override options
      mpiSupport
      fortranSupport
@@ -86,7 +88,6 @@ let

    petscPackages = self;
    # external libraries
    mpi = self.callPackage mpi.override { };
    blas = self.callPackage blas.override { };
    lapack = self.callPackage lapack.override { };
    hdf5 = self.callPackage hdf5.override {
@@ -287,6 +288,9 @@ stdenv.mkDerivation (finalAttrs: {
          withFullDeps = true;
          withParmetis = false;
        };
        mpich = petsc.override {
          mpi = mpich;
        };
      };
  };