Skip to content

Commit b22869b

Browse files
committed
FIX: Fix the terminology in code comments, changing "dislocation source" to "shear source" to ensure the consistency and accuracy of terminology. Also update related function calls to reflect the latest API changes.
1 parent c73d941 commit b22869b

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

example/site_effect/run2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
pymod2 = pygrt.PyModel1D(modarr2, depsrc, deprcv)
2323

2424
# compute Green's Functions
25-
st_grn = pymod.gen_gf_spectra(
25+
st_grn = pymod.compute_grn(
2626
distarr=rs,
2727
nt=nt,
2828
dt=dt,
@@ -31,7 +31,7 @@
3131
Length=20,
3232
gf_source=['DC']
3333
)[0]
34-
st_grn2 = pymod2.gen_gf_spectra(
34+
st_grn2 = pymod2.compute_grn(
3535
distarr=rs,
3636
nt=nt,
3737
dt=dt,

pygrt/C_extension/include/common/radiation.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
* @param srcCoef (out)方向因子,[3]表示ZRT三分量,[6]表示6个震源(EX,VF,HF,DD,DS,SS)
2323
* @param computeType (in)要计算的震源类型,使用宏定义
2424
* @param par_theta (in)方向因子中是否对theta(az)求导
25-
* @param M0 (in)放大系数,对于位错源、爆炸源、张量震源,M0是标量地震矩;对于单力源,M0是放大系数
25+
* @param M0 (in)放大系数,对于剪切源、爆炸源、张量震源,M0是标量地震矩;对于单力源,M0是放大系数
2626
* @param coef (in)放大系数,用于位移空间导数的计算
2727
* @param azrad (in)弧度制的方位角
2828
* @param mchn (in)震源机制参数,
2929
* 对于单力源,mchn={fn, fe, fz},
30-
* 对于位错源,mchn={strike, dip, rake},
30+
* 对于剪切源,mchn={strike, dip, rake},
3131
* 对于张量源,mchn={Mxx, Mxy, Mxz, Myy, Myz, Mzz}
3232
*/
3333
void set_source_radiation(

pygrt/C_extension/include/dynamic/propagate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* 1.EXP 爆炸源, (P0)
2525
* 2.VF 垂直力源, (P0, SV0)
2626
* 3.HF 水平力源, (P1, SV1, SH1)
27-
* 4.DC 剪切位错源, (P0, SV0), (P1, SV1, SH1), (P2, SV2, SH2)
27+
* 4.DC 剪切源, (P0, SV0), (P1, SV1, SH1), (P2, SV2, SH2)
2828
*
2929
* 的 \f$ q_m, w_m, v_m \f$ 系数(\f$ m=0,1,2 \f$),
3030
*

pygrt/C_extension/src/dynamic/grt_syn.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static char *s_prefix = NULL;
4848
static const char *s_prefix_default = "out";
4949
// 方位角,以及对应弧度制
5050
static double azimuth = 0.0, azrad = 0.0, backazimuth=0.0;
51-
// 放大系数,对于位错源、爆炸源、张量震源,M0是标量地震矩;对于单力源,M0是放大系数
51+
// 放大系数,对于剪切源、爆炸源、张量震源,M0是标量地震矩;对于单力源,M0是放大系数
5252
static double M0 = 0.0;
5353
// 在放大系数上是否需要乘上震源处的剪切模量
5454
static bool mult_src_mu = false;
@@ -327,7 +327,7 @@ static void getopt_from_command(int argc, char **argv){
327327
};
328328
break;
329329

330-
// 位错震源
330+
// 剪切震源
331331
case 'M':
332332
M_flag = 1;
333333
computeType = GRT_SYN_COMPUTE_DC;

pygrt/C_extension/src/static/stgrt_syn.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extern int optopt;
2929
//****************** 在该文件以内的全局变量 ***********************//
3030
// 命令名称
3131
static char *command = NULL;
32-
// 放大系数,对于位错源、爆炸源、张量震源,M0是标量地震矩;对于单力源,M0是放大系数
32+
// 放大系数,对于剪切源、爆炸源、张量震源,M0是标量地震矩;对于单力源,M0是放大系数
3333
static double M0 = 0.0;
3434
// 在放大系数上是否需要乘上震源处的剪切模量
3535
static bool mult_src_mu = false;
@@ -168,7 +168,7 @@ static void getopt_from_command(int argc, char **argv){
168168
};
169169
break;
170170

171-
// 位错震源
171+
// 剪切震源
172172
case 'M':
173173
M_flag = 1;
174174
computeType = GRT_SYN_COMPUTE_DC;

0 commit comments

Comments
 (0)