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

Changed maximum training degree to 6.

parent e0d5a9eb
No related branches found
No related tags found
No related merge requests found
...@@ -45,9 +45,9 @@ class TrainingDataGenerator: ...@@ -45,9 +45,9 @@ class TrainingDataGenerator:
""" """
self._basis_list = [OrthonormalLegendre(pol_deg) self._basis_list = [OrthonormalLegendre(pol_deg)
for pol_deg in range(5)] for pol_deg in range(7)]
self._quadrature_list = [Gauss({'num_nodes': pol_deg+1}) self._quadrature_list = [Gauss({'num_nodes': pol_deg+1})
for pol_deg in range(5)] for pol_deg in range(7)]
self._mesh_list = [Mesh(left_bound=left_bound, right_bound=right_bound, self._mesh_list = [Mesh(left_bound=left_bound, right_bound=right_bound,
num_ghost_cells=0, num_cells=2**exp) num_ghost_cells=0, num_cells=2**exp)
for exp in range(3, 12)] for exp in range(3, 12)]
...@@ -227,7 +227,7 @@ class TrainingDataGenerator: ...@@ -227,7 +227,7 @@ class TrainingDataGenerator:
shift += mesh.cell_len/2 shift += mesh.cell_len/2
# Calculate basis coefficients for stencil # Calculate basis coefficients for stencil
polynomial_degree = np.random.randint(1, high=5) polynomial_degree = np.random.randint(1, high=7)
projection = do_initial_projection( projection = do_initial_projection(
init_cond=init_cond, mesh=mesh, init_cond=init_cond, mesh=mesh,
basis=self._basis_list[polynomial_degree], basis=self._basis_list[polynomial_degree],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment