UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
sim_vm_params.hpp
1 /* sim_vm_params.hpp */
2 /* $Id$ */
3 #ifndef __sim_vm_params_hpp
4 #define __sim_vm_params_hpp
5 
6 #include <s2proc/sim_service.hpp>
7 
11 namespace sim
12 {
17  {
18  public:
19 
21  VmParamsIso(): m_vp(0), m_vs(0), m_rho(0) {/* nothing to do. */}
22 
28  VmParamsIso(const CoordT &i_vp,
29  const CoordT &i_vs,
30  const CoordT &i_rho):
31  m_vp(i_vp), m_vs(i_vs), m_rho(i_rho) {/* nothing to do. */}
32 
33  const CoordT& vp() const {return m_vp;}
34  const CoordT& vs() const {return m_vs;}
35  const CoordT& rho() const {return m_rho;}
36 
37  protected:
38 
39  CoordT m_vp;
40  CoordT m_vs;
41  CoordT m_rho;
42  };
43 
47  class VmParamsAniso : public VmParamsIso
48  {
49  public:
50 
52  VmParamsAniso(): VmParamsIso(), m_ankp(0), m_anks(0) {/* nothing to do. */}
53 
61  VmParamsAniso(const CoordT &i_vp,
62  const CoordT &i_ankp,
63  const CoordT &i_vs,
64  const CoordT &i_anks,
65  const CoordT &i_rho):
66  VmParamsIso(i_vp, i_vs, i_rho), m_ankp(i_ankp), m_anks(i_anks) {/* nothing to do. */}
67 
68  const CoordT& ankp() const {return m_ankp;}
69  const CoordT& anks() const {return m_anks;}
70 
71  protected:
72 
73  CoordT m_ankp;
74  CoordT m_anks;
75  };
76 
77 }; // simulation namespace
78 
79 #endif /* sim_vm_params.hpp */
CoordT m_rho
Definition: sim_vm_params.hpp:41
VmParamsIso(const CoordT &i_vp, const CoordT &i_vs, const CoordT &i_rho)
Definition: sim_vm_params.hpp:28
CoordT m_ankp
Definition: sim_vm_params.hpp:73
Definition: sim_vm_params.hpp:47
VmParamsIso()
Definition: sim_vm_params.hpp:21
CoordT m_anks
Definition: sim_vm_params.hpp:74
VmParamsAniso(const CoordT &i_vp, const CoordT &i_ankp, const CoordT &i_vs, const CoordT &i_anks, const CoordT &i_rho)
Definition: sim_vm_params.hpp:61
CoordT m_vp
Definition: sim_vm_params.hpp:39
bool sim(size_t n, const Trace::AmplT *x, const Trace::AmplT *y, Trace::AmplT &s)
CoordT m_vs
Definition: sim_vm_params.hpp:40
VmParamsAniso()
Definition: sim_vm_params.hpp:52
Definition: sim_vm_params.hpp:16