From 4382509e428e4384a327c1bf3ef358af983accfb Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 7 May 2019 11:18:46 -0600 Subject: [PATCH] Rename a couple of functions in step-61. --- examples/step-61/step-61.cc | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/examples/step-61/step-61.cc b/examples/step-61/step-61.cc index e7992ec622..c6f2107e24 100644 --- a/examples/step-61/step-61.cc +++ b/examples/step-61/step-61.cc @@ -88,8 +88,8 @@ namespace Step61 void setup_system(); void assemble_system(); void solve(); - void postprocess(); - void process_solution(); + void compute_velocity_errors(); + void compute_pressure_error(); void output_results() const; Triangulation triangulation; @@ -516,11 +516,13 @@ namespace Step61 constraints.distribute(solution); } - // @sect4{WGDarcyEquation::process_solution} + + + // @sect4{WGDarcyEquation::compute_pressure_error} // This part is to calculate the $L_2$ error of the pressure. template - void WGDarcyEquation::process_solution() + void WGDarcyEquation::compute_pressure_error() { // Since we have two different spaces for finite elements in interior and on // faces, if we want to calculate $L_2$ errors in interior, we need degrees @@ -576,6 +578,8 @@ namespace Step61 std::cout << "L2_error_pressure " << L2_error << std::endl; } + + // @sect4{WGDarcyEquation::postprocess} // After we calculated the numerical pressure, we evaluate $L_2$ errors for @@ -587,7 +591,7 @@ namespace Step61 // cell matrices. template - void WGDarcyEquation::postprocess() + void WGDarcyEquation::compute_velocity_errors() { const FE_RaviartThomas fe_rt(0); const QGauss quadrature_formula(fe_rt.degree + 1); @@ -899,8 +903,8 @@ namespace Step61 setup_system(); assemble_system(); solve(); - process_solution(); - postprocess(); + compute_pressure_error(); + compute_velocity_errors(); output_results(); } -- 2.39.5