Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

select character type

$
0
0

Here is the situation: I use unlimited polymorphic variable as dummy argument and in select section, how can I select character type with specified length(assume length 1) ? I've tried:

SELECT TYPE(var)
TYPE IS(CHARACTER(1))
   ....
TYPE IS(CHARACTER*1)
   ....
TYPE IS(CHARACTER(LEN=1))
   ....
END SELECT

But none of the above is correct. and only TYPE IS(CHARACTER(*)) can pass the compilation. Appreciate anyone can show me an example.


Viewing all articles
Browse latest Browse all 5691

Trending Articles



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