petsc: set optimized and withHdf5 default to true

Petsc is commonly optimized built with hdf5 support to be used
as a component of other software and project.
See
    1. https://sources.debian.org/src/petsc/3.22.2%2Bdfsg1-1/debian/rules/#L154
    2. https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=petsc
This commit is contained in:
qbisi
2025-02-14 19:18:44 +08:00
parent 3c01afec0a
commit 120cb83d3b
3 changed files with 2 additions and 11 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
mpiCheckPhaseHook,
# Build options
petsc-optimized ? false,
petsc-optimized ? true,
petsc-scalar-type ? "real",
petsc-precision ? "double",
mpiSupport ? true,
@@ -22,7 +22,7 @@
withFullDeps ? false, # full External libraries support
# External libraries options
withHdf5 ? withFullDeps,
withHdf5 ? true,
withMetis ? withFullDeps,
withParmetis ? false, # parmetis is unfree and should be enabled manualy
withPtscotch ? withFullDeps,
-8
View File
@@ -17072,14 +17072,6 @@ with pkgs;
### SCIENCE/PROGRAMMING
### SCIENCE/GEOLOGY
pflotran = callPackage ../by-name/pf/pflotran/package.nix {
petsc = petsc.override {
withHdf5 = true;
petsc-optimized = true;
};
};
### SCIENCE/LOGIC
abella = callPackage ../applications/science/logic/abella {
-1
View File
@@ -10347,7 +10347,6 @@ self: super: with self; {
python3Packages = self;
withPetsc4py = true;
withFullDeps = true;
petsc-optimized = true;
});
pex = callPackage ../development/python-modules/pex { };