<div dir="ltr">Hi Sean,<div><br></div><div>That is the correct way to use that routine and should return the number of mpi ranks being used. It should match what gets written in the header of the logfile as "Number of MPI tasks:"</div><div><br></div><div>You might find it helpful to look at the <a href="https://flash.rochester.edu/site/flashcode/user_support/flash4_ug_4p62/node62.html#SECTION05192000000000000000">Grid_mapParticlesToMesh</a> routine for hints in how that one handles mapping particle attributes to field values at cells.</div><div><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">*************************************************************************</span><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr" style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Adam Reyes<div><img src="https://flash.rochester.edu/site/common/images/email_signature/FLASH.jpg"><br></div><div>Code Group Leader, Flash Center for Computational Science <span> </span><br></div><div>Research Scientist, Dept. of Physics and Astronomy</div><div>University of Rochester</div><div>River Campus: Bausch and Lomb Hall, 369 <span> </span><br></div><div>500 Wilson Blvd. PO Box 270171, Rochester, NY 14627</div><div dir="ltr">Email<span> </span><a href="mailto:adam.reyes@rochester.edu" target="_blank">adam.reyes@rochester.edu</a></div><div>Web<span> </span><a href="https://flash.rochester.edu/" target="_blank">https://flash.rochester.edu</a><br></div><div> (he / him / his)</div><div><img src="https://flash.rochester.edu/site/common/images/email_signature/FLASH-pride-sml.png"><br></div>*************************************************************************</div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 26, 2022 at 12:25 PM Lewis,Sean <<a href="mailto:scl63@drexel.edu">scl63@drexel.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg7189216638703932125">
<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_7189216638703932125WordSection1">
<p class="MsoNormal"><span style="font-size:11pt">Hi all,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">In my application, I am attempting to gather all block cell data post-refinement on particle distribution so that I can then manually set cell field values. To accomplish this, I cycle over each processor
and call Grid_getLocalNumBlks(). To know how many processors to cycle over, I first call Driver_getNumProcs(MESH_COMM, n), where MESH_ COMM is the Flash defined value and n is the output variable: total number of processors. In my application, Driver_getNumProcs()
always returns “1” no matter how many processors I use. The same is true if I pass the GLOBAL_COMM variable. Is there a hidden functionality here that I am missing? Does Driver_getNumProcs() return 1 intentionally? Is there another way for FLASH to internally
report the number of processors being used?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Thank you for any insight you can provide,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">-Sean<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:"Times New Roman",serif;color:black">Sean C. Lewis<u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Times New Roman",serif">Doctoral Candidate<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Times New Roman",serif">Department of Physics<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Times New Roman",serif">Drexel University</span><u></u><u></u></p>
</div>
</div>
_______________________________________________<br>
flash-users mailing list<br>
<a href="mailto:flash-users@flash.rochester.edu" target="_blank">flash-users@flash.rochester.edu</a><br>
<br>
For list info, including unsubscribe:<br>
<a href="https://flash.rochester.edu/mailman/listinfo/flash-users" rel="noreferrer" target="_blank">https://flash.rochester.edu/mailman/listinfo/flash-users</a><br>
</div></blockquote></div>