RE TO MYSELF.
THE TRICK IS IN USING THE fmt PARAMETER
! PROGRAMMA VOOR KWADRATEN:
! DIT PROGRAMMA BEVAT EEN LOOP DIE VERLATEN WORDT ALS ER EEN EOF CONDITIE
! ONTDEKT WORDT (DO UNTIL EOF).
!
DOUBLE PRECISION QUADR
!
100 CONTINUE
! open(unit=30...
Sorry for my inane questions, I have a program that does not work, could anyone of you please be gentle enough to correct this and execute it?.
Thanks!
program test
open(unit=29,file='data.dat', status='old')
do while(1.eq.1)
write(*,*) ' I am here '...
The EOF does not work on my program, how to fix it?
! Variables
integer, findpos
real yvalue
integer, parameter :: maxval=40
character (len=10) chain_x
character (len=40) chain_y
character *(maxval) garbage
character*1 delimeter...
It is not that difficult to understand,
it is just the stuff in between a flow diagram and your actual programing code, you usually put this on coments once you are writing stuff.
The pseudocode helps you to know where you are.
Example.
! program compute DFT
call readdata
call readorbitals...
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.