<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body>
<div name="messageBodySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">
Hi,
<div><br>
</div>
<div>I’ve written a F90 routine to do some heavy calculations within NCL.</div>
<div>I’ve followed the instructions on how to write the “stub” file: <a href="https://www.ncl.ucar.edu/Document/Tools/WRAPIT.shtml#FixingCommonProblems">https://www.ncl.ucar.edu/Document/Tools/WRAPIT.shtml#FixingCommonProblems</a>, </div>
<div>how to make sure there are no stray characters in code, as well as made sure the routine compiles as a standalone.</div>
<div>However, when I run WRAPIT -in  stubfile myfile.F90 I get the following, despite that the SO file is created. I’ve not yet check the SO file but wanted to</div>
<div>check with the NCL experts with experience in F90 routines and WRAPIT.</div>
<div>My files are attached and here is the error message when compiling (which is not much to go on):<br>
</div>
<div><br>
</div>
<div>
<div>$ WRAPIT -in binning_statsF90.stub binning_stats.F90</div>
<div><br>
</div>
<div>WRAPIT Version: 120209</div>
<div>/software/apps/comp_wrapper/intel/ifort</div>
<div>A syntax error occurred while parsing:</div>
<div>COMPILING binning_stats.F90</div>
<div>LINKING</div>
<div>END WRAPIT</div>
<div><br>
</div>
</div>
<div>Would appreciate some thoughts on what’s going on. Just to reiterate a bit. I’ve gone through the trouble shooting part of the doc and made sure I’ve not made some mistakes that WRAPIT can’t handle, but fortran can. </div>
<div><br>
</div>
<div>/M</div>
</div>
<div name="messageSignatureSection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">
<br>
<p class="MsoNormal"><b><i>Marston S. Ward</i></b><br>
</p>
</div>
</body>
</html>