<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">It would be substantially easier to send the actual file along with demo NCL lines to call the fortran code. &nbsp;&nbsp;<div class=""><br class=""></div><div class="">I just fixed about 6 errors related to spacing and the fact that you didn’t close the do loops or end the subroutine. &nbsp;These were probably copy/paste errors based on your WRAPIT -d output.&nbsp;</div><div class=""><br class=""></div><div class="">After fixing the compiler errors, I can get the code to be called and subsequently segfault cause I passed it a bunch of missing data. &nbsp;fortran code without copy paste errors attached. &nbsp;It’s not clear, to me at least, where the error actually lies.&nbsp;</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><div class="">&gt;ncl</div><div class="">ncl 0&gt; external ex1 "./dale_test.so"</div><div class="">ncl 1&gt; x = new(183, float)</div><div class="">ncl 2&gt; ex1::ES(x,x,x,x,x,x,x,x,x,x)</div><div class="">Segmentation fault (core dumped)</div></div></div><div class=""><br class=""></div><div class="">Also Dennis wil have meant&nbsp;</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>gcc --version</div><div class=""><br class=""></div><div class=""><br class=""><div class=""></div></div></body></html>