SHARE
TWEET

Untitled

a guest Jan 18th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PROGRAM test_sum
  2.   REAL,DIMENSION(10) :: x
  3.   INTEGER               :: tmp,i,ind,cloud_base,cloud_top
  4.   x(1) = 0.2
  5.   x(2) = 0.2
  6.   x(3) = 1.2
  7.   x(4) = 1.2
  8.   x(5) = 1.2
  9.   x(6) = 0.1
  10.   x(7) = 1.23 !tarkotus löytyää tämä indekis
  11.   x(8) = 1.43
  12.   x(9) = 1.65 !ja tämä
  13.   x(10) = 0.1
  14.   x = x(size(x):1:-1) !reverse order
  15.   WHERE(x >= 1) x = 999
  16.   WHERE(x < 1) x=-990
  17.   print*, SIZE(x)-MAXLOC(x)+1 !tää palautttaa indexin 9
  18. END PROGRAM
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top