-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCounterSimple
More file actions
executable file
·76 lines (52 loc) · 945 Bytes
/
CounterSimple
File metadata and controls
executable file
·76 lines (52 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/csh
#A loop over dataIJKL.
#Copy to a new utility, fill with the goodies you want.
#Tunable variables: nstart, nSteps, basename
set nstart = 50
set nSteps = 99
#System setup--
#this must be 0-- if nstart > 0, extra loops are used to set up counters.
set n = 0
#initial filename: $basename$k$j$i$h
set basename = "data"
set h=0
set i=0
set j=0
set k=0
#
# User defined Setup
#
#
# Main Loop
#
while( $n <= $nSteps )
if( $n >= $nstart ) then
set step = $k$j$i$h
set Files = "$basename"$step
### Add ddd routine here.
###
#
# Counter
#
#This endif is necessary nstart > 0
endif #n>nstart
@ n = $n + 1
@ h = $h + 1
if( $h >= 10 ) then
set h = 0
@ i = $i + 1
if( $i >= 10 ) then
set i = 0
@ j = $j + 1
if( $j >= 10 ) then
set j = 0
@ k = $k + 1
if( $k >= 10 ) then
echo "too many files"
exit
endif
endif
endif
endif
end #while counter
#moo