Skip to content

Commit 143ef60

Browse files
committed
STYLE: use struct vars depsrc/deprcv to check their depths in propagate.c
1 parent 5af08bc commit 143ef60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygrt/C_extension/src/dynamic/propagate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ void grt_kernel(
418418

419419
// 对一些特殊情况的修正
420420
// 当震源和场点均位于地表时,可理论验证DS分量恒为0,这里直接赋0以避免后续的精度干扰
421-
if(mod1d->Dep[mod1d->isrc] == 0.0 && mod1d->Dep[mod1d->ircv] == 0.0)
421+
if(mod1d->depsrc == 0.0 && mod1d->deprcv == 0.0)
422422
{
423423
for(MYINT c=0; c<GRT_QWV_NUM; ++c){
424424
QWV[GRT_SRC_M_DS_INDEX][c] = 0.0;

0 commit comments

Comments
 (0)