Follow the instructions in systems/Apple/OSX/bin/makeall to build the PETSc 
framework and documenta- tion suitable for use in Xcode.

                      
199

15.14. PARALLELCOMMUNICATION PETSc3.6October2,2015


You can then use the PETSc framework in ${PETSC DIR}/arch-osx/PETSc.framework 
in the usual manner for Apple frameworks, see the examples in 
systems/Apple/OSX/examples. When working in xcode things like function name 
completion should work for all PETSc functions as well as MPI functions. You 
must also link against the Apple Accelerate.framework.

The instructions in makeall say 

#!/bin/sh
#
# This script makes a Apple Mac OS X installer for PETSc, it uses 
arch-osx-release.py, arch-osx-debug.py, makeframework, makedocs, makedmg
#
# Run from the root PETSc directory
#
# See ./makeframework on how to use the framework:
#
#

So just run this script and follow the directions at the end. So run 

./systems/Apple/OSX/bin/makeall



> On Oct 20, 2015, at 3:21 PM, Sharp Stone <[email protected]> wrote:
> 
> Hi Barry,
> 
> Thank you for your reply. 
> 
> I saw the manual instructions. But still do not know exactly what the manual, 
> actually 6 lines of statements, means. I'm sorry to ask is there any further 
> info or examples for stupid users such as me to build the Petsc framework?
> 
> Thanks!
> 
> On Tue, Oct 20, 2015 at 2:14 PM, Barry Smith <[email protected]> wrote:
> 
>  http://www.mcs.anl.gov/petsc/petsc-current/docs/manual.pdf  section 15.13
> 
> 
> > On Oct 20, 2015, at 10:13 AM, Sharp Stone <[email protected]> wrote:
> >
> > Hi All,
> >
> > I'm trying to find out how to run PETSc in Xcode. Now I'm able to run the 
> > MPI in Xcode but still failed in running PETSc. Searched for the web but no 
> > luck at all. Does anyone have any instructions? Thanks very much in advance!
> >
> > --
> > Best regards,
> >
> > Feng
> 
> 
> 
> 
> -- 
> Best regards,
> 
> Feng

Reply via email to