Your equation seems to be the final product (explicit solution) after you have substituted the finite difference form into the PDE. If that is the case you have to just calculate Ui+1 from an initial condition of Ui.
Thanks guys! The $ sign seems to work for me. Is it not a standard feature.
Gummibaer:
The bsp variable seems to return the position of the cursor to the beginning.
Your second alternative is awsome although it uses dfwin. It is not standard right?
mikrom and gullipe:
I will check the plus +...
Thanks salgerman! Sure I havenot changed the last * but didn't help too. Generally, there is no effect in using * or 6.
Again thanks anyway the isue might be in the compiler then.
program pp
use dflib
character*14 bsp
do i = 1,14
bsp(i:i) = char(8)
end do
do i = 1, 99
write(6,"(a14,a11,i3)",advance="no") bsp,"values are ", i
CALL FLUSH (6)
do j = 1, 10000000
!aa = cos(real(j))
end do
enddo...
I have used CVF in Windows XP to compile the code as is. It takes a while without printing anything and then finally prints 'values are 100'. I have used Flush(6) just after the first write line and it didn't help.
Thanks xwb and gullipe - I want to make the F77 functionality of '+' in F90.
Salgerman - thanks for the idea though it didn't work. It just prints the last value - in that code the result is "values are 100". It doesn't show the intermediate values. The j loop is supposed to delay the process...
I was printing on the screen like:
Do i=1, 100
print *, 'values are ', i
Enddo
This prints rows of values like:
values are 1
values are 2
values are 3
.
.
I want the values to change in one place like
values are 1 (for the next i the value of 1 would change to 2 .... not another line)...
Indeed you can explore maxval intrinsic function. If you store the values of your array in YUHALf then maxval(YUHALF) can give you the max. value. You might use the maxloc function also to know the location of the maximum value.
Thank you GerritGroot!! I have the source file of this executable. It has a lot of subroutines and moduels and it's some how time consuming to change it to a subroutine to call it in the program. That's why I just want to call it as an executable file for a data in a different folder.
The...
Thank you guys for your replies.
i=SYSTEM('myprog.exe') gives me the error that it couldn't find the input files. But this ones
i=SYSTEM('myprog.exe < .\MyFolder\inputfile.dat') this one doeesn't give error and it doesn't work at all. As I see it "<" is not working at all. Is there a way to...
GerritGroot .. thanks for your reply. You have correctly understood my question.
I couldn't solve the problem based on your suggestion. The program reads the input files from the same folder as the program. It is already specified in the program. It has more than one input files to read. Could...
I would like to run an executable file from a different directory. I have used the following command
call runqq('myprog.exe','c:\program\')
this program is located in different folder. When the program starts it askes me some files to be read in the current directory but those files are...
Thank you for your sugesstion. I have solved that problem using different approach ... from the functional relation of the matrix x - I am able to sequentially substitute the x's.
I have got a fortran code with CVF which I want to work with my friends ... so that every change by any user will be recorded and logged ... we work on different computers in a network ... which control system can be used in windows environment .... I appreciate any suggestion!
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.