Smoother_Factory_Function_Helper Namespace Reference

Returns a pointer to a smoother of the appropriate type. More...

Functions

HelmholtzSmootherset_pre_smoother ()
 
HelmholtzSmootherset_post_smoother ()
 
Smootherset_smoother ()
 

Variables

double Omega =0.4
 The value of the damping factor for the damped Jacobi smoother. More...
 

Detailed Description

Returns a pointer to a smoother of the appropriate type.

////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////

Function Documentation

◆ set_post_smoother()

Smoother * Smoother_Factory_Function_Helper::set_post_smoother ( )

Returns a pointer to a Smoother object which is to be used as the post-smoother

257  {
258  // Create a new DampedJacobi object
260  }
Definition: complex_smoother.h:282
double Omega
The value of the damping factor for the damped Jacobi smoother.
Definition: structured_cubic_point_source.cc:244

References Omega.

Referenced by PMLStructuredCubicHelmholtz< ELEMENT >::set_gmres_multigrid_solver(), and PMLHelmholtzMGProblem< ELEMENT >::set_gmres_multigrid_solver().

◆ set_pre_smoother()

Smoother * Smoother_Factory_Function_Helper::set_pre_smoother ( )

Returns a pointer to a Smoother object which is to be used as the pre-smoother

249  {
250  // Create a new DampedJacobi object
252  }

References Omega.

Referenced by PMLStructuredCubicHelmholtz< ELEMENT >::set_gmres_multigrid_solver(), and PMLHelmholtzMGProblem< ELEMENT >::set_gmres_multigrid_solver().

◆ set_smoother()

Smoother * Smoother_Factory_Function_Helper::set_smoother ( )

Returns a pointer to a Gauss-Seidel Smoother object which can be used as a pre- or post-smoother

Returns a pointer to a Gauss-Seidel Smoother object which is to be used as a pre- or post-smoother

97  {
98  // Create a new GS object
99  return new GS<CRDoubleMatrix>;
100  } // End of set_pre_smoother
Definition: iterative_linear_solver.h:785

Referenced by FluxPoissonMGProblem< ELEMENT, MESH >::set_multigrid_solver(), and UnitCubePoissonMGProblem< ELEMENT, MESH >::set_multigrid_solver().

Variable Documentation

◆ Omega

double Smoother_Factory_Function_Helper::Omega =0.4

The value of the damping factor for the damped Jacobi smoother.

Referenced by main(), set_post_smoother(), and set_pre_smoother().