lib/App/SeismicUnixGui/sunix/model/sufdmod2.pm untested

filter: Statementstmt 0.0% 0 / 226 Branchbran 0.0% 0 / 60 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 36 Podpod 0.0% 0 / 34 totaltotal 0.0% 0 / 356 CC 31 SCAR 17.3
CC
31
Cov
0%
abs
6.0
boundary_conditions
6.0
dfile
6.0
CRAP 5.6
1 package App::SeismicUnixGui::sunix::model::sufdmod2;
2  
3 =head1 DOCUMENTATION
4  
5 =head2 SYNOPSIS
6  
7 PERL PROGRAM NAME: SUFDMOD2 - Finite-Difference MODeling (2nd order) for acoustic wave equation
8 AUTHOR: Juan Lorenzo (Perl module only)
9 DATE:
10 DESCRIPTION:
11 Version:
12  
13 =head2 USE
14  
15 =head3 NOTES
16  
17 =head4 Examples
18  
19 =head3 SEISMIC UNIX NOTES
20  
21 SUFDMOD2 - Finite-Difference MODeling (2nd order) for acoustic wave equation
22  
23 sufdmod2 <vfile >wfile nx= nz= tmax= xs= zs= [optional parameters]
24  
25 Required Parameters:
26 <vfile file containing velocity[nx][nz]
27 SeismicUnixGui: data_in suffix_type= bin
28
29 >wfile file containing waves[nx][nz] for time steps
30 SeismicUnixGui: data_out suffix_type= bin
31
32 nx= number of x samples (2nd dimension)
33 nz= number of z samples (1st dimension)
34 xs= x coordinates of source, or, alternatively, the name
35 of a file that contains the x- and z-coordinates,
36 with the number of pairs as the first record and
37 the actual pairs of (x,z) locations following.
38 zs= z coordinates of source
39 tmax= maximum time
40  
41 Optional Parameters:
42 sstrength=1.0 strength of source
43 pw=0 use point or extended source geometry parameters
44 =1 use horizontal plane wave source
45 pwt=20 amp taper on ends of line src (in grid points)
46 mono=0 use ricker wavelet as source function
47 =1 use single frequency src (freq=2*fpeak)
48 nt=1+tmax/dt number of time samples (dt determined for stability)
49 mt=1 number of time steps (dt) per output time step
50  
51 dx=1.0 x sampling interval
52 fx=0.0 first x sample
53 dz=1.0 z sampling interval
54 fz=0.0 first z sample
55  
56 fmax = vmin/(10.0*h) maximum frequency in source
57 fpeak=0.5*fmax peak frequency in ricker wavelet
58  
59 dfile= input file containing density[nx][nz]
60 vsx= x coordinate of vertical line of seismograms
61 hsz= z coordinate of horizontal line of seismograms
62 vsfile= output file for vertical line of seismograms[nz][nt]
63 SeismicUnixGui: vsfile goes to $DATA_SEIMICS_BIN
64
65 hsfile= output file for horizontal line of seismograms[nx][nt]
66 SeismicUnixGui: hsfile goes to $DATA_SEIMICS_BIN
67
68 ssfile= output file for source point seismograms[nt]
69 SeismicUnixGui: ssfile goes to $DATA_SEIMICS_BIN
70
71 verbose=0 =1 for diagnostic messages, =2 for more
72 abs=1,1,1,1 absorbing boundary conditions on top,left,bottom,right
73 sides of the model.
74 =0,1,1,1 for free surface condition on the top
75  
76 Notes:
77  
78 This program uses the traditional explicit second order differencing
79 method.
80  
81  
82  
83 Authors: CWP:Dave Hale
84 CWP:modified for SU by John Stockwell, 1993.
85 U Houston: added plane wave and monochromatic wave
86 source options. Chris Liner, 2010
87  
88  
89 Trace header fields set: sx, gx, ns, delrt, tracl, tracr, offset, d1, d2,
90 sdepth, trid
91  
92 Modifications: Tony Kocurko (TK:)
93 Memorial University in Newfoundland and Labrador
94 - Allow user to supply the name of a file containing
95 shot point locations, rather than supplying them
96 as values to the xs= and zs= command line arguments.
97 - Correct the calculation of izs[is].
98  
99 Technical reference:
100 Kelly, K. R., R. W. Ward, S. Treitel, and R. M. Alford (1976),
101 Synthetic Seismograms: A finite-difference approach,
102 Geophysics, Vol. 41. No. I (February, 1976), p. 2-27.
103  
104  
105 =head2 CHANGES and their DATES
106  
107 =cut
108  
109 use Moose;
110 our $VERSION = '0.0.1';
111 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
112  
113 my $get = L_SU_global_constants->new();
114  
115 my $var = $get->var();
116 my $empty_string = $var->{_empty_string};
117  
118 my $sufdmod2 = {
119 _abs => '',
120 _dfile => '',
121 _dx => '',
122 _dz => '',
123 _fmax => '',
124 _fpeak => '',
125 _freq => '',
126 _fx => '',
127 _fz => '',
128 _hsfile => '',
129 _hsz => '',
130 _mono => '',
131 _mt => '',
132 _nt => '',
133 _nx => '',
134 _nz => '',
135 _pw => '',
136 _pwt => '',
137 _ssfile => '',
138 _sstrength => '',
139 _tmax => '',
140 _verbose => '',
141 _vsfile => '',
142 _vsx => '',
143 _xs => '',
144 _zs => '',
145 _Step => '',
146 _note => '',
147 };
148  
149 =head2 sub Step
150  
151 collects switches and assembles bash instructions
152 by adding the program name
153  
154 =cut
155  
156 sub Step {
157  
158 $sufdmod2->{_Step} = 'sufdmod2' . $sufdmod2->{_Step};
159 return ( $sufdmod2->{_Step} );
160  
161 }
162  
163 =head2 sub note
164  
165 collects switches and assembles bash instructions
166 by adding the program name
167  
168 =cut
169  
170 sub note {
171  
172 $sufdmod2->{_note} = 'sufdmod2' . $sufdmod2->{_note};
173 return ( $sufdmod2->{_note} );
174  
175 }
176  
177 =head2 sub clear
178  
179 =cut
180  
181 sub clear {
182  
183 $sufdmod2->{_abs} = '';
184 $sufdmod2->{_dfile} = '';
185 $sufdmod2->{_dx} = '';
186 $sufdmod2->{_dz} = '';
187 $sufdmod2->{_fmax} = '';
188 $sufdmod2->{_fpeak} = '';
189 $sufdmod2->{_freq} = '';
190 $sufdmod2->{_fx} = '';
191 $sufdmod2->{_fz} = '';
192 $sufdmod2->{_hsfile} = '';
193 $sufdmod2->{_hsz} = '';
194 $sufdmod2->{_mono} = '';
195 $sufdmod2->{_mt} = '';
196 $sufdmod2->{_nt} = '';
197 $sufdmod2->{_nx} = '';
198 $sufdmod2->{_nz} = '';
199 $sufdmod2->{_pw} = '';
200 $sufdmod2->{_pwt} = '';
201 $sufdmod2->{_ssfile} = '';
202 $sufdmod2->{_sstrength} = '';
203 $sufdmod2->{_tmax} = '';
204 $sufdmod2->{_verbose} = '';
205 $sufdmod2->{_vsfile} = '';
206 $sufdmod2->{_vsx} = '';
207 $sufdmod2->{_xs} = '';
208 $sufdmod2->{_zs} = '';
209 $sufdmod2->{_Step} = '';
210 $sufdmod2->{_note} = '';
211 }
212  
213 =head2 sub abs
214  
215  
216 =cut
217  
218 sub abs {
219  
220 my ( $self, $abs ) = @_;
221 if ( $abs ne $empty_string ) {
222  
223 $sufdmod2->{_abs} = $abs;
224 $sufdmod2->{_note} = $sufdmod2->{_note} . ' abs=' . $sufdmod2->{_abs};
225 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' abs=' . $sufdmod2->{_abs};
226  
227 }
228 else {
229 print("sufdmod2, abs, missing abs,\n");
230 }
231 }
232  
233 =head2 sub boundary_conditions
234  
235  
236 =cut
237  
238 sub boundary_conditions {
239  
240 my ( $self, $abs ) = @_;
241 if ( $abs ne $empty_string ) {
242  
243 $sufdmod2->{_abs} = $abs;
244 $sufdmod2->{_note} = $sufdmod2->{_note} . ' abs=' . $sufdmod2->{_abs};
245 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' abs=' . $sufdmod2->{_abs};
246  
247 }
248 else {
249 print("sufdmod2, boundary_conditions, missing abs,\n");
250 }
251 }
252  
253 =head2 sub dfile
254  
255  
256 =cut
257  
258 sub dfile {
259  
260 my ( $self, $dfile ) = @_;
261 if ( $dfile ne $empty_string ) {
262  
263 $sufdmod2->{_dfile} = $dfile;
264 $sufdmod2->{_note} =
265 $sufdmod2->{_note} . ' dfile=' . $sufdmod2->{_dfile};
266 $sufdmod2->{_Step} =
267 $sufdmod2->{_Step} . ' dfile=' . $sufdmod2->{_dfile};
268  
269 }
270 else {
271 print("sufdmod2, dfile, missing dfile,\n");
272 }
273 }
274  
275 =head2 sub dx
276  
277  
278 =cut
279  
280 sub dx {
281  
282 my ( $self, $dx ) = @_;
283 if ( $dx ne $empty_string ) {
284  
285 $sufdmod2->{_dx} = $dx;
286 $sufdmod2->{_note} = $sufdmod2->{_note} . ' dx=' . $sufdmod2->{_dx};
287 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' dx=' . $sufdmod2->{_dx};
288  
289 }
290 else {
291 print("sufdmod2, dx, missing dx,\n");
292 }
293 }
294  
295 =head2 sub dz
296  
297  
298 =cut
299  
300 sub dz {
301  
302 my ( $self, $dz ) = @_;
303 if ( $dz ne $empty_string ) {
304  
305 $sufdmod2->{_dz} = $dz;
306 $sufdmod2->{_note} = $sufdmod2->{_note} . ' dz=' . $sufdmod2->{_dz};
307 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' dz=' . $sufdmod2->{_dz};
308  
309 }
310 else {
311 print("sufdmod2, dz, missing dz,\n");
312 }
313 }
314  
315 =head2 sub fmax
316  
317  
318 =cut
319  
320 sub fmax {
321  
322 my ( $self, $fmax ) = @_;
323 if ( $fmax ne $empty_string ) {
324  
325 $sufdmod2->{_fmax} = $fmax;
326 $sufdmod2->{_note} = $sufdmod2->{_note} . ' fmax=' . $sufdmod2->{_fmax};
327 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' fmax=' . $sufdmod2->{_fmax};
328  
329 }
330 else {
331 print("sufdmod2, fmax, missing fmax,\n");
332 }
333 }
334  
335 =head2 sub fpeak
336  
337  
338 =cut
339  
340 sub fpeak {
341  
342 my ( $self, $fpeak ) = @_;
343 if ( $fpeak ne $empty_string ) {
344  
345 $sufdmod2->{_fpeak} = $fpeak;
346 $sufdmod2->{_note} =
347 $sufdmod2->{_note} . ' fpeak=' . $sufdmod2->{_fpeak};
348 $sufdmod2->{_Step} =
349 $sufdmod2->{_Step} . ' fpeak=' . $sufdmod2->{_fpeak};
350  
351 }
352 else {
353 print("sufdmod2, fpeak, missing fpeak,\n");
354 }
355 }
356  
357 =head2 sub freq
358  
359  
360 =cut
361  
362 sub freq {
363  
364 my ( $self, $freq ) = @_;
365 if ( $freq ne $empty_string ) {
366  
367 $sufdmod2->{_freq} = $freq;
368 $sufdmod2->{_note} = $sufdmod2->{_note} . ' freq=' . $sufdmod2->{_freq};
369 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' freq=' . $sufdmod2->{_freq};
370  
371 }
372 else {
373 print("sufdmod2, freq, missing freq,\n");
374 }
375 }
376  
377 =head2 sub fx
378  
379  
380 =cut
381  
382 sub fx {
383  
384 my ( $self, $fx ) = @_;
385 if ( $fx ne $empty_string ) {
386  
387 $sufdmod2->{_fx} = $fx;
388 $sufdmod2->{_note} = $sufdmod2->{_note} . ' fx=' . $sufdmod2->{_fx};
389 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' fx=' . $sufdmod2->{_fx};
390  
391 }
392 else {
393 print("sufdmod2, fx, missing fx,\n");
394 }
395 }
396  
397 =head2 sub fz
398  
399  
400 =cut
401  
402 sub fz {
403  
404 my ( $self, $fz ) = @_;
405 if ( $fz ne $empty_string ) {
406  
407 $sufdmod2->{_fz} = $fz;
408 $sufdmod2->{_note} = $sufdmod2->{_note} . ' fz=' . $sufdmod2->{_fz};
409 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' fz=' . $sufdmod2->{_fz};
410  
411 }
412 else {
413 print("sufdmod2, fz, missing fz,\n");
414 }
415 }
416  
417 =head2 sub hsfile
418  
419  
420 =cut
421  
422 sub hsfile {
423  
424 my ( $self, $hsfile ) = @_;
425 if ( $hsfile ne $empty_string ) {
426  
427 $sufdmod2->{_hsfile} = $hsfile;
428 $sufdmod2->{_note} =
429 $sufdmod2->{_note} . ' hsfile=' . $sufdmod2->{_hsfile};
430 $sufdmod2->{_Step} =
431 $sufdmod2->{_Step} . ' hsfile=' . $sufdmod2->{_hsfile};
432  
433 }
434 else {
435 print("sufdmod2, hsfile, missing hsfile,\n");
436 }
437 }
438  
439 =head2 sub hsfile_out
440  
441  
442 =cut
443  
444 sub hsfile_out {
445  
446 my ( $self, $hsfile ) = @_;
447 if ( $hsfile ne $empty_string ) {
448  
449 $sufdmod2->{_hsfile} = $hsfile;
450 $sufdmod2->{_note} =
451 $sufdmod2->{_note} . ' hsfile=' . $sufdmod2->{_hsfile};
452 $sufdmod2->{_Step} =
453 $sufdmod2->{_Step} . ' hsfile=' . $sufdmod2->{_hsfile};
454  
455 }
456 else {
457 print("sufdmod2, hsfile_out, missing hsfile,\n");
458 }
459 }
460  
461 =head2 sub hsz
462  
463  
464 =cut
465  
466 sub hsz {
467  
468 my ( $self, $hsz ) = @_;
469 if ( $hsz ne $empty_string ) {
470  
471 $sufdmod2->{_hsz} = $hsz;
472 $sufdmod2->{_note} = $sufdmod2->{_note} . ' hsz=' . $sufdmod2->{_hsz};
473 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' hsz=' . $sufdmod2->{_hsz};
474  
475 }
476 else {
477 print("sufdmod2, hsz, missing hsz,\n");
478 }
479 }
480  
481 =head2 sub mono
482  
483  
484 =cut
485  
486 sub mono {
487  
488 my ( $self, $mono ) = @_;
489 if ( $mono ne $empty_string ) {
490  
491 $sufdmod2->{_mono} = $mono;
492 $sufdmod2->{_note} = $sufdmod2->{_note} . ' mono=' . $sufdmod2->{_mono};
493 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' mono=' . $sufdmod2->{_mono};
494  
495 }
496 else {
497 print("sufdmod2, mono, missing mono,\n");
498 }
499 }
500  
501 =head2 sub mt
502  
503  
504 =cut
505  
506 sub mt {
507  
508 my ( $self, $mt ) = @_;
509 if ( $mt ne $empty_string ) {
510  
511 $sufdmod2->{_mt} = $mt;
512 $sufdmod2->{_note} = $sufdmod2->{_note} . ' mt=' . $sufdmod2->{_mt};
513 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' mt=' . $sufdmod2->{_mt};
514  
515 }
516 else {
517 print("sufdmod2, mt, missing mt,\n");
518 }
519 }
520  
521 =head2 sub nt
522  
523  
524 =cut
525  
526 sub nt {
527  
528 my ( $self, $nt ) = @_;
529 if ( $nt ne $empty_string ) {
530  
531 $sufdmod2->{_nt} = $nt;
532 $sufdmod2->{_note} = $sufdmod2->{_note} . ' nt=' . $sufdmod2->{_nt};
533 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' nt=' . $sufdmod2->{_nt};
534  
535 }
536 else {
537 print("sufdmod2, nt, missing nt,\n");
538 }
539 }
540  
541 =head2 sub nx
542  
543  
544 =cut
545  
546 sub nx {
547  
548 my ( $self, $nx ) = @_;
549 if ( $nx ne $empty_string ) {
550  
551 $sufdmod2->{_nx} = $nx;
552 $sufdmod2->{_note} = $sufdmod2->{_note} . ' nx=' . $sufdmod2->{_nx};
553 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' nx=' . $sufdmod2->{_nx};
554  
555 }
556 else {
557 print("sufdmod2, nx, missing nx,\n");
558 }
559 }
560  
561 =head2 sub nz
562  
563  
564 =cut
565  
566 sub nz {
567  
568 my ( $self, $nz ) = @_;
569 if ( $nz ne $empty_string ) {
570  
571 $sufdmod2->{_nz} = $nz;
572 $sufdmod2->{_note} = $sufdmod2->{_note} . ' nz=' . $sufdmod2->{_nz};
573 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' nz=' . $sufdmod2->{_nz};
574  
575 }
576 else {
577 print("sufdmod2, nz, missing nz,\n");
578 }
579 }
580  
581 =head2 sub pw
582  
583  
584 =cut
585  
586 sub pw {
587  
588 my ( $self, $pw ) = @_;
589 if ( $pw ne $empty_string ) {
590  
591 $sufdmod2->{_pw} = $pw;
592 $sufdmod2->{_note} = $sufdmod2->{_note} . ' pw=' . $sufdmod2->{_pw};
593 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' pw=' . $sufdmod2->{_pw};
594  
595 }
596 else {
597 print("sufdmod2, pw, missing pw,\n");
598 }
599 }
600  
601 =head2 sub pwt
602  
603  
604 =cut
605  
606 sub pwt {
607  
608 my ( $self, $pwt ) = @_;
609 if ( $pwt ne $empty_string ) {
610  
611 $sufdmod2->{_pwt} = $pwt;
612 $sufdmod2->{_note} = $sufdmod2->{_note} . ' pwt=' . $sufdmod2->{_pwt};
613 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' pwt=' . $sufdmod2->{_pwt};
614  
615 }
616 else {
617 print("sufdmod2, pwt, missing pwt,\n");
618 }
619 }
620  
621 =head2 sub seismogram_out
622  
623  
624 =cut
625  
626 sub source_seismogram_out {
627  
628 my ( $self, $ssfile ) = @_;
629 if ( $ssfile ne $empty_string ) {
630  
631 $sufdmod2->{_ssfile} = $ssfile;
632 $sufdmod2->{_note} =
633 $sufdmod2->{_note} . ' ssfile=' . $sufdmod2->{_ssfile};
634 $sufdmod2->{_Step} =
635 $sufdmod2->{_Step} . ' ssfile=' . $sufdmod2->{_ssfile};
636  
637 }
638 else {
639 print("sufdmod2, source_seismogram_out, missing ssfile,\n");
640 }
641 }
642  
643 =head2 sub ssfile
644  
645  
646 =cut
647  
648 sub ssfile {
649  
650 my ( $self, $ssfile ) = @_;
651 if ( $ssfile ne $empty_string ) {
652  
653 $sufdmod2->{_ssfile} = $ssfile;
654 $sufdmod2->{_note} =
655 $sufdmod2->{_note} . ' ssfile=' . $sufdmod2->{_ssfile};
656 $sufdmod2->{_Step} =
657 $sufdmod2->{_Step} . ' ssfile=' . $sufdmod2->{_ssfile};
658  
659 }
660 else {
661 print("sufdmod2, ssfile, missing ssfile,\n");
662 }
663 }
664  
665 =head2 sub sstrength
666  
667  
668 =cut
669  
670 sub sstrength {
671  
672 my ( $self, $sstrength ) = @_;
673 if ( $sstrength ne $empty_string ) {
674  
675 $sufdmod2->{_sstrength} = $sstrength;
676 $sufdmod2->{_note} =
677 $sufdmod2->{_note} . ' sstrength=' . $sufdmod2->{_sstrength};
678 $sufdmod2->{_Step} =
679 $sufdmod2->{_Step} . ' sstrength=' . $sufdmod2->{_sstrength};
680  
681 }
682 else {
683 print("sufdmod2, sstrength, missing sstrength,\n");
684 }
685 }
686  
687 =head2 sub tmax
688  
689  
690 =cut
691  
692 sub tmax {
693  
694 my ( $self, $tmax ) = @_;
695 if ( $tmax ne $empty_string ) {
696
697 $sufdmod2->{_tmax} = $tmax;
698 $sufdmod2->{_note} = $sufdmod2->{_note} . ' tmax=' . $sufdmod2->{_tmax};
699 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' tmax=' . $sufdmod2->{_tmax};
700  
701 }
702 else {
703 print("sufdmod2, tmax, missing tmax,\n");
704 }
705 }
706  
707 =head2 sub verbose
708  
709  
710 =cut
711  
712 sub verbose {
713  
714 my ( $self, $verbose ) = @_;
715 if ( $verbose ne $empty_string ) {
716  
717 $sufdmod2->{_verbose} = $verbose;
718 $sufdmod2->{_note} =
719 $sufdmod2->{_note} . ' verbose=' . $sufdmod2->{_verbose};
720 $sufdmod2->{_Step} =
721 $sufdmod2->{_Step} . ' verbose=' . $sufdmod2->{_verbose};
722  
723 }
724 else {
725 print("sufdmod2, verbose, missing verbose,\n");
726 }
727 }
728  
729 =head2 sub vsfile
730  
731  
732 =cut
733  
734 sub vsfile {
735  
736 my ( $self, $vsfile ) = @_;
737 if ( $vsfile ne $empty_string ) {
738  
739 $sufdmod2->{_vsfile} = $vsfile;
740 $sufdmod2->{_note} =
741 $sufdmod2->{_note} . ' vsfile=' . $sufdmod2->{_vsfile};
742 $sufdmod2->{_Step} =
743 $sufdmod2->{_Step} . ' vsfile=' . $sufdmod2->{_vsfile};
744  
745 }
746 else {
747 print("sufdmod2, vsfile, missing vsfile,\n");
748 }
749 }
750  
751 =head2 sub vsfile_out
752  
753  
754 =cut
755  
756 sub vsfile_out {
757  
758 my ( $self, $vsfile ) = @_;
759 if ( $vsfile ne $empty_string ) {
760  
761 $sufdmod2->{_vsfile} = $vsfile;
762 $sufdmod2->{_note} =
763 $sufdmod2->{_note} . ' vsfile=' . $sufdmod2->{_vsfile};
764 $sufdmod2->{_Step} =
765 $sufdmod2->{_Step} . ' vsfile=' . $sufdmod2->{_vsfile};
766  
767 }
768 else {
769 print("sufdmod2, vsfile_out, missing vsfile,\n");
770 }
771 }
772  
773 =head2 sub vsx
774  
775  
776 =cut
777  
778 sub vsx {
779  
780 my ( $self, $vsx ) = @_;
781 if ( $vsx ne $empty_string ) {
782  
783 $sufdmod2->{_vsx} = $vsx;
784 $sufdmod2->{_note} = $sufdmod2->{_note} . ' vsx=' . $sufdmod2->{_vsx};
785 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' vsx=' . $sufdmod2->{_vsx};
786  
787 }
788 else {
789 print("sufdmod2, vsx, missing vsx,\n");
790 }
791 }
792  
793 =head2 sub xs
794  
795  
796 =cut
797  
798 sub xs {
799  
800 my ( $self, $xs ) = @_;
801 if ( $xs ne $empty_string ) {
802  
803 $sufdmod2->{_xs} = $xs;
804 $sufdmod2->{_note} = $sufdmod2->{_note} . ' xs=' . $sufdmod2->{_xs};
805 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' xs=' . $sufdmod2->{_xs};
806  
807 }
808 else {
809 print("sufdmod2, xs, missing xs,\n");
810 }
811 }
812  
813 =head2 sub zs
814  
815  
816 =cut
817  
818 sub zs {
819  
820 my ( $self, $zs ) = @_;
821 if ( $zs ne $empty_string ) {
822  
823 $sufdmod2->{_zs} = $zs;
824 $sufdmod2->{_note} = $sufdmod2->{_note} . ' zs=' . $sufdmod2->{_zs};
825 $sufdmod2->{_Step} = $sufdmod2->{_Step} . ' zs=' . $sufdmod2->{_zs};
826  
827 }
828 else {
829 print("sufdmod2, zs, missing zs,\n");
830 }
831 }
832  
833 =head2 sub get_max_index
834
835 max index = number of input variables -1
836
837 =cut
838  
839 sub get_max_index {
840 my ($self) = @_;
841 my $max_index = 24;
842  
843 return ($max_index);
844 }
845  
846 1;