Important Petsc header files to include
Hi all, I am trying to select a set of important petsc header files to included in my installation of Petsc. Basically, I would like the header and library files to be outside of Petsc source directory. I found there are many headers under PETSC_DIR/include. Are these all necessary for a program to just use PETSC functions? Thanks, Mengda
On Sat, Feb 25, 2012 at 18:01, Mengda Wu <[email protected]> wrote:
I am trying to select a set of important petsc header files to included in my installation of Petsc. Basically, I would like the header and library files to be outside of Petsc source directory. I found there are many headers under PETSC_DIR/include. Are these all necessary for a program to just use PETSC functions?
It depends which level interface you use (e.g. if you only use KSP, you wouldn't need the SNES or TS headers). But why do you want to copy these somewhere? (You're going to have endless problems if you don't know what you're doing.) It sounds like a waste of time to me.
On Sat, Feb 25, 2012 at 6:01 PM, Mengda Wu <[email protected]> wrote:
Hi all,
I am trying to select a set of important petsc header files to included in my installation of Petsc. Basically, I would like the header and library files to be outside of Petsc source directory. I found there are many headers under PETSC_DIR/include. Are these all necessary for a program to just use PETSC functions?
It sounds like what you want is installation. Configure using --prefix=<directory> and then 'make; make install'. Everything you need will be in that directory. Matt
Thanks, Mengda
-- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener
participants (3)
-
Jed Brown -
Matthew Knepley -
Mengda Wu