For Programmers: Free Programming Magazines  


Home > Archive > Open Source Software > October 2006 > Problem Implementing Correct DO Loop form in FORTRAN95









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problem Implementing Correct DO Loop form in FORTRAN95
alanhomer

2006-10-19, 3:18 am

Hi guys, I am pretty new to FORTRAN and I am writing a code that will ultimately carry out the trapezoidal rule to a text file that I am reading in.

I want to open the text file (test1results.txt) and add together adjacent values i.e 1,2 then 2,3, as well as 0+term1 and term3+0 and implement them in the following equation:

0.05*(term1 + term2)

0.05*(term2 + term3)

0.05*(0 + term1)

etc. but for N terms in my test1results.txt file. I cannot get the DO loop write (around line 128?) that will implement this. Can anyone help.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com