Anglea
- 89
- 0
anyone know how to configure a file as VTK file to be able to plot it by paraview??
Nusc said:Does anyone know of an algorithm to solve coupled first order differential equations?
Thanks,
character*12 filename
character*1 num
do 20 I=1,9
write(num,999)I
999 format(I1)
filename='A'//num//'.dat'
print *,filename
open(unit=5,file=filename, status='unknown')
20 continue
thanks mathmate for your help, how can have such profilers built-in, do I need to download anything, or how can I check cos I might have them on my unix machine...mathmate said:Some compilers have profilers built-in for this purpose. Most profilers can decompose the running time spent in different programming units. Profilers are compiler dependent and most probably operating system dependent, and are not part of the Fortran language.
mathmate said:If you run on Unix, you can use to time command which is probably less accurate, and gives only the total running time.
mathmate said:For Lanz, try the following link:
http://www.cse.yorku.ca/~roumani/fortran/ftn.htm
and see if you could find anything here:
http://www.thefreecountry.com/compilers/fortran.shtml
QUOTE]
thanks for the info mathmate, I will take a glance
main_program
c
complex*16 A(m1,m2), Mat
EXTERNAL Mat
c
A = MainMat(n,m)
.
..
end
complex*16 function Mat(n,m)
c calculate the elemnts of Mat
Mat = A
.
end
complex*16 A, Mat
C then I call it as
A = MainMat(S1,S2)
do i = 1,N
do j = 1,M
write(7,*) A(i,j)
end do
end do
Mark44 said:What does the code for your function MainMat look like? When you say that your nested loop in your last code example "doesn't work" what does that mean? Does it produce any results or no results? Did you set N and M? You don't show these variables being initialized.