Anglea
- 89
- 0
anyone know how to configure a file as VTK file to be able to plot it by paraview??
This thread discusses various aspects of programming in Fortran, particularly focusing on Fortran 77 and its features, such as variable declarations, common blocks, and array handling. Participants seek help with specific coding issues, share resources, and clarify concepts related to Fortran programming.
Participants express varying levels of understanding and experience with Fortran 77, leading to multiple interpretations of coding practices and conventions. There is no clear consensus on the best approach to certain coding issues, and some questions remain unresolved.
Participants note limitations in their understanding of Fortran 77 syntax and conventions, particularly regarding the placement of statements and the handling of variable types. There are also references to potential differences in behavior between Fortran 77 and later versions.
This discussion may be useful for individuals learning Fortran 77, those encountering specific coding challenges, or anyone interested in the nuances of variable handling and array management in Fortran programming.
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.