[petsc-users] how to compile the example code

paul zhang paulhuaizhang at gmail.com
Wed Oct 22 14:32:39 CDT 2014


Got that.

Thanks again.
Paul

On Wed, Oct 22, 2014 at 3:31 PM, Satish Balay <balay at mcs.anl.gov> wrote:

> You can copy the current example makefile (remove unneeded stuff) -
> and modify as needed.
>
> Satish
>
> On Wed, 22 Oct 2014, paul zhang wrote:
>
> > Satish,
> >
> > It works. Thanks a lot. Well, if I'm going to write my own code, I have
> to
> > write a new make file, right?
> >
> > Paul
> >
> > On Wed, Oct 22, 2014 at 3:16 PM, Satish Balay <balay at mcs.anl.gov> wrote:
> >
> > >
> > > Have you tried using the makefile provided along with the example?
> > >
> > > for eg:
> > >
> > > cd src/ksp/ksp/examples/tutorials
> > > make ex1 PETSC_DIR=/home/paul/LIB/petsc/
> > >
> > > Satish
> > >
> > > On Wed, 22 Oct 2014, paul zhang wrote:
> > >
> > > > Hello,
> > > >
> > > > I'm not quite sure how to link the petscksp.h correctly so that I can
> > > > compile the ex1.c file and run it in my computer. Can you shed some
> > > light?
> > > > The PETSc package has been installed  to /home/paul/LIB/petsc/.
> > > >
> > > >
> > > > Thanks,
> > > > Paul
> > > >
> > >
> > >
> >
> >
> >
>
>


-- 
Huaibao (Paul) Zhang
*Gas Surface Interactions Lab*
Department of Mechanical Engineering
University of Kentucky,
Lexington,
KY, 40506-0503
*Office*: 216 Ralph G. Anderson Building
*Web*:gsil.engineering.uky.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141022/48981aac/attachment-0001.html>


More information about the petsc-users mailing list