Skip to content

Commit

Permalink
add compress current_solution in the iterate_explicit function claw.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpablogallego committed Oct 17, 2014
1 parent 0acb227 commit f4b7bc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src_mpi/claw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,12 @@ void ConservationLaw<dim>::iterate_explicit (IntegratorExplicit<dim>& integrator
// Forward euler step in case of explicit scheme
// In case of implicit scheme, this is the update
current_solution += newton_update;
current_solution.compress (VectorOperation::insert);

// current_solution = ark*old_solution + (1-ark)*current_solution
current_solution.sadd (1.0-ark[rk], ark[rk], old_solution);
current_solution.compress (VectorOperation::insert);


compute_cell_average ();
compute_shock_indicator ();
Expand Down

0 comments on commit f4b7bc1

Please sign in to comment.