[ncl-talk] Fwd: about using Fortran90 code in NCL

zhuxiao li lizhuxiao70 at gmail.com
Mon Jun 20 15:02:07 MDT 2016


Hi There,

I have got a problem to use   external F90 code in NCL.
Actually, I just using the simple templet in
http://www.ncl.ucar.edu/Document/Manuals/language_man.pdf
page 36 of Section 7.3 f90 subroutines.

The problem is that when I use only the subroutine CQUAD to produce the
object file (.so) and then execute the ncl code, it works. Please see the
following attachment:

quad.f90,
quad90.stub,
ncl_F90_test_temple.ncl.

While when I include the subroutine in a module structure exactly like the
templet on P36 of the manual, it gave me some very tough error message,
please check the following attachments:

quad_module.f90,
mquad90.stub,
ncl_F90_test_temple_module.ncl

error_message_ncl_exe.txt
The NCL I am using is ncl-6.3.0, do you have some idea on what is the
reason of this problem?

Thanks very much in advance!

Zhuxiao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160620/25f846a7/attachment.html 
-------------- next part --------------
 Copyright (C) 1995-2015 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.3.0
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
warning:An error occurred loading the external file /global/biomds/users/spire/zl/Fortran90/Tom_F90_test/mquad90.so, file not loaded
/global/biomds/users/spire/zl/Fortran90/Tom_F90_test/mquad90.so: undefined symbol: mquad_

warning:error at line 9 in file ncl_F90_test_temple_module.ncl


fatal:syntax error: line 18 in file ncl_F90_test_temple_module.ncl before or near : 
QURD_MODULE:
-----------^


fatal:error in statement

fatal:Syntax Error in block, block not executed

fatal:error at line 22 in file ncl_F90_test_temple_module.ncl


-------------- next part --------------
A non-text attachment was scrubbed...
Name: quad.f90
Type: application/octet-stream
Size: 233 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160620/25f846a7/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quad90.stub
Type: application/octet-stream
Size: 103 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160620/25f846a7/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quad_module.f90
Type: application/octet-stream
Size: 289 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160620/25f846a7/attachment-0002.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mquad90.stub
Type: application/octet-stream
Size: 103 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160620/25f846a7/attachment-0003.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ncl_F90_test_temple.ncl
Type: application/octet-stream
Size: 801 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160620/25f846a7/attachment-0004.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ncl_F90_test_temple_module.ncl
Type: application/octet-stream
Size: 638 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160620/25f846a7/attachment-0005.obj 


More information about the ncl-talk mailing list