<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 27 May 2015, at 16:30, Roberto De Pietri <<a href="mailto:roberto.depietri@unipr.it">roberto.depietri@unipr.it</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Dear Comer:<br><br>I would like to confirm you that Ian and Eric were able to correctly find out the problem that originated the build<br>problem on build using macports <br>* The HDF5 MacPorts port was updated from 1.8.14 to 1.8.15 on 16-May-2015<br> (<a href="https://trac.macports.org/log/trunk/dports/science/hdf5/Portfile">https://trac.macports.org/log/trunk/dports/science/hdf5/Portfile</a>), 2 days before the ET release<br>* HDF5 is undefining __attribute__, and this is creating site effect (caused by including hdf5.h)<br> that have standard c++ include to fail. This is true for gcc4.8 and gcc5.1<br>* A simple solution is to change the order of includes in the include file: <br> arrangements/Carpet/CarpetIOHDF5/src/CarpetIOHDF5.hh. you can replace this include with the <br> one attached to the present mail.<br></blockquote><div><br></div><div>This seems like a viable workaround until the problem is fixed in HDF5, so I propose that it be implemented in CarpetIOHDF5 and backported to the release branch.</div><div><br></div><br><blockquote type="cite">* to have a fast start you may also copy the attached file: osx-macports.run in <br> simfactory/mdb/runscript.<br>* then set your local machine with the command<br><br><blockquote type="cite">simfactory/bin/sim setup<br></blockquote><br>* edit the local machine file you created (using the previous command) in simfactory/mdb/machine <br> to have:<br><br><br>*** ASSUMING MACPORT IS INSTALLED (subversion is needed cause the version that comes with XCOde<br>*** will not work [new XCODE 6.3.2 and MacPorts 2.3.3]<br><br><br>sudo port install subversion<br>sudo port install pkgconfig gcc49 fftw-3 gsl jpeg zlib hdf5 +fortran +gfortran openmpi openssl<br><br>### [FROM a MAIN DIRECTORY for the Cactus tree] <br><br>curl -kLO <a href="https://raw.githubusercontent.com/gridaphobe/CRL/ET_2015_05/GetComponents">https://raw.githubusercontent.com/gridaphobe/CRL/ET_2015_05/GetComponents</a><br>chmod a+x GetComponents<br>./GetComponents --parallel <a href="https://bitbucket.org/einsteintoolkit/manifest/raw/ET_2015_05/einsteintoolkit.th">https://bitbucket.org/einsteintoolkit/manifest/raw/ET_2015_05/einsteintoolkit.th</a><br><br>### [the enter in the cactus directory]<br><br>cd Cactus<br><br>cp [where_you_save_it]/CarpetIOHDF5.hh arrangements/Carpet/CarpetIOHDF5/src/<br>cp [where_you_save_it]/osx-macports.run simfactory/mdb/runscript<br>simfactory/bin/sim setup<br><br>### [DO the local editing. In my case was the file named]<br>### the following line should be present<br>###<br>### optionlist = osx-macports.cfg<br>### runscript = osx-macports.run<br>### ppn = 4<br>### max-num-threads = 4<br>### num-threads = 1<br>### nodes = 1<br>###<br>### NOT: my machine is “iMac (27-inch, Late 2009)”<br>### OS X Yosemite 10.10.3<br>###<br>### Processor Name:<span class="Apple-tab-span" style="white-space:pre">        </span>Intel Core i5<br>### Processor Speed:<span class="Apple-tab-span" style="white-space:pre">        </span>2,66 GHz<br>### Number of Processors:<span class="Apple-tab-span" style="white-space:pre">        </span>1<br>### Total Number of Cores:<span class="Apple-tab-span" style="white-space:pre">        </span>4<br>### L2 Cache (per Core):<span class="Apple-tab-span" style="white-space:pre">        </span>256 KB<br>### L3 Cache:<span class="Apple-tab-span" style="white-space:pre">        </span>8 MB<br>### Memory:<span class="Apple-tab-span" style="white-space:pre">        </span>8 GB<br><br><br>simfactory/bin/sim build --thornlist thornlists/<a href="http://einsteintoolkit.th">einsteintoolkit.th</a> <br>simfactory/bin/sim create-run static_tov --parfile=par/static_tov.par --proc=4 --num-threads=2 <br><br>### Now the test TOV simulations should be running code is running on two process using two cores each.<br><br><br>## sudo port install python27<br>## sudo port select —set python python27<br>## sudo port install py-numpy py-scipy <br>## sudo port install py-matplotlib <br>## sudo port install py-h5py<br>## sudo port install py-ipython<br>## sudo port select —set ipython ipython27<br>##<br>##<br>## TO SEE THE RESULTS: <br><br><blockquote type="cite">ipython —-pylab<br></blockquote>In [..]: FILE='/Users/depietri/simulations/static_tov/output-0000/static_tov/hydrobase-rho.maximum.asc'<br>In [..]: d=loadtxt(FILE)<br>In [..]: plot(d[:,1],d[:,2]*1e3,'k-')<br>In [..]: ylim(1.25,1.30)<br>In [..]: xlabel(r’time [CU c=1, G=1, $M_\odot$=1]')<br>In [..]: ylabel(r'max($\rho \cdot 10^3$) [CU c=1, G=1, $M_\odot$=1]')<br>In [..]: <br><br><br><br><span><CarpetIOHDF5.hh></span><span><osx-macports.run></span><br>------------------------------------------------------------------<br>Roberto De Pietri e-mail:roberto.depietri@<a href="http://fis.unipr.it">fis.unipr.it</a><br>Dipartimento di Fisica <a href="http://www.fis.unipr.it/~roberto.depietri">http://www.fis.unipr.it/~roberto.depietri</a><br>Universita' di Parma tel: +39 (0521) 905280<br>Via G.P.Usberti 7/A fax: +39 (0521) 905223<br>I-43100 PARMA --- ITALY<br><br><br><br><br><br></blockquote></div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>-- </div><div>Ian Hinder</div><div><a href="http://members.aei.mpg.de/ianhin">http://members.aei.mpg.de/ianhin</a></div></div></div></div></div>
</div>
<br></body></html>