initial package

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
edith
Posts: 19
Joined: Thu Jun 15, 2006 2:25 pm
Location: Tallinn University of Tecnology Marinsystem ins.

initial package

#1 Unread post by edith »

I am trying to compile initial package in fortran but then I get strange thing.
Error occurs in def_out.F:

In field def_out.F:167

lsdim=Vname(6,idVbar)

Error: Can’t convert character to integer(4)


and indeed Vname(*,*) is defined as character and lsdim is defined as integer. I don’t understand what should I do?

Previously I had problem with variable Mv that was defined in same file and MV that was defined in parameter.h (it didn’t understand that they were not same thing) so I renamed Mv inside this file. Could that cause this problem? I don’t see how? I am not sure I understand how it should be possible to convert sring to integer?

what i am doing wrong?

jvratnam
Posts: 10
Joined: Thu Oct 13, 2005 4:26 pm
Location: Frontier Research Center for Global Change

Re: initial package

#2 Unread post by jvratnam »

Hi

the problem can be solved by declaring some variable say
character*60 tempnam in def_out.F

then making the following modifications:

Instead of

lsdim=Vname(6,idFsur)

you can have

tempnam=Vname(6,idFsur)
lsdim=lenstr(tempnam)

Ratnam

Post Reply