<div dir="ltr"><div class="gmail_default" style="font-family:monospace;font-size:large">I'm not sure what you mean by inside the i,j,k loops, is my radius on the wrong line?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 31, 2023 at 10:32 AM Hansen, Eddie <<a href="mailto:ehansen@pas.rochester.edu">ehansen@pas.rochester.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="msg-5091376308081933407">
<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_-5091376308081933407WordSection1">
<p class="MsoNormal"><span style="font-size:11pt">The line calculating ‘radius’ needs to go inside the I,j,k do loops. Also, keep in mind that his is radius^2 (maybe that’s what you want for your modifications).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11pt;color:black">--</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:rgb(24,26,27)">Eddie Hansen</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:rgb(24,26,27)">Applications Group Leader<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:rgb(24,26,27)">Flash Center for Computational Science</span><span style="color:black"><u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p class="MsoNormal" style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">Peter Manzella <<a href="mailto:peter.manzella@maine.edu" target="_blank">peter.manzella@maine.edu</a>><br>
<b>Date: </b>Tuesday, October 31, 2023 at 10:16 AM<br>
<b>To: </b>Hansen, Eddie <<a href="mailto:ehansen@pas.rochester.edu" target="_blank">ehansen@pas.rochester.edu</a>><br>
<b>Cc: </b><a href="mailto:flash-users@flash.rochester.edu" target="_blank">flash-users@flash.rochester.edu</a> <<a href="mailto:flash-users@flash.rochester.edu" target="_blank">flash-users@flash.rochester.edu</a>><br>
<b>Subject: </b>[EXT] Re: [FLASH-USERS] Segmentation fault after file modification<u></u><u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:18pt;font-family:"Courier New"">I can share that, and the debug message I get after I have added the "-debug" flag as well. Here is the debug message,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:18pt;font-family:"Courier New""><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:13.5pt;font-family:"Courier New"">At line 119 of file IO_writeIntegralQuantities.F90</span><span style="font-size:11pt;font-family:"Courier New""><br>
</span><span style="font-size:13.5pt;font-family:"Courier New"">Fortran runtime error: Index '1997467855' of dimension 1 of array 'xcenter' above upper bound of 24</span><span style="font-size:11pt;font-family:"Courier New""><br>
<br>
Error termination. Backtrace:<br>
At line 119 of file IO_writeIntegralQuantities.F90<br>
Fortran runtime error: Index '0' of dimension 1 of array 'xcenter' below lower bound of 1<br>
<br>
Error termination. Backtrace:<br>
Fortran runtime error: Index '0' of dimension 1 of array 'xcenter' below lower bound of 1<br>
<br>
Error termination. Backtrace:<br>
At line 119 of file IO_writeIntegralQuantities.F90<br>
Fortran runtime error: Index '50696040' of dimension 1 of array 'xcenter' above upper bound of 24<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:18pt;font-family:"Courier New""><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:18pt;font-family:"Courier New"">And attached is the modified file. <u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11pt">On Tue, Oct 31, 2023 at 10:05 AM Hansen, Eddie <<a href="mailto:ehansen@pas.rochester.edu" target="_blank">ehansen@pas.rochester.edu</a>> wrote:<u></u><u></u></span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11pt">Hello,<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">It depends on how you modified it. If you share your modified routine, someone might be able to find the bug.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"> <u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11pt;color:black">--</span><span style="font-size:11pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:rgb(24,26,27)">Eddie Hansen</span><span style="font-size:11pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:rgb(24,26,27)">Applications Group Leader</span><span style="font-size:11pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:rgb(24,26,27)">Flash Center for Computational Science</span><span style="font-size:11pt"><u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:11pt"> <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"> <u></u><u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p class="MsoNormal" style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">flash-users <<a href="mailto:flash-users-bounces@flash.rochester.edu" target="_blank">flash-users-bounces@flash.rochester.edu</a>> on behalf of Peter Manzella <<a href="mailto:peter.manzella@maine.edu" target="_blank">peter.manzella@maine.edu</a>><br>
<b>Date: </b>Monday, October 30, 2023 at 3:01 PM<br>
<b>To: </b><a href="mailto:flash-users@flash.rochester.edu" target="_blank">flash-users@flash.rochester.edu</a> <<a href="mailto:flash-users@flash.rochester.edu" target="_blank">flash-users@flash.rochester.edu</a>><br>
<b>Subject: </b>[FLASH-USERS] Segmentation fault after file modification</span><span style="font-size:11pt"><u></u><u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:18pt;font-family:"Courier New"">Hello,<br clear="all">
</span><span style="font-size:11pt"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:18pt;font-family:"Courier New""> </span><span style="font-size:11pt"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:18pt;font-family:"Courier New"">I recently modified IO_writeIntegralQuantities.F90, and in doing so, I've gotten a segmentation fault issue. I am trying
to track it down, but am having some trouble, are there some ways I can go about doing this? Any suggestions? Help is appreciated!</span><span style="font-size:11pt"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11pt"> <u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span class="m_-5091376308081933407m3299283560653031139gmailsignatureprefix"><span style="font-size:11pt">--
</span></span><span style="font-size:11pt"><u></u><u></u></span></p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11pt">Peter Manzella<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11pt">PhD Candidate, Department of Physics and Astronomy<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11pt">309 Bennett Hall<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11pt">University of Maine<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11pt"><a href="mailto:peter.manzella@maine.edu" target="_blank">peter.manzella@maine.edu</a><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11pt"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Arial,sans-serif">“If you run out of ideas follow the road; you'll get there.” – Edgar Allan Poe</span><span style="font-size:11pt"><u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><span style="font-size:11pt"><br clear="all">
<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
</div>
<p class="MsoNormal"><span class="m_-5091376308081933407gmailsignatureprefix"><span style="font-size:11pt">--
</span></span><span style="font-size:11pt"><u></u><u></u></span></p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11pt">Peter Manzella<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11pt">PhD Candidate, Department of Physics and Astronomy<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11pt">309 Bennett Hall<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11pt">University of Maine<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11pt"><a href="mailto:peter.manzella@maine.edu" target="_blank">peter.manzella@maine.edu</a><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Arial,sans-serif">“If you run out of ideas follow the road; you'll get there.” – Edgar Allan Poe</span><span style="font-size:11pt"><u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>
</div></blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Peter Manzella<br></div><div>PhD Candidate, Department of Physics and Astronomy</div><div>309 Bennett Hall</div><div>University of Maine</div><div><a href="mailto:peter.manzella@maine.edu" target="_blank">peter.manzella@maine.edu</a></div><div><br></div><div><font face="arial, sans-serif">“If you run out of ideas follow the road; you'll get there.” – Edgar Allan Poe</font><br></div></div></div>