Software Archive
Read-only legacy content
17061 Discussions

variable length Charcater declaration

Intel_C_Intel
Employee
307 Views
I am using CVF 6.5 on a NT4.0 workstation

The following character declaration statements produce errors. I think
my syntax is correct. Is it not possible to declare variable length
characters in CVF? Thanks for your help.......................Animesh

 character d*(*) 
 character e*(*) 
 character*(*) f 
 character(len=*) g 
 character(*) ba 
 
Compiling Fortran... 
D:AutomatePLatesourceNastran.f90 
D:AutomatePLatesourceNastran.f90(7) : Error: This passed length 
character name has been used in an invalid context.    
 character d*(*) 
------------------^ 
D:AutomatePLatesourceNastran.f90(8) : Error: This passed length 
character name has been used in an invalid context.    
 character e*(*) 
------------------^ 
D:AutomatePLatesourceNastran.f90(9) : Error: This passed length 
character name has been used in an invalid context.    
 character*(*) f 
----------------------^ 
D:AutomatePLatesourceNastran.f90(10) : Error: This passed length 
character name has been used in an invalid context.    
 character(len=*) g 
-------------------------^ 
D:AutomatePLatesourceNastran.f90(11) : Error: This passed length 
character name has been used in an invalid context.   [BA] 
 character(*) ba 
---------------------^ 
Error executing df.exe. 
 
NastranSession.exe - 5 error(s), 0 warning(s)
0 Kudos
1 Reply
Steven_L_Intel1
Employee
307 Views
See the responses you got in comp.lang.fortran

I notice you've been asking a lot of questions recently that suggest an unfamiliarity with the Fortran language. You may want to consider looking for a tutorial book on Fortran to help get you up to speed.

Steve
0 Kudos
Reply