<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">Dear <span class="" id=":4wz.1" tabindex="-1" style="">NCL</span> users,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">I ran into the segmentation fault when using the vinth2p to convert CAM hybrid levels to pressure levels.  The error message is:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default"><p style="color:rgb(0,0,0);font-family:Menlo;margin:0px;font-size:12px"> <a href="http://KP.GT">KP.GT</a>.<span class="" id=":4wz.2" tabindex="-1" style="">KLEVI</span> IN P2HBD.  KP,<span class="" id=":4wz.3" tabindex="-1" style="">KLEVI</span>=    31   30</p>
<p style="color:rgb(0,0,0);font-family:Menlo;margin:0px;font-size:12px">Segmentation fault</p><p style="color:rgb(0,0,0);font-family:Menlo;margin:0px;font-size:12px"><br></p><p style="margin:0px"><font face="arial, helvetica, sans-serif"><font color="#000000">I found the source code from <a href="https://github.com/yyr/ncl/blob/master/ni/src/lib/nfpfort/vinth2p_nodes_dp.f">online</a>, but didn&#39;t quite understand why the function gave me this error message.  Since I called this function in a time loop, the number of vertical levels (30 levels) for all the time steps are the same, still it crashed mid-way through the time loop.  </font></font></p></div><div><br></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">​Here are the code where I called this function to interpolate the <span class="" id=":4wz.4" tabindex="-1" style="">geopotential</span> height to 700hPa from hybrid coordinate:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><br></div><p style="margin:0px;font-size:12px;font-family:Menlo"><span class="" id=":4wz.5" tabindex="-1" style="">interp</span> = 1</p><p style="margin:0px;font-size:12px;font-family:Menlo">
</p><p style="margin:0px;font-size:12px;font-family:Menlo"><span class="" id=":4wz.6" tabindex="-1" style="">extrap</span> = False</p>
<p style="margin:0px;font-size:12px;font-family:Menlo"><span class="" id=":4wz.7" tabindex="-1" style="">pnew</span> = (/700./)</p>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><span style="font-family:Menlo;font-size:12px;color:rgb(34,34,34)"><span class="" id=":4wz.8" tabindex="-1" style="">HGTp</span> = vinth2p(HGT,<span class="" id=":4wz.9" tabindex="-1" style="">hyam</span>,<span class="" id=":4wz.10" tabindex="-1" style="">hybm</span>,<span class="" id=":4wz.11" tabindex="-1" style="">pnew</span>,PS,<span class="" id=":4wz.12" tabindex="-1" style="">interp</span>,P0mb,1,<span class="" id=":4wz.13" tabindex="-1" style="">extrap</span>)</span>​</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">Any thoughts on this is much appreciated since I&#39;ve never ran into this problem before.  Thank you.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">Best regards,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><span class="" id=":4wz.14" tabindex="-1" style="">Meina</span></div></div><br>
</div>