Skip to content

Commit

Permalink
removing commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Olender committed Jul 24, 2024
1 parent f6c4b2b commit f01cfa2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions spyro/solvers/acoustic_solver_construction_no_pml.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ def construct_solver_or_matrix_no_pml(Wave_object):
Wave_object.solver = fire.LinearSolver(
A, solver_parameters=Wave_object.solver_parameters
)
# lin_var = fire.LinearVariationalProblem(lhs, rhs + B, u_np1)
# solver_parameters = {"mat_type": "matfree", "ksp_type": "preonly", "pc_type": "jacobi"}
# Wave_object.solver = fire.LinearVariationalSolver(lin_var,solver_parameters=solver_parameters)

Wave_object.rhs = rhs
Wave_object.B = B
5 changes: 0 additions & 5 deletions spyro/solvers/time_integration_central_difference.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,6 @@ def central_difference_MMS(Wave_object, source_id=0):
u_np1 = Wave_object.u_np1
u_nm1.assign(Wave_object.analytical_solution(t - 2 * dt))
u_n.assign(Wave_object.analytical_solution(t - dt))
# u_np1 = fire.Function(Wave_object.function_space, name="pressure t +dt")
# u_nm1.dat.data[:] = np.load("old_u_nm1.npy")
# u_n.dat.data[:] = np.load("old_u_n.npy")
u = fire.TrialFunction(Wave_object.function_space)
v = fire.TestFunction(Wave_object.function_space)

Expand Down Expand Up @@ -283,8 +280,6 @@ def central_difference_MMS(Wave_object, source_id=0):

Wave_object.solver.solve(u_np1, B)

# u_np1.assign(X)

usol_recv.append(
Wave_object.receivers.interpolate(u_np1.dat.data_ro_with_halos[:])
)
Expand Down

0 comments on commit f01cfa2

Please sign in to comment.