Hi there. I need this conversion: Integer==>character string. Nothing I tried so far worked for me. For instance in this calling sequence:
Code:
call printDebugThree (lun2,NN,Input,CHAR (jj)//" *** ",jj)
The fourth variable is defined in subroutine printDebugThree as:
Code:
printDebugThree (lun2,NN,Input,string,numb)
implicit none
DOUBLE COMPLEX, DIMENSION (:), intent (in), POINTER :: Input
integer*4, intent (in) :: NN,lun2,numb
integer*4 :: jj
character (len = *), intent (in) :: string
write (lun2,*) "# ", string, " ", numb
All I get from the string is an unprintable character in lieu of CHAR(jj), then "***" which comes out correctly.The unprintable character is a square with four symbols in it which I don't understand. Unfortunately I cannot reproduce it here, it does not come out in "Preview Post."
I need this conversion. Any help will be appreciated. Thanks. - Alex
P.S. It is interesting. I just went through my output file and found that not all printed characters are unprintable but it also prints characters (instead of this square) which are not a part of the coded output, e.g #,$,),(,*, etc. It is very strange.