[petsc-users] Integration of hyper & trilinos

Satish Balay balay at mcs.anl.gov
Thu Aug 30 10:55:02 CDT 2018


Its:

./configure --download-ml --download-hypre
make PETSC_DIR=/home/jimmy/projects/petsc PETSC_ARCH=arch-linux2-c-debug all

Setting up .bashrc is optional. Its a shortcut to avoid specifing PETSC_ARCH and PETSC_DIR options to make [above]

Satish

On Thu, 30 Aug 2018, Fazlul Huq wrote:

> I have run:
> 
> jimmy at dave:~/projects/petsc$ ./configure --download-hyper
> &
> jimmy at dave:~/projects/petsc$ ./configure --download-ml
> 
> At the end I got following message:
> 
> xxx=========================================================================xxx
>  Configure stage complete. Now build PETSc libraries with (gnumake build):
>    make PETSC_DIR=/home/jimmy/projects/petsc PETSC_ARCH=arch-linux2-c-debug
> all
> xxx=========================================================================xxx
> 
> Am I ready to use it now or do I need no make it first?
> Or do I need to edit .bashrc file with,
> 
> export PETSC_DIR=/home/jimmy/projects/petsc
> &
> export PETSC_ARCH=arch-linux2-c-debug all
> 
> And then run make from command window?
> 
> Thanks.
> Huq
> 
> 
> On Thu, Aug 30, 2018 at 9:40 AM Jed Brown <jed at jedbrown.org> wrote:
> 
> > You would configure PETSc with --download-hypre and --download-ml (this
> > part of Trilinos can be installed on its own).  Then run your
> > application with run-time options like -pc_type hypre or -pc_type ml.
> > See the user's manual and/or tutorials.
> >
> > Fazlul Huq <huq2090 at gmail.com> writes:
> >
> > > Hello Petsc developers,
> > >
> > > 1. I want to integrate petsc with hyper and trilinos cause I want to
> > solve
> > > some   problems using multigrid. I know, I need to download and install
> > > both of them and then configure petsc with hyper and trilinos to use them
> > > with petsc. But, I don't know how to configure petsc with hyper and
> > > trilinos or any other package. Is it like, running some command from
> > > terminal or editing .bashrc file? Currently, this is the .bashrc file
> > > regarding petsc in my desktop:
> > >
> > > export PETSC_DIR=/home/jimmy/projects/petsc
> > >
> > > 2. Can I use c programming routine in petsc code and make and run it? If
> > > yes then what is the procedure? Last day I tried to do that but I got
> > error
> > > message while making the file.
> > >
> > > Thanks.
> > >
> > > --
> > >
> > > Fazlul Huq
> > > Graduate Research Assistant
> > > Department of Nuclear, Plasma & Radiological Engineering (NPRE)
> > > University of Illinois at Urbana-Champaign (UIUC)
> > > E-mail: huq2090 at gmail.com
> >
> 
> 
> 



More information about the petsc-users mailing list