Skip to content
Snippets Groups Projects
Commit 0e93e230 authored by Laura Christine Kühle's avatar Laura Christine Kühle
Browse files

Fixed index issue for mesh selection during training.

parent a3d73db0
No related branches found
No related tags found
No related merge requests found
......@@ -216,7 +216,7 @@ class TrainingDataGenerator:
# Build mesh for random stencil of given length
mesh = self._mesh_list[int(np.random.randint(
3, high=12, size=1))-5].random_stencil(stencil_length)
3, high=12, size=1))-3].random_stencil(stencil_length)
# Induce adjustment to capture troubled cells
adjustment = 0 if initial_condition.is_smooth() \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment