[petsc-users] petsc4py installation error with PETSc v 3.6.1

Satish Balay balay at mcs.anl.gov
Sat Jul 25 22:18:02 CDT 2015


On Sat, 25 Jul 2015, Justin Chang wrote:

> I am working on 5 different machines and didn't keep good track of which
> machines had which petsc versions. The machine in question did not have the
> latest petsc 3.6.1 which was causing the problems. Rebuilding from
> petsc-dev did the trick, thanks for the help guys.

BTW: 'master' is development version - not 3.6.1 [which is a release version corresponding to 'maint' branch]

> Justin
> 
> PS - Every time I do a git pull of the latest petsc4py, i always have to
> apply Satish's patch in order to avoid the issue originally posted. Is
> there a way to update petsc4py master such that it conforms to the
> latest PetscSectionCreateGlobalSection()
> format?

latest petsc4py 'master' branch has this fix - so you shouldn't need
to apply the patch manually anymore.

Satish


> 
> On Sat, Jul 25, 2015 at 4:44 AM, Lisandro Dalcin <dalcinl at gmail.com> wrote:
> 
> > On 25 July 2015 at 00:12, Justin Chang <jychang48 at gmail.com> wrote:
> > > ImportError:
> > >
> > /usr/local/lib/python2.7/dist-packages/petsc4py/lib/arch-linux2-c-opt/PETSc.so:
> > > undefined symbol: DMShellSetCreateSubDM
> > > make: *** [unit_sequential] Error 1
> >
> >
> > You need to git pull in branch master of petsc-dev and rebuild.
> >
> >
> > --
> > Lisandro Dalcin
> > ============
> > Research Scientist
> > Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)
> > Numerical Porous Media Center (NumPor)
> > King Abdullah University of Science and Technology (KAUST)
> > http://numpor.kaust.edu.sa/
> >
> > 4700 King Abdullah University of Science and Technology
> > al-Khawarizmi Bldg (Bldg 1), Office # 4332
> > Thuwal 23955-6900, Kingdom of Saudi Arabia
> > http://www.kaust.edu.sa
> >
> > Office Phone: +966 12 808-0459
> >
> 



More information about the petsc-users mailing list