38 #ifndef GreatCircle_Xn_H
39 #define GreatCircle_Xn_H
103 const double& latSource,
104 const double& lonSource,
105 const double& depthSource,
106 const double& latReceiver,
107 const double& lonReceiver,
108 const double& depthReceiver,
109 const double& chMax);
128 void getZhaoParameters(
double& Vm,
double& Gm,
double& H,
double& C,
double& Cm,
int& udSign);
198 void computeTravelTime();
202 void computeTravelTimeCrust();
204 void computeTravelTimeMantle();
206 double c, cm, zm, zhao_r, cz, cmz;
210 double func(
const double& h);
212 void mnbrak(
double &ax,
double &bx,
double &cx,
213 double &fa,
double &fb,
double &fc);
215 double brent(
const double ax,
const double bx,
const double cx,
216 const double tol,
double &xmin);
218 void SWAP(
double &a,
double &b) {
double dum=a; a=b; b=dum;}
220 double SIGN(
const double &a,
const double &b)
221 {
return b >= 0 ? (a >= 0 ? a : -a) : (a >= 0 ? -a : a);};
223 void shft3(
double &a,
double &b,
double &cc,
const double d)
228 inline void GreatCircle_Xn::getZhaoParameters(
double& Vm_,
double& Gm_,
double& H_,
double& C_,
double& Cm_,
int& udSign_)
The GreatCircle_Xn class manages information related to a great circle path between two Locations on ...
GreatCircle_Xn & operator=(const GreatCircle_Xn &other)
Equal operator.
string toString(const int &verbosity)
Retrieve a formatted string providing a detailed description of the information managed by this Great...
GreatCircle_Xn(const int &_phase, Grid &_grid, const double &latSource, const double &lonSource, const double &depthSource, const double &latReceiver, const double &lonReceiver, const double &depthReceiver, const double &chMax)
Parameterized constructor.
GreatCircle_Xn(const GreatCircle_Xn &other)
Copy constructor.
~GreatCircle_Xn()
Destructor. Deletes the source and receiver CrustalProfile objects and all LayerProfile objects creat...
The GreatCircle class manages information related to a great circle path between two Locations on the...
A 2 dimensional, horizontal grid of GirdProfile objects.