chars and f77

From: Josh Hacker (hacker AT XXXXXX)
Date: Thu Jul 29 2004 - 15:30:22 MDT


Hi all,

I know that passing characters to f77 routines is tricky, but I hope that someone has done this before:

I want to fill an array of strings in the f77 routine - how do I handle that? For example, this might make sense but it does not work:

-------------
external MYMOD "./my_mod.f"

begin

char_array = new((/1000,14/),char)

MYMOD::my_mod(char_array)

end

--------------
C NCLFORTSTART
subroutine my_mod(ch_array)

character*14 ch_array(1000)

C NCLEND

C fill the array

end

Ideas? I am using version 4.2.0.a030 with Debian Linux.

Cheers,
Josh

-- 
Joshua Hacker
Research Applications Program
NCAR/UCAR
email: hacker AT ucar.edu
voice: 303-497-8188
fax: 303-497-8401

_______________________________________________ ncl-talk mailing list ncl-talk AT ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Fri Jul 30 2004 - 13:13:25 MDT