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?
initial package
-
- Posts: 10
- Joined: Thu Oct 13, 2005 4:26 pm
- Location: Frontier Research Center for Global Change
Re: initial package
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
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