Package Details: petsc 3.22.3-1

Git Clone URL: https://aur.archlinux.org/petsc.git (read-only, click to copy)
Package Base: petsc
Description: Portable, extensible toolkit for scientific computation
Upstream URL: https://petsc.org
Keywords: computing scientific
Licenses: BSD-2-Clause
Provides: petsc4py
Submitter: heitzmann
Maintainer: MartinDiehl
Last Packager: MartinDiehl
Votes: 19
Popularity: 0.000000
First Submitted: 2018-02-24 11:36 (UTC)
Last Updated: 2025-02-05 08:49 (UTC)

Pinned Comments

MartinDiehl commented on 2022-10-06 10:26 (UTC)

@jrohwer

When building PETSc (more specifically, petsc4py), one test (ex100 from ksp) will fail if a previous (major) version is installed. I could not figure out why this happens. The solution would be to build in a clean root (which is a little bit complicated due to dependency on other AUR packages) or simply uninstall the old version before.

Any help to solve this issue is welcomed.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 Next › Last »

exocortex commented on 2023-12-04 15:40 (UTC)

Is there a way that I can find out if my installation is using superlu ? Does it work to install SuperLU and then reinstall petsc (so that petsc automatically detects SuperLU when reinstalling)?

I am trying specifically to run the TAO/toy example (called "maros.c" in newer versions). The example can be found here

MartinDiehl commented on 2023-11-29 16:34 (UTC)

@exocortex:

superLU is an optional dependency, but it need to be present at build time. If you install superLU firt, PETSc should find it during build.

That makes building in a clean CHROOT a little bit more difficult, so I normally build on my system.

exocortex commented on 2023-11-29 14:56 (UTC)

When trying out the example from here (and putting the HS21 directory next to my main) I got this error:

[0]PETSC ERROR: Could not locate solver type superlu for factorization type LU and matrix type mpiaij. Perhaps you must ./configure with --download-superlu

Is there a way I can change my installation so that it does download this stuff. (if that is indeed the cause of this error).

exocortex commented on 2023-11-03 22:08 (UTC)

@MartinDiehl thank you! This was the first time I used pacman to downgrade something and it worked quite well :-)

MartinDiehl commented on 2023-11-02 14:21 (UTC)

@exocortex: This is a bug in SuiteSparse 7.3.0 (https://github.com/DrTimothyAldenDavis/SuiteSparse/issues/478). You either have to downgrade or uninstall it for the moment. Hopefully, SuiteSparse 7.3.1 is out soon.

exocortex commented on 2023-11-02 13:13 (UTC) (edited on 2023-11-02 13:13 (UTC) by exocortex)

installing petsc fails for me. I couldn't run a python script (simple tutorial) after I upgraded my computer because of some problem with libcholmod. I tried reinstalling petsc (and slepc) but now also during installation of petsc there's an error (this time in a file aijcholmod. My terminal output with the error is here:

         CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/matrart.o
         CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/symtranspose.o
         CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/crl/crl.o
         CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/cholmod/aijcholmod.o
In file included from /home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/include/petscsystypes.h:553,
                 from /home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/include/petscsys.h:43,
                 from /home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/include/petscvec.h:8,
                 from /home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/include/petscmat.h:6,
                 from /home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/include/petsc/private/matimpl.h:3,
                 from /home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/include/../src/mat/impls/aij/seq/aij.h:3,
                 from /home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/src/mat/impls/aij/seq/cholmod/aijcholmod.c:1:
/usr/include/cholmod.h:1902:12: error: expected ‘)’ before ‘__extension__’
 1902 |     void **I,       // integer block of memory (int32_t or int64_t)
      |            ^
In file included from /home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/include/../src/mat/impls/sbaij/seq/cholmod/cholmodimpl.h:43,
                 from /home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/src/mat/impls/aij/seq/cholmod/aijcholmod.c:2:
/usr/include/cholmod.h:1903:5: error: expected ‘;’, ‘,’ or ‘)’ before ‘void’
 1903 |     void **J,       // integer block of memory (int32_t or int64_t)
      |     ^~~~
make[3]: *** [gmakefile:197: arch-linux-c-opt/obj/src/mat/impls/aij/seq/cholmod/aijcholmod.o] Error 1
make[3]: *** Waiting for unfinished jobs....
         CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/inode.o
         CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/aijperm/aijperm.o
         CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/matmatmult.o
make[3]: Leaving directory '/home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0'
make[2]: *** [/home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/lib/petsc/conf/rules.doc:28: libs] Error 2
make[2]: Leaving directory '/home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0'
**************************ERROR*************************************
  Error during compile, check arch-linux-c-opt/lib/petsc/conf/make.log
  Send it and arch-linux-c-opt/lib/petsc/conf/configure.log to petsc-maint@mcs.anl.gov
********************************************************************
make[1]: *** [makefile:45: all] Error 1
make: *** [GNUmakefile:9: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: petsc-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
petsc - exit status 4

MartinDiehl commented on 2023-10-14 11:38 (UTC)

@bred: Did you uninstall a previous PETSc installation?

bred commented on 2023-10-12 14:11 (UTC) (edited on 2023-10-12 14:15 (UTC) by bred)

I've this error in 1.20

 Error while running make check
 make[1]: *** [makefile:132: check] Error 1
 make: *** [GNUmakefile:17: check] Error 2

 -> error making: petsc-exit status 4
 -> Failed to install the following packages. Manual intervention is required: petsc - exit status 4

lahwaacz commented on 2023-09-26 06:14 (UTC)

Still getting the same error due to hypre 2.29.0-1 with petsc 3.19.4-2...