Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

averaging of output

averaging of output

averaging of output


I have this code, which I read into it some input and ouput, now I want to average indivivually tbo1,tbo2,tbo3 and tbo4.My problem I dont seem to be getting it right,I thing Im getting it wrong in the write statment,I aslo want to write the output to be in colums and with heading tbo1, tbo2,tbo3, tbo4 with their output underneat.I thought of declaring the parameter input to be say 1000, then from there I can divide the sum of tbo1 to tbo4 by this parameter, correct me if im wrong?


if ((atmname(i) == oxygen) .and. (cnlist(i) == 3)) then
      select case ( id(blist(bindex(i))) + id(blist(bindex(i)+1)) + &
                    id(blist(bindex(i)+2)) )
        case (6)
          write(logfile,*)'[Si,Si,Si] three-bridged oxygen'
          ntbo1 = ntbo1 + 1
        case (7)
          write(logfile,*)'[Si,Si,Al] three-bridged oxygen'
          ntbo2 = ntbo2 + 1
        case (8)
          write(logfile,*)'[Si,Al,Al] three-bridged oxygen'
          ntbo3 = ntbo3 + 1
        case (9)
          write(logfile,*)'[Al,Al,Al] three-bridged oxygen'
          ntbo4 = ntbo4 + 1
      end select

RE: averaging of output

I can't see the relationship between what you have posted and the problem you are describing.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close