Discussion:
[petsc-users] how to run petsc in Xcode
Sharp Stone
2015-10-20 15:13:10 UTC
Permalink
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
Barry Smith
2015-10-20 18:14:55 UTC
Permalink
http://www.mcs.anl.gov/petsc/petsc-current/docs/manual.pdf section 15.13
Post by Sharp Stone
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
Sharp Stone
2015-10-20 20:21:10 UTC
Permalink
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!
Post by Barry Smith
http://www.mcs.anl.gov/petsc/petsc-current/docs/manual.pdf section 15.13
Post by Sharp Stone
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!
Post by Sharp Stone
--
Best regards,
Feng
--
Best regards,

Feng
Barry Smith
2015-10-21 01:06:17 UTC
Permalink
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
Post by Sharp Stone
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!
http://www.mcs.anl.gov/petsc/petsc-current/docs/manual.pdf section 15.13
Post by Sharp Stone
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
Loading...