[petsc-users] how to run petsc in Xcode

Barry Smith bsmith at mcs.anl.gov
Tue Oct 20 20:06:17 CDT 2015


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 <thronesf at gmail.com> 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 <bsmith at mcs.anl.gov> 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 <thronesf at gmail.com> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151020/24171d04/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page199image24496.png
Type: image/png
Size: 110 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151020/24171d04/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page199image24656.png
Type: image/png
Size: 110 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151020/24171d04/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page199image24816.png
Type: image/png
Size: 110 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151020/24171d04/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page199image24976.png
Type: image/png
Size: 110 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151020/24171d04/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page199image25136.png
Type: image/png
Size: 110 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151020/24171d04/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page199image25296.png
Type: image/png
Size: 110 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151020/24171d04/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page199image25456.png
Type: image/png
Size: 110 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151020/24171d04/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page199image25616.png
Type: image/png
Size: 110 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151020/24171d04/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page199image25776.png
Type: image/png
Size: 110 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151020/24171d04/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page199image25936.png
Type: image/png
Size: 110 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151020/24171d04/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page199image26096.png
Type: image/png
Size: 110 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151020/24171d04/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page199image26256.png
Type: image/png
Size: 110 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151020/24171d04/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page200image992.png
Type: image/png
Size: 128 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151020/24171d04/attachment-0012.png>


More information about the petsc-users mailing list