File: bug19793_2

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; xml: 292; perl: 37
file content (77 lines) | stat: -rw-r--r-- 2,020 bytes parent folder | download | duplicates (3)
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
77
puts "============"
puts "OCC19793"
puts "============"
puts ""
#######################################################################
# Fuse problem of symetrical shapes. Appendix for NPAL19789
#######################################################################

cpulimit 2500
set BugNumber OCC19793

puts "Load first shape ..."
restore [locate_data_file bug19793_new_shape.brep] b1 
puts "Load second shape ..."
restore [locate_data_file bug19793_shape.brep] b2 

puts "Prepare boolean operation ..."
dchrono perf_h reset
dchrono perf_h start
bop b1 b2
dchrono perf_h stop

puts "Start boolean operation ..."
bopsection result
puts "Finish boolean operation ..."

set length 17730.1

set nb_e_good 1190
set nb_v_good 68
set nb_e_good 70
set nb_w_good 0
set nb_f_good 0
set nb_sh_good 0
set nb_sol_good 0
set nb_compsol_good 0
set nb_compound_good 1
set nb_shape_good 139

# OCC23753 processing
# Performance verification of bop operation
set chrono_info [dchrono perf_h show]
regexp {CPU user time: ([-0-9.+eE]+) seconds} $chrono_info full CPU_time

if { [regexp {Debug mode} [dversion]] } {
  if { [regexp {Windows} [dversion]] } {
    puts "Checking WINDOWS performance..."
    if {$CPU_time > 1000.} {
       puts "ERROR: OCC23753 is reproduced."
       puts "       Low performance: $CPU_time"
    }
  } else {
    puts "Checking LINUX performance..."
    if {$CPU_time > 2500.} {
       puts "ERROR: OCC23753 is reproduced."
       puts "       Low performance: $CPU_time"
    }
  }
} else {
  if { [regexp {Windows} [dversion]] } {
    puts "Checking WINDOWS performance..."
    # Initial CPU_time is 92-94 seconds for Windows
    if {$CPU_time > 300.} {
       puts "ERROR: OCC23753 is reproduced."
       puts "       Low performance: $CPU_time"
    }
  } else {
    puts "Checking LINUX performance..."
    # Initial CPU_time is 287-289 seconds for Linux
    if {$CPU_time > 350.} {
       puts "ERROR: OCC23753 is reproduced."
       puts "       Low performance: $CPU_time"
    }
  }
}

set 2dviewer 0