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

Removed completed TODOs.

parent 6db5f5af
No related branches found
No related tags found
No related merge requests found
...@@ -3,16 +3,7 @@ ...@@ -3,16 +3,7 @@
@author: Soraya Terrab (sorayaterrab), Laura C. Kühle @author: Soraya Terrab (sorayaterrab), Laura C. Kühle
TODO: Adjust code to fit style TODO: Adjust code to fit style
TODO: Replace lambda expressions with InitialCondition -> Done
TODO: Fix NoneType error -> Done (last of three troubled cell functions is used twice)
-> Why? (Problem with samples_per_function I guess)
TODO: Implement option to choose between lambda expressions and InitialCondition -> Done
TODO: Fix might be referenced before assignment error for "discontinuous_function" -> Done
TODO: Extract initial conditions from "generate_[...]_cell_data()" -> Done
TODO: Combine "generate_smooth_cell_data()" and "generate_troubled_cell_data()" to "generate_cell_data()" -> Done
TODO: Adapt variable names to fit style TODO: Adapt variable names to fit style
TODO: Replace "num_of_eval_pts" with polynomial_degree + 1 -> Done (no need as deleted)
TODO: Replace calculation in "cell_centers_leg_basis_coeff()" with "_do_initial_projection()" -> Done
""" """
...@@ -32,6 +23,7 @@ x1 = Symbol('x') ...@@ -32,6 +23,7 @@ x1 = Symbol('x')
def cell_centers_leg_basis_coeff(num_grid_cells, polynomial_degree, initial_condition): def cell_centers_leg_basis_coeff(num_grid_cells, polynomial_degree, initial_condition):
# Create stencil and basis_coefficients for smooth_function mapped onto stencil # Create stencil and basis_coefficients for smooth_function mapped onto stencil
interval, centers, h = create_3_point_stencil() interval, centers, h = create_3_point_stencil()
centers = [center[0] for center in centers]
# print(interval, centers, h) # print(interval, centers, h)
initial_condition.induce_adjustment(-h[0]/3) initial_condition.induce_adjustment(-h[0]/3)
...@@ -47,7 +39,6 @@ def cell_centers_leg_basis_coeff(num_grid_cells, polynomial_degree, initial_cond ...@@ -47,7 +39,6 @@ def cell_centers_leg_basis_coeff(num_grid_cells, polynomial_degree, initial_cond
else: else:
coeffs = dg_scheme.build_training_data(centers[1], initial_condition) coeffs = dg_scheme.build_training_data(centers[1], initial_condition)
centers = [center[0] for center in centers]
return centers, h, coeffs return centers, h, coeffs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment