Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Character String Length Problems

$
0
0

To the Intel Forum,

I'm converting a Compaq Fortran code to compile and run under Intel Fortran XE 2013 SP1 (M/S Windows 7)  However, I seem to be having some very basic Character String length problems when using the debug tool under Intel Fortran 2013. For example:

CHARACTER ACS*5, NAME*10

ACS = 'Pitch'

give an error, or even inserting a character from one string into another with I=3,

WFILE(1:1) = NAME(I:I)

also generates an error under Debug step through.

Increasing the string length of ACS to *6 removes the problem.  Any ideas on what may be causing this 'length problem' ? ( compiler settings ?).

Thank you, Gerald Reeves.

 


Viewing all articles
Browse latest Browse all 3270

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>