<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. <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. These were probably copy/paste errors based on your WRAPIT -d output. </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. fortran code without copy paste errors attached. It’s not clear, to me at least, where the error actually lies. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><div class="">>ncl</div><div class="">ncl 0> external ex1 "./dale_test.so"</div><div class="">ncl 1> x = new(183, float)</div><div class="">ncl 2> 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 </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>