你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 15:10:13 +08:00
Update knl_fields_updates.py
这个提交包含在:
@@ -222,7 +222,8 @@ update_electric_dispersive_A = {
|
||||
// dispersive, ID and field
|
||||
// component arrays.
|
||||
|
||||
|
||||
$CUDA_IDX
|
||||
|
||||
// Convert the linear index to subscripts for 3D field arrays
|
||||
int x = i / ($NY_FIELDS * $NZ_FIELDS);
|
||||
int y = (i % ($NY_FIELDS * $NZ_FIELDS)) / $NZ_FIELDS;
|
||||
@@ -238,7 +239,6 @@ update_electric_dispersive_A = {
|
||||
int y_T = ((i % ($NX_T * $NY_T * $NZ_T)) % ($NY_T * $NZ_T)) / $NZ_T;
|
||||
int z_T = ((i % ($NX_T * $NY_T * $NZ_T)) % ($NY_T * $NZ_T)) % $NZ_T;
|
||||
|
||||
$CUDA_IDX
|
||||
|
||||
// Ex component
|
||||
if ((NY != 1 || NZ != 1) && x >= 0 && x < NX && y > 0 && y < NY && z > 0 && z < NZ) {
|
||||
@@ -334,7 +334,8 @@ update_electric_dispersive_B = {
|
||||
// dispersive, ID and field
|
||||
// component arrays.
|
||||
|
||||
|
||||
$CUDA_IDX
|
||||
|
||||
// Convert the linear index to subscripts for 3D field arrays
|
||||
int x = i / ($NY_FIELDS * $NZ_FIELDS);
|
||||
int y = (i % ($NY_FIELDS * $NZ_FIELDS)) / $NZ_FIELDS;
|
||||
@@ -350,7 +351,6 @@ update_electric_dispersive_B = {
|
||||
int y_T = ((i % ($NX_T * $NY_T * $NZ_T)) % ($NY_T * $NZ_T)) / $NZ_T;
|
||||
int z_T = ((i % ($NX_T * $NY_T * $NZ_T)) % ($NY_T * $NZ_T)) % $NZ_T;
|
||||
|
||||
$CUDA_IDX
|
||||
|
||||
// Ex component
|
||||
if ((NY != 1 || NZ != 1) && x >= 0 && x < NX && y > 0 && y < NY && z > 0 && z < NZ) {
|
||||
|
在新工单中引用
屏蔽一个用户