你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 04:56:51 +08:00
Formatting cleanups.
这个提交包含在:
@@ -24,10 +24,10 @@ import numpy as np
|
||||
from struct import pack
|
||||
|
||||
from gprMax._version import __version__
|
||||
from gprMax.geometry_outputs_ext import define_normal_geometry
|
||||
from gprMax.geometry_outputs_ext import define_fine_geometry
|
||||
from gprMax.utilities import round_value
|
||||
|
||||
from .geometry_outputs_ext import define_fine_geometry, define_normal_geometry
|
||||
|
||||
|
||||
class GeometryView(object):
|
||||
"""Views of the geometry of the model."""
|
||||
|
@@ -1,7 +1,26 @@
|
||||
# Copyright (C) 2015-2018: The University of Edinburgh
|
||||
# Authors: Craig Warren and Antonis Giannopoulos
|
||||
#
|
||||
# This file is part of gprMax.
|
||||
#
|
||||
# gprMax is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# gprMax is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with gprMax. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
cimport numpy as np
|
||||
|
||||
from gprMax.constants cimport floattype_t
|
||||
|
||||
|
||||
cpdef void define_fine_geometry(
|
||||
int nx,
|
||||
int ny,
|
||||
@@ -62,6 +81,7 @@ cpdef void define_fine_geometry(
|
||||
|
||||
label = label + 1
|
||||
|
||||
|
||||
cpdef void define_normal_geometry(
|
||||
int xs,
|
||||
int xf,
|
||||
@@ -78,7 +98,6 @@ cpdef void define_normal_geometry(
|
||||
np.uint32_t[:] solid_geometry,
|
||||
np.int8_t[:] srcs_pml_geometry,
|
||||
np.int8_t[:] rxs_geometry,
|
||||
|
||||
):
|
||||
|
||||
cdef Py_ssize_t i, j, k
|
||||
@@ -91,6 +110,3 @@ cpdef void define_normal_geometry(
|
||||
srcs_pml_geometry[counter] = srcs_pml[i, j, k]
|
||||
rxs_geometry[counter] = rxs[i, j, k]
|
||||
counter = counter + 1
|
||||
|
||||
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户