你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-04 11:36:52 +08:00
Fix overflow bug for cell count with large models
这个提交包含在:
@@ -99,8 +99,8 @@ class Model:
|
||||
self.G.nz = value
|
||||
|
||||
@property
|
||||
def cells(self) -> np.int64:
|
||||
return np.prod(self.G.size)
|
||||
def cells(self) -> np.uint64:
|
||||
return np.prod(self.G.size, dtype=np.uint64)
|
||||
|
||||
@property
|
||||
def dx(self) -> float:
|
||||
|
@@ -1,5 +1,5 @@
|
||||
# Copyright (C) 2015-2025: The University of Edinburgh, United Kingdom
|
||||
# Authors: Craig Warren, Antonis Giannopoulos, John Hartley,
|
||||
# Authors: Craig Warren, Antonis Giannopoulos, John Hartley,
|
||||
# and Nathan Mannall
|
||||
#
|
||||
# This file is part of gprMax.
|
||||
@@ -21,10 +21,8 @@ import logging
|
||||
from typing import Optional, Tuple, Union
|
||||
|
||||
import numpy as np
|
||||
import numpy.typing as npt
|
||||
|
||||
from gprMax import config
|
||||
from gprMax.grid.mpi_grid import MPIGrid
|
||||
from gprMax.model import Model
|
||||
from gprMax.pml import PML
|
||||
from gprMax.user_objects.user_objects import ModelUserObject
|
||||
|
在新工单中引用
屏蔽一个用户