Skip to content

Julia wrappers for the PETSc library

License

Notifications You must be signed in to change notification settings

K-Class/PETSc.jl

 
 

Repository files navigation

PETSc

Build Status doc dev

Warning

PETSc.jl is currently broken and not being maintained because of lack of time. If you are interested to help fix it, please contact us.

This package provides a low level interface for PETSc and allows combining julia features (such as automatic differentiation) with the PETSc infrastructure and nonlinear solvers.

Installation

This package can be added with the julia command:

]add PETSc

The installation can be tested with

]test PETSc

BinaryBuilder Version

By default, the package uses a pre-built binary of PETSc along with a default installation of MPI.jl. Note that the distributed version of PETSc is using real, Float64 numbers; build details can be found here

System Builds

If you want to use the package with custom builds of the PETSc library, this can be done by specifying the environment variable JULIA_PETSC_LIBRARY. This is a colon separated list of paths to custom builds of PETSc; the reason for using multiple builds is to enable single, double, and complex numbers in the same julia session. These should be built against the same version of MPI as used with MPI.jl

After setting the variable you should

]build PETSc

and the library will be persistently set until the next time the build command is issued.

To see the currently set library use

using PETSc
PETSc.libs

About

Julia wrappers for the PETSc library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Julia 100.0%