lib/App/SeismicUnixGui/big_streams/immodpg_global_constants.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 31 CC 1 SCAR 6.9
CC
1
Cov
0%
var
2.0
BEGIN
2.0
CRAP 2.0
1 package App::SeismicUnixGui::big_streams::immodpg_global_constants;
2  
3 use Moose;
4 our $VERSION = '0.0.1';
5  
6 =head private hash
7 similar names as the variables in immodpg.for
8 in the DICTIONARY ~ line 55
9 and also in moveNzoom.for
10  
11 loop_limit: for searching for a locked_file
12  
13 =cut
14  
15 my @format;
16  
17 $format[0] = '%-35s%1s%-20s';
18 $format[1] = '%-35s%1s%-20s';
19 $format[2] = '%-35s%1s%-20s';
20 $format[3] = '%-35s%1s%-20s';
21 $format[4] = '%-35s%1s%-20s';
22 $format[5] = '%-35s%1s%-20s';
23 $format[6] = '%-35s%1s%-20s';
24 $format[7] = '%-35s%1s%-20s';
25 $format[8] = '%-35s%1s%-20s';
26 $format[9] = $format[8];
27 $format[10] = '%-35s%1s%-20s';
28 $format[11] = $format[10];
29 $format[12] = $format[10];
30 $format[13] = $format[10];
31 $format[14] = '%-35s%1s%-20s';
32 $format[15] = '%-35s%1s%-20s';
33 $format[16] = '%-35s%1s%-20s';
34 $format[17] = '%-35s%1s%-20s';
35 $format[18] = '%-35s%1s%-20s';
36 $format[19] = '%-35s%1s%-20s';
37  
38 my $var = {
39 _Vbot_file => 'Vbot',
40 _Vbot_minus_opt => 21,
41 _Vbot_plus_opt => 22,
42 _Vbot_upper_layer_file => 'Vbot_upper_layer',
43 _VbotNVtop_lower_layer_plus_opt => 62,
44 _VbotNVtop_lower_layer_minus_opt => 61,
45 _VbotNtop_minus_opt => 41,
46 _VbotNtop_plus_opt => 42,
47 _Vincrement_file => 'Vincrement',
48 _Vincrement_opt => 7,
49 _Vtop_file => 'Vtop',
50 _Vtop_lower_layer_file => 'Vtop_lower_layer',
51 _Vtop_minus_opt => 12,
52 _Vtop_plus_opt => 13,
53 _VbotNtop_factor_file => 'VbotNtop_factor',
54 _VbotNtop_multiply_opt => 16,
55 _VtopNVbot_upper_layer_minus_opt => 51,
56 _VtopNVbot_upper_layer_plus_opt => 52,
57 _Vbot_opt => 20,
58 _Vbot_upper_layer_opt => 23,
59 _Vtop_lower_layer_opt => 11,
60 _Vtop_opt => 10,
61 # _changeVbotNtop_factor_opt => 68,
62 _VbotNtop_factor_opt => 68,
63 _change_default => 'no',
64 _change_file => 'change',
65 # _change_layer_number_opt => 0,
66 # _change_thickness_m_opt => 14,
67 # _change_thickness_increment_m_opt => 15,
68 _clip_file => 'clip',
69 _clip4plot_opt => 9,
70 _config_file_format => '%-35s%1s%-20s',
71 _config_file_format_clip => '%-35s%1s%-5.1f',
72 _config_file_format_real => '%-35s%1s%-10.3f',
73 _config_file_format_signed_integer => '%-35s%1s%-2d',
74 _format_aref => \@format,
75 _format_dot2f => '%.2f',
76 _format_dot3f => '%.3f',
77 _format2i => '%2i',
78 _format51f => '%5.1f',
79 _format_integer => '%i',
80 _format_real => '%7.1f',
81 _format_string => '%s',
82 _exit_opt => 99,
83 _immodpg_model => 'immodpg.out',
84 _immodpg_model_file_text => 'model.txt',
85 _layer_file => 'layer',
86 _layer_number_opt => 0,
87 _loop_limit => 100,
88 _model_text_file_format_title => '%s',
89 _model_text_file_format_values => '%7.1f%1s%7.1f%1s%7.1f',
90 _move_down_opt => 83,
91 _move_left_opt => 84,
92 _move_up_opt => 81,
93 _move_right_opt => 82,
94 # _multiply_velocities_by_constant_opt =>11,
95 _option_file => 'option',
96 _simple_model_txt => 'simple_model.txt',
97 _thickness_incnother_simprement_m_opt => 15,
98 _thickness_increment_m_file => 'thickness_increment_m',
99 _thickness_m_file => 'thickness_m',
100 _thickness_m_opt => 142,
101 _thickness_m_minus_opt => 140,
102 _thickness_m_plus_opt => 141,
103 _time_passed_us_default => 0, # microseconds
104 _time_delay_us => 10000,# microseconds
105 _working_model_text_opt => 70,
106 _working_model_bin_opt => 71,
107 _zoom_minus_opt => 86,
108 _zoom_plus_opt => 85,
109 };
110  
111  
112 sub var{
113 my ($self) = @_;
114
115 return ($var);
116 }
117  
118 1;