[Cython/1D] Raise an error if the auto solver exceeds the max number of grid points
This commit is contained in:
parent
0b9a741597
commit
c91bdee2e2
1 changed files with 3 additions and 0 deletions
|
|
@ -838,6 +838,9 @@ cdef class Sim1D:
|
|||
|
||||
for N in nPoints:
|
||||
for i,D in enumerate(flow_domains):
|
||||
if N > self.get_max_grid_points(D):
|
||||
raise CanteraError('Maximum number of grid points exceeded')
|
||||
|
||||
if N != len(D.grid):
|
||||
D.grid = np.linspace(zmin[i], zmax[i], N)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue