CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   Short question on command in user fortran (http://www.cfd-online.com/Forums/cfx/18358-short-question-command-user-fortran.html)

Franz Thomsen June 17, 2000 10:20

Short question on command in user fortran
 
I seem to have trouble finding an explanation in the manual When writing: IF (CNAME(1:2).EQ.'V ') THEN What does the 1:2 mean ?

Thanks in advance

Franz Thomsen Aalborg University

Glenn Horrocks June 18, 2000 19:40

Re: Short question on command in user fortran
 
Hi Franz,

cname(1:2) returns a string containing the first two characters of the string cname. For example, if cname="abcdefghij", then cname(1:2) returns "ab".

Welcome to the joys of fortran programming.

Glenn

Franz Thomsen June 20, 2000 06:35

Thanks
 
As subject


All times are GMT -4. The time now is 05:57.