5 ###############################################
6 # Parallelization of the BOP Builder algorithm on second level
7 ###############################################
9 # box plate to cut the holes from
12 # N defines number of holes along each of X and Y, thus total N^2 holes
13 # will be drilled; note that the algorithm iself is likely to be quadratic
14 # for number of shapes, i.e. CPU
17 for {set i 1} {$i < $N} {incr i} {
18 for {set j 1} {$j < $N} {incr j} {
19 pcylinder p_${i}_$j 0.5 1
20 ttranslate p_${i}_$j [expr $i * 100. / $N] [expr $j * 100. / $N] 0.
21 lappend holes p_${i}_$j
25 eval compound $holes b2
38 set chrono_info [dchrono cpu show]
40 if { [regexp {Debug mode} [dversion]] } {
41 if { [regexp {Windows} [dversion]] } {
47 if { [regexp {Windows} [dversion]] } {
54 regexp {CPU user time: ([-0-9.+eE]+) seconds} ${chrono_info} full z
57 if { $z > ${max_time} } {
58 puts "Elapsed time is more than ${max_time} seconds - Faulty"
60 puts "Elapsed time is less than ${max_time} seconds - OK"