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

Fixed bug in 'input_data' calculation.

parent 7cc192f3
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,7 @@ TODO: Improve function selection (more even distribution) -> Done ...@@ -12,6 +12,7 @@ TODO: Improve function selection (more even distribution) -> Done
TODO: Add documentation -> Done TODO: Add documentation -> Done
TODO: Improve comments -> Done TODO: Improve comments -> Done
TODO: Remove unnecessary lines -> Done TODO: Remove unnecessary lines -> Done
TODO: Fix bug in 'input_data' calculation -> Done
""" """
...@@ -205,7 +206,8 @@ class TrainingDataGenerator(object): ...@@ -205,7 +206,8 @@ class TrainingDataGenerator(object):
'NoDetection', polynomial_degree=polynomial_degree, 'NoDetection', polynomial_degree=polynomial_degree,
num_grid_cells=self._stencil_length, left_bound=left_bound, right_bound=right_bound, num_grid_cells=self._stencil_length, left_bound=left_bound, right_bound=right_bound,
quadrature='Gauss', quadrature_config={'num_eval_points': polynomial_degree+1}) quadrature='Gauss', quadrature_config={'num_eval_points': polynomial_degree+1})
input_data[i] = dg_scheme.build_training_data(adjustment, initial_condition) input_data[i] = dg_scheme.build_training_data(adjustment, self._stencil_length,
initial_condition)
count += 1 count += 1
if count % 1000 == 0: if count % 1000 == 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment