File: torture.py

package info (click to toggle)
ifeffit 2%3A1.2.11d-12.7
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 12,336 kB
  • sloc: fortran: 35,441; ansic: 8,458; makefile: 4,775; python: 3,315; perl: 3,144; sh: 2,721; ada: 1,003; tcl: 95
file content (19 lines) | stat: -rw-r--r-- 375 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/python
import Ifeffit
iff = Ifeffit.Ifeffit().ifeffit
iff(" show $&build")


npts = 8192
narr =  128

for p in 'abcdef':
    print "= group %s " % p
    for i in range(narr):
        s = "%s.%3.3i" % (p,i+1)
        u = iff("set %s = range(1,%i,1)" % (s,npts))

    iff(" show @arrays")
    iff(" show @scalars")
    print " erasing ..."
    iff(" erase @arrays")