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

filter: Statementstmt 0.0% 0 / 195 Branchbran 0.0% 0 / 46 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 31 Podpod 0.0% 0 / 27 totaltotal 0.0% 0 / 299 CC 24 SCAR 16.9
CC
24
Cov
0%
abs
6.0
dfile
6.0
dx
6.0
CRAP 5.4
1 package App::SeismicUnixGui::sunix::model::sufdmod2l;
2  
3 =head2 SYNOPSIS
4  
5 PERL PROGRAM NAME:
6  
7 AUTHOR: Juan Lorenzo (Perl module only)
8  
9 DATE:
10  
11 DESCRIPTION:
12  
13 Version:
14  
15 =head2 USE
16  
17 =head3 NOTES
18  
19 =head4 Examples
20  
21 =head2 SYNOPSIS
22  
23 =head3 SEISMIC UNIX NOTES
24 SUFDMOD2_PML - Finite-Difference MODeling (2nd order) for acoustic wave
25  
26 equation with PML absorbing boundary conditions.
27  
28 Caveat: experimental PML absorbing boundary condition version,
29  
30 may be buggy!
31  
32  
33  
34 sufdmod2_pml <vfile >wfile nx= nz= tmax= xs= zs= [optional parameters]
35  
36  
37  
38 Required Parameters:
39  
40 <vfile file containing velocity[nx][nz]
41  
42 >wfile file containing waves[nx][nz] for time steps
43  
44 nx= number of x samples (2nd dimension)
45  
46 nz= number of z samples (1st dimension)
47  
48 xs= x coordinates of source
49  
50 zs= z coordinates of source
51  
52 tmax= maximum time
53  
54  
55  
56 Optional Parameters:
57  
58 nt=1+tmax/dt number of time samples (dt determined for stability)
59  
60 mt=1 number of time steps (dt) per output time step
61  
62  
63  
64 dx=1.0 x sampling interval
65  
66 fx=0.0 first x sample
67  
68 dz=1.0 z sampling interval
69  
70 fz=0.0 first z sample
71  
72  
73  
74 fmax = vmin/(10.0*h) maximum frequency in source wavelet
75  
76 fpeak=0.5*fmax peak frequency in ricker wavelet
77  
78  
79  
80 dfile= input file containing density[nx][nz]
81  
82 vsx= x coordinate of vertical line of seismograms
83  
84 hsz= z coordinate of horizontal line of seismograms
85  
86 vsfile= output file for vertical line of seismograms[nz][nt]
87  
88 vsfile_out=
89  
90 hsfile= output file for horizontal line of seismograms[nx][nt]
91  
92 hsfile_out=
93  
94 ssfile= output file for source point seismograms[nt]
95  
96 source_seismogram_out=
97  
98 verbose=0 =1 for diagnostic messages, =2 for more
99  
100  
101  
102 abs=1,1,1,1 Absorbing boundary conditions on top,left,bottom,right
103  
104 sides of the model.
105  
106 =0,1,1,1 for free surface condition on the top
107  
108  
109  
110 ...PML parameters....
111  
112 pml_max=1000.0 PML absorption parameter
113  
114 pml_thick=0 half-thickness of pml layer (0 = do not use PML)
115  
116  
117  
118 Notes:
119  
120 This program uses the traditional explicit second order differencing
121  
122 method.
123  
124  
125  
126 Two different absorbing boundary condition schemes are available. The
127  
128 first is a traditional absorbing boundary condition scheme created by
129  
130 Hale, 1990. The second is based on the perfectly matched layer (PML)
131  
132 method of Berenger, 1995.
133  
134  
135  
136  
137  
138  
139  
140 Authors: CWP:Dave Hale
141  
142 CWP:modified for SU by John Stockwell, 1993.
143  
144 CWP:added frequency specification of wavelet: Craig Artley, 1993
145  
146 TAMU:added PML absorbing boundary condition:
147  
148 Michael Holzrichter, 1998
149  
150 CWP/WesternGeco:corrected PML code to handle density variations:
151  
152 Greg Wimpey, 2006
153  
154  
155  
156 References: (Hale's absobing boundary conditions)
157  
158 Clayton, R. W., and Engquist, B., 1977, Absorbing boundary conditions
159  
160 for acoustic and elastic wave equations, Bull. Seism. Soc. Am., 6,
161  
162 1529-1540.
163  
164  
165  
166 Clayton, R. W., and Engquist, B., 1980, Absorbing boundary conditions
167  
168 for wave equation migration, Geophysics, 45, 895-904.
169  
170  
171  
172 Hale, D., 1990, Adaptive absorbing boundaries for finite-difference
173  
174 modeling of the wave equation migration, unpublished report from the
175  
176 Center for Wave Phenomena, Colorado School of Mines.
177  
178  
179  
180 Richtmyer, R. D., and Morton, K. W., 1967, Difference methods for
181  
182 initial-value problems, John Wiley & Sons, Inc, New York.
183  
184  
185  
186 Thomee, V., 1962, A stable difference scheme for the mixed boundary problem
187  
188 for a hyperbolic, first-order system in two dimensions, J. Soc. Indust.
189  
190 Appl. Math., 10, 229-245.
191  
192  
193  
194 Toldi, J. L., and Hale, D., 1982, Data-dependent absorbing side boundaries,
195  
196 Stanford Exploration Project Report SEP-30, 111-121.
197  
198  
199  
200 References: (PML boundary conditions)
201  
202 Jean-Pierre Berenger, ``A Perfectly Matched Layer for the Absorption of
203  
204 Electromagnetic Waves,'' Journal of Computational Physics, vol. 114,
205  
206 pp. 185-200.
207  
208  
209  
210 Hastings, Schneider, and Broschat, ``Application of the perfectly
211  
212 matched layer (PML) absorbing boundary condition to elastic wave
213  
214 propogation,'' Journal of the Accoustical Society of America,
215  
216 November, 1996.
217  
218  
219  
220 Allen Taflove, ``Electromagnetic Modeling: Finite Difference Time
221  
222 Domain Methods'', Baltimore, Maryland: Johns Hopkins University Press,
223  
224 1995, chap. 7, pp. 181-195.
225  
226  
227  
228  
229  
230 Trace header fields set: ns, delrt, tracl, tracr, offset, d1, d2,
231  
232 sdepth, trid
233  
234  
235  
236 =head2 User's notes (Juan Lorenzo)
237 untested
238  
239 =cut
240  
241  
242 =head2 CHANGES and their DATES
243  
244 =cut
245  
246 use Moose;
247 our $VERSION = '0.0.1';
248  
249  
250 =head2 Import packages
251  
252 =cut
253  
254 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
255  
256 use App::SeismicUnixGui::misc::SeismicUnix qw($in $out $on $go $to $suffix_ascii $off $suffix_su $suffix_bin);
257 use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
258  
259  
260 =head2 instantiation of packages
261  
262 =cut
263  
264 my $get = L_SU_global_constants->new();
265 my $Project = Project_config->new();
266 my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU();
267 my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN();
268 my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT();
269  
270 my $var = $get->var();
271 my $on = $var->{_on};
272 my $off = $var->{_off};
273 my $true = $var->{_true};
274 my $false = $var->{_false};
275 my $empty_string = $var->{_empty_string};
276  
277 =head2 Encapsulated
278 hash of private variables
279  
280 =cut
281  
282 my $sufdmod2_pml = {
283 _abs => '',
284 _dfile => '',
285 _dx => '',
286 _dz => '',
287 _fmax => '',
288 _fpeak => '',
289 _fx => '',
290 _fz => '',
291 _hsfile => '',
292 _hsz => '',
293 _mt => '',
294 _nt => '',
295 _nx => '',
296 _nz => '',
297 _pml_max => '',
298 _pml_thick => '',
299 _ssfile => '',
300 _tmax => '',
301 _verbose => '',
302 _vsfile => '',
303 _vsx => '',
304 _xs => '',
305 _zs => '',
306 _Step => '',
307 _note => '',
308  
309 };
310  
311 =head2 sub Step
312  
313 collects switches and assembles bash instructions
314 by adding the program name
315  
316 =cut
317  
318 sub Step {
319  
320 $sufdmod2_pml->{_Step} = 'sufdmod2_pml'.$sufdmod2_pml->{_Step};
321 return ( $sufdmod2_pml->{_Step} );
322  
323 }
324  
325  
326 =head2 sub note
327  
328 collects switches and assembles bash instructions
329 by adding the program name
330  
331 =cut
332  
333 sub note {
334  
335 $sufdmod2_pml->{_note} = 'sufdmod2_pml'.$sufdmod2_pml->{_note};
336 return ( $sufdmod2_pml->{_note} );
337  
338 }
339  
340  
341  
342 =head2 sub clear
343  
344 =cut
345  
346 sub clear {
347  
348 $sufdmod2_pml->{_abs} = '';
349 $sufdmod2_pml->{_dfile} = '';
350 $sufdmod2_pml->{_dx} = '';
351 $sufdmod2_pml->{_dz} = '';
352 $sufdmod2_pml->{_fmax} = '';
353 $sufdmod2_pml->{_fpeak} = '';
354 $sufdmod2_pml->{_fx} = '';
355 $sufdmod2_pml->{_fz} = '';
356 $sufdmod2_pml->{_hsfile} = '';
357 $sufdmod2_pml->{_hsz} = '';
358 $sufdmod2_pml->{_mt} = '';
359 $sufdmod2_pml->{_nt} = '';
360 $sufdmod2_pml->{_nx} = '';
361 $sufdmod2_pml->{_nz} = '';
362 $sufdmod2_pml->{_pml_max} = '';
363 $sufdmod2_pml->{_pml_thick} = '';
364 $sufdmod2_pml->{_ssfile} = '';
365 $sufdmod2_pml->{_tmax} = '';
366 $sufdmod2_pml->{_verbose} = '';
367 $sufdmod2_pml->{_vsfile} = '';
368 $sufdmod2_pml->{_vsx} = '';
369 $sufdmod2_pml->{_xs} = '';
370 $sufdmod2_pml->{_zs} = '';
371 $sufdmod2_pml->{_Step} = '';
372 $sufdmod2_pml->{_note} = '';
373 }
374  
375  
376 =head2 sub abs
377  
378  
379 =cut
380  
381 sub abs {
382  
383 my ( $self,$abs ) = @_;
384 if ( $abs ne $empty_string ) {
385  
386 $sufdmod2_pml->{_abs} = $abs;
387 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' abs='.$sufdmod2_pml->{_abs};
388 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' abs='.$sufdmod2_pml->{_abs};
389  
390 } else {
391 print("sufdmod2_pml, abs, missing abs,\n");
392 }
393 }
394  
395  
396 =head2 sub dfile
397  
398  
399 =cut
400  
401 sub dfile {
402  
403 my ( $self,$dfile ) = @_;
404 if ( $dfile ne $empty_string ) {
405  
406 $sufdmod2_pml->{_dfile} = $dfile;
407 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' dfile='.$sufdmod2_pml->{_dfile};
408 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' dfile='.$sufdmod2_pml->{_dfile};
409  
410 } else {
411 print("sufdmod2_pml, dfile, missing dfile,\n");
412 }
413 }
414  
415  
416 =head2 sub dx
417  
418  
419 =cut
420  
421 sub dx {
422  
423 my ( $self,$dx ) = @_;
424 if ( $dx ne $empty_string ) {
425  
426 $sufdmod2_pml->{_dx} = $dx;
427 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' dx='.$sufdmod2_pml->{_dx};
428 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' dx='.$sufdmod2_pml->{_dx};
429  
430 } else {
431 print("sufdmod2_pml, dx, missing dx,\n");
432 }
433 }
434  
435  
436 =head2 sub dz
437  
438  
439 =cut
440  
441 sub dz {
442  
443 my ( $self,$dz ) = @_;
444 if ( $dz ne $empty_string ) {
445  
446 $sufdmod2_pml->{_dz} = $dz;
447 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' dz='.$sufdmod2_pml->{_dz};
448 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' dz='.$sufdmod2_pml->{_dz};
449  
450 } else {
451 print("sufdmod2_pml, dz, missing dz,\n");
452 }
453 }
454  
455  
456 =head2 sub fmax
457  
458  
459 =cut
460  
461 sub fmax {
462  
463 my ( $self,$fmax ) = @_;
464 if ( $fmax ne $empty_string ) {
465  
466 $sufdmod2_pml->{_fmax} = $fmax;
467 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' fmax='.$sufdmod2_pml->{_fmax};
468 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' fmax='.$sufdmod2_pml->{_fmax};
469  
470 } else {
471 print("sufdmod2_pml, fmax, missing fmax,\n");
472 }
473 }
474  
475  
476 =head2 sub fpeak
477  
478  
479 =cut
480  
481 sub fpeak {
482  
483 my ( $self,$fpeak ) = @_;
484 if ( $fpeak ne $empty_string ) {
485  
486 $sufdmod2_pml->{_fpeak} = $fpeak;
487 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' fpeak='.$sufdmod2_pml->{_fpeak};
488 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' fpeak='.$sufdmod2_pml->{_fpeak};
489  
490 } else {
491 print("sufdmod2_pml, fpeak, missing fpeak,\n");
492 }
493 }
494  
495  
496 =head2 sub fx
497  
498  
499 =cut
500  
501 sub fx {
502  
503 my ( $self,$fx ) = @_;
504 if ( $fx ne $empty_string ) {
505  
506 $sufdmod2_pml->{_fx} = $fx;
507 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' fx='.$sufdmod2_pml->{_fx};
508 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' fx='.$sufdmod2_pml->{_fx};
509  
510 } else {
511 print("sufdmod2_pml, fx, missing fx,\n");
512 }
513 }
514  
515  
516 =head2 sub fz
517  
518  
519 =cut
520  
521 sub fz {
522  
523 my ( $self,$fz ) = @_;
524 if ( $fz ne $empty_string ) {
525  
526 $sufdmod2_pml->{_fz} = $fz;
527 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' fz='.$sufdmod2_pml->{_fz};
528 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' fz='.$sufdmod2_pml->{_fz};
529  
530 } else {
531 print("sufdmod2_pml, fz, missing fz,\n");
532 }
533 }
534  
535  
536 =head2 sub hsfile
537  
538  
539 =cut
540  
541 sub hsfile {
542  
543 my ( $self,$hsfile ) = @_;
544 if ( $hsfile ne $empty_string ) {
545  
546 $sufdmod2_pml->{_hsfile} = $hsfile;
547 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' hsfile='.$sufdmod2_pml->{_hsfile};
548 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' hsfile='.$sufdmod2_pml->{_hsfile};
549  
550 } else {
551 print("sufdmod2_pml, hsfile, missing hsfile,\n");
552 }
553 }
554  
555  
556 =head2 sub hsz
557  
558  
559 =cut
560  
561 sub hsz {
562  
563 my ( $self,$hsz ) = @_;
564 if ( $hsz ne $empty_string ) {
565  
566 $sufdmod2_pml->{_hsz} = $hsz;
567 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' hsz='.$sufdmod2_pml->{_hsz};
568 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' hsz='.$sufdmod2_pml->{_hsz};
569  
570 } else {
571 print("sufdmod2_pml, hsz, missing hsz,\n");
572 }
573 }
574  
575  
576 =head2 sub mt
577  
578  
579 =cut
580  
581 sub mt {
582  
583 my ( $self,$mt ) = @_;
584 if ( $mt ne $empty_string ) {
585  
586 $sufdmod2_pml->{_mt} = $mt;
587 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' mt='.$sufdmod2_pml->{_mt};
588 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' mt='.$sufdmod2_pml->{_mt};
589  
590 } else {
591 print("sufdmod2_pml, mt, missing mt,\n");
592 }
593 }
594  
595  
596 =head2 sub nt
597  
598  
599 =cut
600  
601 sub nt {
602  
603 my ( $self,$nt ) = @_;
604 if ( $nt ne $empty_string ) {
605  
606 $sufdmod2_pml->{_nt} = $nt;
607 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' nt='.$sufdmod2_pml->{_nt};
608 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' nt='.$sufdmod2_pml->{_nt};
609  
610 } else {
611 print("sufdmod2_pml, nt, missing nt,\n");
612 }
613 }
614  
615  
616 =head2 sub nx
617  
618  
619 =cut
620  
621 sub nx {
622  
623 my ( $self,$nx ) = @_;
624 if ( $nx ne $empty_string ) {
625  
626 $sufdmod2_pml->{_nx} = $nx;
627 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' nx='.$sufdmod2_pml->{_nx};
628 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' nx='.$sufdmod2_pml->{_nx};
629  
630 } else {
631 print("sufdmod2_pml, nx, missing nx,\n");
632 }
633 }
634  
635  
636 =head2 sub nz
637  
638  
639 =cut
640  
641 sub nz {
642  
643 my ( $self,$nz ) = @_;
644 if ( $nz ne $empty_string ) {
645  
646 $sufdmod2_pml->{_nz} = $nz;
647 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' nz='.$sufdmod2_pml->{_nz};
648 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' nz='.$sufdmod2_pml->{_nz};
649  
650 } else {
651 print("sufdmod2_pml, nz, missing nz,\n");
652 }
653 }
654  
655  
656 =head2 sub pml_max
657  
658  
659 =cut
660  
661 sub pml_max {
662  
663 my ( $self,$pml_max ) = @_;
664 if ( $pml_max ne $empty_string ) {
665  
666 $sufdmod2_pml->{_pml_max} = $pml_max;
667 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' pml_max='.$sufdmod2_pml->{_pml_max};
668 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' pml_max='.$sufdmod2_pml->{_pml_max};
669  
670 } else {
671 print("sufdmod2_pml, pml_max, missing pml_max,\n");
672 }
673 }
674  
675  
676 =head2 sub pml_thick
677  
678  
679 =cut
680  
681 sub pml_thick {
682  
683 my ( $self,$pml_thick ) = @_;
684 if ( $pml_thick ne $empty_string ) {
685  
686 $sufdmod2_pml->{_pml_thick} = $pml_thick;
687 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' pml_thick='.$sufdmod2_pml->{_pml_thick};
688 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' pml_thick='.$sufdmod2_pml->{_pml_thick};
689  
690 } else {
691 print("sufdmod2_pml, pml_thick, missing pml_thick,\n");
692 }
693 }
694  
695  
696 =head2 sub ssfile
697  
698  
699 =cut
700  
701 sub ssfile {
702  
703 my ( $self,$ssfile ) = @_;
704 if ( $ssfile ne $empty_string ) {
705  
706 $sufdmod2_pml->{_ssfile} = $ssfile;
707 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' ssfile='.$sufdmod2_pml->{_ssfile};
708 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' ssfile='.$sufdmod2_pml->{_ssfile};
709  
710 } else {
711 print("sufdmod2_pml, ssfile, missing ssfile,\n");
712 }
713 }
714  
715  
716 =head2 sub tmax
717  
718  
719 =cut
720  
721 sub tmax {
722  
723 my ( $self,$tmax ) = @_;
724 if ( $tmax ne $empty_string ) {
725  
726 $sufdmod2_pml->{_tmax} = $tmax;
727 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' tmax='.$sufdmod2_pml->{_tmax};
728 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' tmax='.$sufdmod2_pml->{_tmax};
729  
730 } else {
731 print("sufdmod2_pml, tmax, missing tmax,\n");
732 }
733 }
734  
735  
736 =head2 sub verbose
737  
738  
739 =cut
740  
741 sub verbose {
742  
743 my ( $self,$verbose ) = @_;
744 if ( $verbose ne $empty_string ) {
745  
746 $sufdmod2_pml->{_verbose} = $verbose;
747 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' verbose='.$sufdmod2_pml->{_verbose};
748 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' verbose='.$sufdmod2_pml->{_verbose};
749  
750 } else {
751 print("sufdmod2_pml, verbose, missing verbose,\n");
752 }
753 }
754  
755  
756 =head2 sub vsfile
757  
758  
759 =cut
760  
761 sub vsfile {
762  
763 my ( $self,$vsfile ) = @_;
764 if ( $vsfile ne $empty_string ) {
765  
766 $sufdmod2_pml->{_vsfile} = $vsfile;
767 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' vsfile='.$sufdmod2_pml->{_vsfile};
768 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' vsfile='.$sufdmod2_pml->{_vsfile};
769  
770 } else {
771 print("sufdmod2_pml, vsfile, missing vsfile,\n");
772 }
773 }
774  
775  
776 =head2 sub vsx
777  
778  
779 =cut
780  
781 sub vsx {
782  
783 my ( $self,$vsx ) = @_;
784 if ( $vsx ne $empty_string ) {
785  
786 $sufdmod2_pml->{_vsx} = $vsx;
787 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' vsx='.$sufdmod2_pml->{_vsx};
788 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' vsx='.$sufdmod2_pml->{_vsx};
789  
790 } else {
791 print("sufdmod2_pml, vsx, missing vsx,\n");
792 }
793 }
794  
795  
796 =head2 sub xs
797  
798  
799 =cut
800  
801 sub xs {
802  
803 my ( $self,$xs ) = @_;
804 if ( $xs ne $empty_string ) {
805  
806 $sufdmod2_pml->{_xs} = $xs;
807 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' xs='.$sufdmod2_pml->{_xs};
808 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' xs='.$sufdmod2_pml->{_xs};
809  
810 } else {
811 print("sufdmod2_pml, xs, missing xs,\n");
812 }
813 }
814  
815  
816 =head2 sub zs
817  
818  
819 =cut
820  
821 sub zs {
822  
823 my ( $self,$zs ) = @_;
824 if ( $zs ne $empty_string ) {
825  
826 $sufdmod2_pml->{_zs} = $zs;
827 $sufdmod2_pml->{_note} = $sufdmod2_pml->{_note}.' zs='.$sufdmod2_pml->{_zs};
828 $sufdmod2_pml->{_Step} = $sufdmod2_pml->{_Step}.' zs='.$sufdmod2_pml->{_zs};
829  
830 } else {
831 print("sufdmod2_pml, zs, missing zs,\n");
832 }
833 }
834  
835  
836 =head2 sub get_max_index
837  
838 max index = number of input variables -1
839
840 =cut
841
842 sub get_max_index {
843 my ($self) = @_;
844 my $max_index = 22;
845  
846 return($max_index);
847 }
848
849
850 1;