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

Changed minimum training mesh size to 2^5.

parent 406c3f99
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ class TrainingDataGenerator:
for pol_deg in range(7)]
self._mesh_list = [Mesh(left_bound=left_bound, right_bound=right_bound,
num_ghost_cells=0, num_cells=2**exp)
for exp in range(3, 12)]
for exp in range(5, 12)]
def build_training_data(self, init_cond_list, num_samples, balance=0.5,
directory='test_data', add_reconstructions=True,
......@@ -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))-3].random_stencil(stencil_len)
5, high=12, size=1))-5].random_stencil(stencil_len)
# Induce shift to capture troubled cells
shift = 0 if init_cond.is_smooth() \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment