WRAPIT

From: Mingxuan Chen <chen_at_nyahnyahspammersnyahnyah>
Date: Tue Mar 12 2013 - 15:11:39 MDT

Hello,
  when I use ex.f and ex.ncl in my Mac (OS X version 10.8.2) and ncl 6.1.0 0r ncl 6.1.2
the results show a strange error .
 However I run the same code in another machine carver(IBM iDataPlex system), no problem at tall.
 What is wrong?
  Thanks for your help.
Mingxuan
  
----------------------------------------------
fjord 11:14 /Users/chen/CMIP5> WRAPIT -m64 ex.f
 
WRAPIT Version: 120209
COMPILING ex.f
LINKING
END WRAPIT
fjord 11:18 /Users/chen/CMIP5> ncl ex.ncl
 Copyright (C) 1995-2013 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.1.2
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
(0) before i = 5
(0) before x = 1.3
          10
 ???
At line 10 of file ex.f (unit = 6, file = 'stdout')
Fortran runtime error: Expected REAL for item 2 in formatted transfer, got CHARACTER
(F10.2)
 ^
--------------------------------
---------------ex.f---------------
C NCLFORTSTART
      SUBROUTINE EX (II,XX)
      INTEGER II
      REAL XX
C NCLEND
      II = II + 5
      XX = XX - 12.345
      print *,II
      print *,XX
      write(6,20)XX
 20 Format(F10.2)
      RETURN
      END
-----------------------

---------ex.ncl--------
external EX "./ex.so"

begin
  i = 5
  x = 1.3
  print("before i = " + i)
  print("before x = " + x)
  EX:: ex(i,x)
  print("after i = " + i)
  print("after x = " + x)
end
--------------------------------

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Mar 12 13:11:50 2013

This archive was generated by hypermail 2.1.8 : Wed Mar 13 2013 - 14:19:38 MDT