<div dir="ltr"><div>Hello,</div><div><br></div><div>I'm having a problem using WRAPIT. I've tried to run the example and get the following warning:</div><div><br></div><div><br></div><div>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</div><div>/Users/bubanm/IDEAL_COMMAS/nclplots 217> WRAPIT ex.f</div><div> </div><div>WRAPIT Version: 120209</div><div>WRAPIT.c:47:2: warning: implicit declaration of function 'ex_' is invalid in C99 [-Wimplicit-function-declaration]</div><div> NGCALLF(ex,EX)(II,XX);</div><div> ^</div><div>/usr/local/ncl-6.3.0/include/ncarg/c.h:31:29: note: expanded from macro 'NGCALLF'</div><div>#define NGCALLF(reg,caps) reg##_</div><div> ^</div><div><scratch space>:300:1: note: expanded from here</div><div>ex_</div><div>^</div><div>1 warning generated.</div><div>COMPILING ex.f</div><div>LINKING</div><div>END WRAPIT</div><div> </div><div>/Users/bubanm/IDEAL_COMMAS/nclplots 218> ncl ex.ncl</div><div> Copyright (C) 1995-2015 - All Rights Reserved</div><div> University Corporation for Atmospheric Research</div><div> NCAR Command Language Version 6.3.0</div><div> The use of this software is governed by a License Agreement.</div><div> See <a href="http://www.ncl.ucar.edu/">http://www.ncl.ucar.edu/</a> for more details.</div><div>(0)<span class="" style="white-space:pre">        </span>before i = 5</div><div>(0)<span class="" style="white-space:pre">        </span>before x = 1.3</div><div>(0)<span class="" style="white-space:pre">        </span>after i = 10</div><div>(0)<span class="" style="white-space:pre">        </span>after x = -11.045</div><div>/Users/bubanm/IDEAL_COMMAS/nclplots 219> </div><div><br></div><div>output from uname -a</div><div><br></div>
<div>Darwin Michael-Bubans-Mac-Pro.local 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64<br></div><div>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</div><div><br></div><div><br></div><div>I get the WRAPIT warning but the ncl script seems to work for this example. However I get the same warning from WRAPIT from the script I'm trying to run, but the ncl fails with the following:</div><div><br></div><div><br></div><div>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</div><div><div>WRAPIT Version: 120209</div><div>WRAPIT.c:125:2: warning: implicit declaration of function 'cldsi_' is invalid in C99</div><div> [-Wimplicit-function-declaration]</div><div> NGCALLF(cldsi,CLDSI)(clds,ntime,nz,ny,nx,ixend,jyend,tm);</div><div> ^</div><div>/usr/local/ncl-6.3.0/include/ncarg/c.h:31:29: note: expanded from macro 'NGCALLF'</div><div>#define NGCALLF(reg,caps) reg##_</div><div> ^</div><div><scratch space>:300:1: note: expanded from here</div><div>cldsi_</div><div>^</div><div>1 warning generated.</div><div>COMPILING sizes2.f</div><div>LINKING</div><div>END WRAPIT</div><div> </div><div>/Users/bubanm/IDEAL_COMMAS/vi_ideal/vrun11 236> ncl cloud_dist2.ncl </div><div> Copyright (C) 1995-2015 - All Rights Reserved</div><div> University Corporation for Atmospheric Research</div><div> NCAR Command Language Version 6.3.0</div><div> The use of this software is governed by a License Agreement.</div><div> See <a href="http://www.ncl.ucar.edu/">http://www.ncl.ucar.edu/</a> for more details.</div><div>warning:An error occurred loading the external file ./sizes2.so, file not loaded</div><div>dlopen(./sizes2.so, 2): Symbol not found: _cld_</div><div> Referenced from: ./sizes2.so</div><div> Expected in: flat namespace</div><div> in ./sizes2.so</div><div>warning:error at line 14 in file cloud_dist2.ncl</div><div><br></div><div>fatal:syntax error: line 56 in file cloud_dist2.ncl before or near : </div><div> SIZES2:</div><div>---------^</div><div><br></div><div>fatal:error in statement</div><div>fatal:Syntax Error in block, block not executed</div><div>fatal:error at line 124 in file cloud_dist2.ncl</div></div><div>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</div><div><br></div><div><br></div><div>I've also attached the file that I'm trying to run WRAPIT on.</div><div><br></div><div>Any help would be much appreciated.</div><div><br></div><div>Thanks,</div><div><br></div><div><br></div><div>Mike</div><div><br></div><div><br></div></div>