Dear members,
Is it possible to change a real number variable to a character variable such that the value of the number is the same but only the type is changed?
Regards
Marrisa
The subroutine is very long however it is of the following form....
subroutine GenData(num)
external function1
integer num
real, allocatable :: Array1(:), Array2(:)
allocate(Array1(num))
Array2 = function1(Array1, num)
end subroutine
I didnt need to use a pointer after all, the...
Dear members,
I am currently passing an allocatable array into a function however I am getting a multitude of warnings. I think the solution is to pass the array into the function as a pointer ghowever I have no experience with this matter. I would be greatful if someone could show me how this...
Dear Members,
Is it possible to add (concatenate) a newline character, (or any other nonprintable character) to a character variable?
Thanks for your help
Regards
Marrisa
Yes it does, thanks alot...My error was that I was using an incorrect descriptor for the seperator space between numbers in the file, I was using 'A1' instead of '1X', your usage of '1X' actually reminded of this...thanks again...
Dear Members,
I am trying to write a real(8) variable to a text file. The number is of the form -1.2E-03. I am using the edit descriptor, F7.4 because I want to write it in the form,-0.0012. I am getting an iostat error 61 and I think this means that I am using the incorrect descriptor. How do...
Dear Members,
I am a first time user of compaq visual fortran. I am currently attempting to write a GUI. I would like to be able to select an option from a floating menu that I get when I right click on the window. I have so far been able to obtain the menu upon right clicking but I cannot...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.