[ncl-talk] Fortran 90 extension with wrapit

Marston Ward marston.johnston at gu.se
Fri Dec 1 05:59:24 MST 2017


Hi,

I’ve written a F90 routine to do some heavy calculations within NCL.
I’ve followed the instructions on how to write the “stub” file: https://www.ncl.ucar.edu/Document/Tools/WRAPIT.shtml#FixingCommonProblems,
how to make sure there are no stray characters in code, as well as made sure the routine compiles as a standalone.
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
check with the NCL experts with experience in F90 routines and WRAPIT.
My files are attached and here is the error message when compiling (which is not much to go on):

$ WRAPIT -in binning_statsF90.stub binning_stats.F90

WRAPIT Version: 120209
/software/apps/comp_wrapper/intel/ifort
A syntax error occurred while parsing:
COMPILING binning_stats.F90
LINKING
END WRAPIT

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.

/M

Marston S. Ward
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171201/ea56e755/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binning_stats.F90
Type: application/octet-stream
Size: 1745 bytes
Desc: binning_stats.F90
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171201/ea56e755/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binning_statsF90.stub
Type: application/octet-stream
Size: 544 bytes
Desc: binning_statsF90.stub
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171201/ea56e755/attachment-0001.obj>


More information about the ncl-talk mailing list