Skip to content

Commit

Permalink
mixed_poisson projection error in work
Browse files Browse the repository at this point in the history
  • Loading branch information
niravshah241 committed Jul 21, 2024
1 parent 3bcd88b commit 7cdf340
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -492,13 +492,13 @@ def generate_projection_error_set(num_projection_samples=10):
print(f"Rank: {world_comm.rank}, Indices (projection error): {projection_error_indices_sigma}")

for k in projection_error_indices_sigma:
fem_sol = problem_parametric.solve(projection_error_samples_sigma[k, :])
fem_sol_sigma, _ = problem_parametric.solve(projection_error_samples_sigma[k, :])
reconstructed_sol = \
reduced_problem.reconstruct_solution_sigma(
reduced_problem.project_snapshot_sigma(fem_sol,
reduced_problem.project_snapshot_sigma(fem_sol_sigma,
reduced_size_sigma))
projection_error_array_sigma[k] = \
reduced_problem.norm_error_sigma(fem_sol, reconstructed_sol)
reduced_problem.norm_error_sigma(fem_sol_sigma, reconstructed_sol)

print(f"Rank: {world_comm.rank}, Projection error: {projection_error_indices_sigma[indices]}")

Expand Down

0 comments on commit 7cdf340

Please sign in to comment.