<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;" class=""><div class="">Dear Iulian, how do I enable debug mode?</div><div class="">I want to be sure compile with the right flags…</div><div class=""><br class=""></div><div class="">Thanks </div><div class="">Lorenzo</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On 02 Dec 2015, at 18:03, Grindeanu, Iulian R. <<a href="mailto:iulian@mcs.anl.gov" class="">iulian@mcs.anl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 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; direction: ltr; font-family: Tahoma; font-size: 10pt;" class="">Hi Lorenzo,<br class="">Your code works on my linux machine.<br class="">It could be something specific to OSX,<span class="Apple-converted-space"> </span><br class="">Sometimes we find that OSX uncovers bugs<span class="Apple-converted-space"> </span><br class=""><br class="">You mentioned that there is a seg fault at pcomm_tag(mbImpl, true)<br class=""><br class="">It just creates there a sparse tag with name __PARALLEL_COMM, which will be used to store ParallelComm objects on the root (entity handle = 0)<br class=""><br class="">Can you compile in debug mode and give more trace info?<br class=""><br class="">Thanks,<br class="">Iulian<br class=""><br class=""><div style="font-family: 'Times New Roman'; font-size: 16px;" class=""><hr tabindex="-1" class=""><div id="divRpF408631" style="direction: ltr;" class=""><font size="2" face="Tahoma" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Lorenzo Alessio Botti [<a href="mailto:lorenzoalessiobotti@gmail.com" class="">lorenzoalessiobotti@gmail.com</a>]<br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Wednesday, December 02, 2015 10:20 AM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>MOAB dev<br class=""><b class="">Cc:</b><span class="Apple-converted-space"> </span>Grindeanu, Iulian R.; Vijay S. Mahadevan<br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [MOAB-dev] problem with pcomm<br class=""></font><br class=""></div><div class=""></div><div class=""><div class=""><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">=====================================</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> MOAB 4.8.2: test/test-suite.log</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">=====================================</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># TOTAL: 35</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># PASS: 35</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># SKIP: 0</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># XFAIL: 0</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># FAIL: 0</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># XPASS: 0</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># ERROR: 0</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">.. contents:: :depth: 2</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div></div><div class="">This is the sole failure.</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">==============================================</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> MOAB 4.8.2: test/parallel/test-suite.log</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">==============================================</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># TOTAL: 11</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># PASS: 10</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># SKIP: 0</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># XFAIL: 0</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># FAIL: 1</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># XPASS: 0</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># ERROR: 0</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">.. contents:: :depth: 2</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">FAIL: parallel_hdf5_test</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">========================</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_write_elements ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_write_elements ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Warning: acis file has sequence numbers!</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Warning: acis file has sequence numbers!</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Warning: acis file has sequence numbers!</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_write_shared_sets ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_write_shared_sets ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Warning: acis file has sequence numbers!</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Warning: acis file has sequence numbers!</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Warning: acis file has sequence numbers!</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_var_length_parallel ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_var_length_parallel ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_read_elements ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_read_elements ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_read_elements_by_rank ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_read_elements_by_rank ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_read_tags ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_read_tags ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_read_global_tags ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_read_global_tags ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_read_sets ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_read_sets ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_read_sets_bcast_dups ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_read_sets_bcast_dups ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_read_sets_read_dups ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_read_sets_read_dups ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_read_bc_sets ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Running test_read_bc_sets ...</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">Fatal error in MPI_Reduce: Invalid datatype, error stack:</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">MPI_Reduce(1258): MPI_Reduce(sbuf=0x7fff533896d4, rbuf=0x7fff533896c8, count=3, MPI_DATATYPE_NULL, MPI_SUM, root=0, MPI_COMM_WORLD) failed</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">MPI_Reduce(1168): Datatype for argument datatype is a null datatype</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">FAIL parallel_hdf5_test (exit status: 3)</div><div class=""><br class=""></div></div><div class=""><br class=""></div><div class="">The whole code, without any MPI initialisation,</div><div class=""><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(206, 121, 36); background-color: rgb(0, 0, 0);" class=""><span class="" style="color: rgb(213, 59, 211);">#include<span class="Apple-converted-space"> </span></span>"moab/ParallelComm.hpp"</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(206, 121, 36); background-color: rgb(0, 0, 0);" class=""><span class="" style="color: rgb(213, 59, 211);">#include<span class="Apple-converted-space"> </span></span>"MBParallelConventions.h"</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(206, 121, 36); background-color: rgb(0, 0, 0);" class=""><span class="" style="color: rgb(213, 59, 211);">#include<span class="Apple-converted-space"> </span></span>"MBTagConventions.hpp"</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(206, 121, 36); background-color: rgb(0, 0, 0);" class=""><span class="" style="color: rgb(213, 59, 211);">#include<span class="Apple-converted-space"> </span></span>"moab/Core.hpp"</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(206, 121, 36); background-color: rgb(0, 0, 0);" class=""><span class="" style="color: rgb(213, 59, 211);">#include<span class="Apple-converted-space"> </span></span>"moab_mpi.h"</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 189, 38); background-color: rgb(0, 0, 0);" class=""><span class="" style="color: rgb(175, 173, 36);">using</span><span class="" style="color: rgb(245, 245, 245);"> </span>namespace<span class="" style="color: rgb(245, 245, 245);"><span class="Apple-converted-space"> </span>moab;</span></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><span class="" style="color: rgb(52, 189, 38);">int</span><span class="Apple-converted-space"> </span>main(<span class="" style="color: rgb(52, 189, 38);">int</span><span class="Apple-converted-space"> </span>argc,<span class="Apple-converted-space"> </span><span class="" style="color: rgb(52, 189, 38);">char</span><span class="Apple-converted-space"> </span>**argv)</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">{</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> Core moab;</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> Interface& imoab = moab;</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> ParallelComm* pcomm = ParallelComm::get_pcomm(&moab,<span class="Apple-converted-space"> </span><span class="" style="color: rgb(206, 121, 36);">0</span>);</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> <span class="Apple-converted-space"> </span><span class="" style="color: rgb(175, 173, 36);">if</span><span class="Apple-converted-space"> </span>(<span class="" style="color: rgb(206, 121, 36);">0</span><span class="Apple-converted-space"> </span>== pcomm)</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> {</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> pcomm =<span class="Apple-converted-space"> </span><span class="" style="color: rgb(175, 173, 36);">new</span><span class="Apple-converted-space"> </span>ParallelComm(&imoab, MPI_COMM_WORLD);</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> }</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> <span class="Apple-converted-space"> </span><span class="" style="color: rgb(175, 173, 36);">delete</span><span class="Apple-converted-space"> </span>pcomm;</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(206, 121, 36); background-color: rgb(0, 0, 0);" class=""><span class="" style="color: rgb(245, 245, 245);"> <span class="Apple-converted-space"> </span></span><span class="" style="color: rgb(175, 173, 36);">return</span><span class="" style="color: rgb(245, 245, 245);"> </span>EXIT_SUCCESS<span class="" style="color: rgb(245, 245, 245);">;</span></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">};</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""><b class="">~ </b></div></div><div class=""><br class=""></div><div class="">This is the Makefile</div><div class=""><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><span class="" style="color: rgb(52, 187, 199);"><b class="">MOAB_LIB_DIR<span class="Apple-converted-space"> </span></b></span>= /Users/ihabia/src2/moab-4.8.2/moab/</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><span class="" style="color: rgb(213, 59, 211);">include</span><span class="Apple-converted-space"> </span><span class="" style="color: rgb(52, 187, 199);"><b class="">$(MOAB_LIB_DIR)</b></span>/lib/moab.make</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""><b class="">%.o :</b><span class="" style="color: rgb(245, 245, 245);"> </span><b class="">%</b><span class="" style="color: rgb(245, 245, 245);">.cpp</span></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(206, 121, 36); background-color: rgb(0, 0, 0);" class=""><span class="" style="color: rgb(213, 59, 211);"> @</span>echo "Compiling ("<span class="" style="color: rgb(52, 187, 199);"><b class="">$(CXX)</b></span>") "<span class="" style="color: rgb(52, 187, 199);"><b class="">$<</b></span>" "</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""><span class="" style="color: rgb(213, 59, 211);"> @</span><b class="">$(CXX)</b><span class="" style="color: rgb(206, 121, 36);"> </span><b class="">${MOAB_INCLUDES}</b><span class="" style="color: rgb(206, 121, 36);"><span class="Apple-converted-space"> </span>-c<span class="Apple-converted-space"> </span></span><b class="">$<</b><span class="" style="color: rgb(206, 121, 36);"><span class="Apple-converted-space"> </span>-o<span class="Apple-converted-space"> </span></span><b class="">$@</b></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><span class="" style="color: rgb(52, 187, 199);"><b class="">CXX<span class="Apple-converted-space"> </span></b></span>= mpicxx -O2 -DNDEBUG</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""><b class="">objects<span class="Apple-converted-space"> </span></b><span class="" style="color: rgb(245, 245, 245);">:=<span class="Apple-converted-space"> </span></span><b class="">$(</b><span class="" style="color: rgb(175, 173, 36);">patsubst</span><b class=""><span class="Apple-converted-space"> </span>%.cpp,%.o,$(</b><span class="" style="color: rgb(175, 173, 36);">wildcard</span><b class=""><span class="Apple-converted-space"> </span>./*.cpp))</b></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""><b class="">mbtestrun :</b><span class="" style="color: rgb(245, 245, 245);"> </span><b class="">$(objects)</b></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(206, 121, 36); background-color: rgb(0, 0, 0);" class=""><span class="" style="color: rgb(213, 59, 211);"> @</span>echo "Linking "<span class="" style="color: rgb(52, 187, 199);"><b class="">$(CURDIR)</b></span>"/"<span class="" style="color: rgb(52, 187, 199);"><b class="">$@</b></span></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""><span class="" style="color: rgb(213, 59, 211);"> @</span><b class="">$(CXX)</b><span class="" style="color: rgb(206, 121, 36);"> </span><b class="">$(objects)</b><span class="" style="color: rgb(206, 121, 36);"><span class="Apple-converted-space"> </span>-o<span class="Apple-converted-space"> </span></span><b class="">$@</b><span class="" style="color: rgb(206, 121, 36);"> </span><b class="">$(MOAB_LIBS_LINK)</b><span class="" style="color: rgb(206, 121, 36);"> </span></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(175, 173, 36); background-color: rgb(0, 0, 0);" class="">.PHONY :<span class="" style="color: rgb(245, 245, 245);"><span class="Apple-converted-space"> </span>clean </span></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""><b class="">clean :</b></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""><span class="" style="color: rgb(213, 59, 211);"> @</span><span class="" style="color: rgb(206, 121, 36);">rm<span class="Apple-converted-space"> </span></span><b class="">$(objects)</b></div><div class=""><b class=""><br class=""></b></div></div><div class=""><br class=""></div><div class="">and this is mob.make</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># The values below are for an un-installed copy of MOAB used directly</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># from its build build directory. These values will be overridden below</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># for installed copies of MOAB.</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">MOAB_LIBDIR = /Users/ihabia/src2/moab-4.8.2/src/.libs</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">MOAB_INCLUDES = -I/Users/ihabia/src2/moab-4.8.2/src \</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> -I/Users/ihabia/src2/moab-4.8.2/src \</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> -I/Users/ihabia/src2/moab-4.8.2/src/oldinc \</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> -I/Users/ihabia/src2/moab-4.8.2/src/parallel \</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> -I/Users/ihabia/src2/moab-4.8.2/src/parallel</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">MOAB_INCLUDES +=</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">MOAB_CPPFLAGS = -I/Users/ihabia/src2/hdf5-1.8.16/hdf5//include -isystem /Users/ihabia/src2/hdf5-1.8.16/hdf5//include</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">MOAB_CXXFLAGS = -Wall -pipe -pedantic -Wno-long-long -Wextra -Wcast-align -Wpointer-arith -Wformat -Wformat-security -Wshadow -Wunused-parameter -stdlib=libstdc++ -O2 -DNDEBUG</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">MOAB_CFLAGS = -Wall -pipe -pedantic -Wno-long-long -Wextra -Wcast-align -Wpointer-arith -Wformat -Wformat-security -Wshadow -Wunused-parameter -O2 -DNDEBUG</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">MOAB_FFLAGS =</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">MOAB_FCFLAGS =</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">MOAB_LDFLAGS = -L/Users/ihabia/src2/hdf5-1.8.16/hdf5//lib -stdlib=libstdc++</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">MOAB_LIBS_LINK = ${MOAB_LDFLAGS} -L${MOAB_LIBDIR} -lMOAB -lhdf5 -lc++ -lz -ldl -lm -lc++ -lz -ldl -lm</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">DAGMC_LIBS_LINK = ${MOAB_LDFLAGS} -L${MOAB_LIBDIR} -lMOAB -lhdf5 -lc++ -lz -ldl -lm -lc++ -lz -ldl -lm</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">MOAB_CXX = /Users/ihabia/src2/mpich-3.2/mpich3//bin/mpicxx</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">MOAB_CC = /Users/ihabia/src2/mpich-3.2/mpich3//bin/mpicc</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">MOAB_FC =</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">MOAB_F77 =</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># Override MOAB_LIBDIR and MOAB_INCLUDES from above with the correct</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""># values for the installed MOAB.</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">MOAB_LIBDIR=/Users/ihabia/src2/moab-4.8.2/moab/lib</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">MOAB_INCLUDES=-I/Users/ihabia/src2/moab-4.8.2/moab/include</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><blockquote type="cite" class=""><div class="">On 02 Dec 2015, at 16:17, Grindeanu, Iulian R. <<a href="mailto:iulian@mcs.anl.gov" class="" target="_blank">iulian@mcs.anl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">Hi Lorenzo,<br class=""><br class="">Do you initialize MPI before using moab?<span class="Apple-converted-space"> </span><br class=""><br class=""><br class="">Iulian<br class=""><br class="">________________________________________<br class="">From:<span class="Apple-converted-space"> </span><a href="mailto:moab-dev-bounces@mcs.anl.gov" class="" target="_blank">moab-dev-bounces@mcs.anl.gov</a><span class="Apple-converted-space"> </span>[<a href="mailto:moab-dev-bounces@mcs.anl.gov" class="" target="_blank">moab-dev-bounces@mcs.anl.gov</a>] on behalf of Vijay S. Mahadevan [<a href="mailto:vijay.m@gmail.com" class="" target="_blank">vijay.m@gmail.com</a>]<br class="">Sent: Wednesday, December 02, 2015 9:08 AM<br class="">To: Lorenzo Alessio Botti<br class="">Cc: MOAB dev<br class="">Subject: Re: [MOAB-dev] problem with pcomm<br class=""><br class="">Lorenzo, we test your configuration very regularly (on buildbot and on<br class="">linux machines) and I haven't seen any issues with ParallelComm. Does<br class="">"make check" pass cleanly ?<br class=""><br class="">I'll see if I can replicate this on my Mac.<br class=""><br class="">Vijay<br class=""><br class="">On Wed, Dec 2, 2015 at 8:49 AM, Lorenzo Alessio Botti<br class=""><<a href="mailto:lorenzoalessiobotti@gmail.com" class="" target="_blank">lorenzoalessiobotti@gmail.com</a>> wrote:<br class=""><blockquote type="cite" class="">Dear All,<br class="">I have a problem with the latest moab builds (both 4.8.2 and 4.9)…<br class="">I cannot run the following code in an application linked to moab<br class=""><br class=""> Core moab;<br class=""><br class=""> Interface& imoab = moab;<br class=""><br class=""><br class=""> ParallelComm* pcomm = ParallelComm::get_pcomm(&moab, 0);<br class=""><br class=""> if (0 == pcomm)<br class=""><br class=""> {<br class=""><br class=""> pcomm = new ParallelComm(&imoab, MPI_COMM_WORLD);<br class=""><br class=""> }<br class=""><br class=""> delete pcomm;<br class=""><br class=""><br class="">It seems that a segmentation fault is triggered during the initialization of<br class="">the pcomm in particular in this function<br class=""><br class=""> Tag ParallelComm::pcomm_tag(Interface *impl,<br class=""><br class=""> bool create_if_missing)<br class=""><br class=""><br class="">with create_if_missing = true.<br class=""><br class="">I’m building on OS X.<br class="">Have you ever experienced this issue? What can I do?<br class=""><br class="">I attach the config.log below<br class=""><br class=""><br class=""><br class="">Bests<br class="">Lorenzo</blockquote></div></blockquote></div></div></div></div></div></blockquote></div><br class=""></body></html>