<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""><br class=""></div>Follow the instructions in systems/Apple/OSX/bin/makeall to build the PETSc framework and documenta- tion suitable for use in Xcode.<br class=""><br class=""><img alt="page199image24496" width="3" height="0" apple-inline="yes" id="D553B44A-D764-4250-B27A-F249ADE202A1" apple-width="yes" apple-height="yes" src="cid:0E95D1BB-4D6A-45BA-9132-4A8215652111@wowway.com" class="">  <img alt="page199image24656" width="3" height="0" apple-inline="yes" id="7F56E7FB-DB23-4618-9992-21F41669B7BE" apple-width="yes" apple-height="yes" src="cid:9EC2EFFF-999B-4BC7-A1FA-FB667AA454B3@wowway.com" class="">  <img alt="page199image24816" width="3" height="0" apple-inline="yes" id="C3B1E86B-699B-468C-87EE-D1864CB75DF0" apple-width="yes" apple-height="yes" src="cid:E5EFAD10-F586-4386-940A-4EE15ED04151@wowway.com" class="">  <img alt="page199image24976" width="3" height="0" apple-inline="yes" id="A5B637B7-75FE-4687-8D88-4DFEA74E57F8" apple-width="yes" apple-height="yes" src="cid:AD095C70-179B-483E-9D65-2B3F4B7A8797@wowway.com" class="">  <img alt="page199image25136" width="3" height="0" apple-inline="yes" id="72D31EB3-5989-409E-98EB-A7670172DB68" apple-width="yes" apple-height="yes" src="cid:D1513DB7-5CD1-4C1C-B29B-C07156B78D7B@wowway.com" class="">  <img alt="page199image25296" width="3" height="0" apple-inline="yes" id="CE6DA1FB-EB2B-4660-A202-F6FD359FE222" apple-width="yes" apple-height="yes" src="cid:77119701-8144-45DB-9EE8-E45998CC7B79@wowway.com" class="">  <img alt="page199image25456" width="3" height="0" apple-inline="yes" id="E4B01FC7-4F94-42EC-A8DB-C6DCEDC64776" apple-width="yes" apple-height="yes" src="cid:C45F287F-F8FC-4BE7-834E-A32DAA50ADAE@wowway.com" class="">  <img alt="page199image25616" width="3" height="0" apple-inline="yes" id="3C78C682-3965-44BA-8593-1188421A2E66" apple-width="yes" apple-height="yes" src="cid:E848E841-899A-4330-B716-664789C2B007@wowway.com" class="">  <img alt="page199image25776" width="3" height="0" apple-inline="yes" id="976F2C42-8434-4F8F-8A34-6DBD53216BCC" apple-width="yes" apple-height="yes" src="cid:2C23D53D-8F37-43B6-9AFA-3D431AC7C776@wowway.com" class="">  <img alt="page199image25936" width="3" height="0" apple-inline="yes" id="AAFE63FE-7E89-4CE5-8743-3C2424A8A69B" apple-width="yes" apple-height="yes" src="cid:2777895E-E9EE-4590-B6E1-467435C19EBE@wowway.com" class="">  <img alt="page199image26096" width="3" height="0" apple-inline="yes" id="83E1E668-9934-450D-8D7A-89C2BEA61902" apple-width="yes" apple-height="yes" src="cid:99B57416-ECB0-42C7-9D51-B113014C50D2@wowway.com" class="">  <img alt="page199image26256" width="3" height="0" apple-inline="yes" id="6D2C16CE-7F55-419A-8B32-7B3B4B567EBB" apple-width="yes" apple-height="yes" src="cid:8F310CDE-68B4-4507-AED2-0AFF7768AD0F@wowway.com" class=""><br class="">199<br class=""><br class="">15.14. PARALLELCOMMUNICATION PETSc3.6October2,2015<br class=""><br class=""><img alt="page200image992" width="468" height="0" apple-inline="yes" id="6CF1B55D-51C9-4A4E-8033-F0D5B621B8F1" apple-width="yes" apple-height="yes" src="cid:F996DF97-803E-42CE-8F23-DFC5773F0D32@wowway.com" class=""><br class="">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.<div class=""><br class=""></div><div class="">The instructions in makeall say </div><div class=""><br class=""></div><div class="">#!/bin/sh<br class="">#<br class=""># This script makes a Apple Mac OS X installer for PETSc, it uses arch-osx-release.py, arch-osx-debug.py, makeframework, makedocs, makedmg<br class="">#<br class=""># Run from the root PETSc directory<br class="">#<br class=""># See ./makeframework on how to use the framework:<br class="">#<br class="">#</div><div class=""><br class=""></div><div class="">So just run this script and follow the directions at the end. So run </div><div class=""><br class=""></div><div class="">./systems/Apple/OSX/bin/makeall</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><blockquote type="cite" class="">On Oct 20, 2015, at 3:21 PM, Sharp Stone <<a href="mailto:thronesf@gmail.com" class="">thronesf@gmail.com</a>> wrote:<br class=""><br class="">Hi Barry,<br class=""><br class="">Thank you for your reply. <br class=""><br class="">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?<br class=""><br class="">Thanks!<br class=""><br class="">On Tue, Oct 20, 2015 at 2:14 PM, Barry Smith <<a href="mailto:bsmith@mcs.anl.gov" class="">bsmith@mcs.anl.gov</a>> wrote:<br class=""><br class=""> http://www.mcs.anl.gov/petsc/petsc-current/docs/manual.pdf  section 15.13<br class=""><br class=""><br class="">> On Oct 20, 2015, at 10:13 AM, Sharp Stone <thronesf@gmail.com> wrote:<br class="">><br class="">> Hi All,<br class="">><br class="">> 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!<br class="">><br class="">> --<br class="">> Best regards,<br class="">><br class="">> Feng<br class=""><br class=""><br class=""><br class=""><br class="">-- <br class="">Best regards,<br class=""><br class="">Feng<br class=""></blockquote><br class=""></div></body></html>