[petsc-dev] Extending Petsc

Barry Smith bsmith at mcs.anl.gov
Wed Sep 11 16:25:36 CDT 2013


   You need to put a file in config/PETSc/packages   with the name package.py (name of your package) you can, for example, copy superlu.py and edit it to match your package. This is the file that will make sure that PETSC_HAVE_PACKAGE is defined.

   Barry



On Sep 11, 2013, at 4:21 PM, Jose David Bermeol <jbermeol at purdue.edu> wrote:

> Hi, right now I'm working in add a new solver for seq aij matrices. What I have until this point are the following files inside the folder aij/seq/:
> 
>    - package/       folder with my code
>    - package.c      a initial implementation of the solver.
>    - makefile       is basically a copy of the make file in superlu, but using the name of my package instead of "superlu".
> 
> Also I add to petscmat.h my solver type. Then I run ./configure with the flag --with-package-dir=PATH_TO_PACKAGE. The thing is that when I'm compiling the variable PETSC_HAVE_PACKAGE doesn't show up, I guess that means the variable is 0 or something else happens, and my code is not going to be compile. So if you could give some ideas of why Petsc doesn't compile my code.
> 
> 
> Thanks 
> 




More information about the petsc-dev mailing list