Poster of Linux kernelThe best gift for a Linux geek
libmesh_common.h

libmesh_common.h

Section: C Library Functions (3) Updated: Thu Apr 7 2011
Local index Up
 

NAME

libmesh_common.h -  

SYNOPSIS


 

Namespaces


namespace std

namespace libMesh
 

Typedefs


typedef long double Real

typedef std::complex< double > Complex

typedef std::complex< double > COMPLEX

typedef Real Number
 

Functions


long double std::max (long double a, double b)

long double std::min (long double a, double b)

long double std::max (double a, long double b)

long double std::min (double a, long double b)

double std::max (double a, float b)

double std::min (double a, float b)

double std::max (float a, double b)

double std::min (float a, double b)

long double std::max (long double a, float b)

long double std::min (long double a, float b)

long double std::max (float a, long double b)

long double std::min (float a, long double b)

template<typename T > T libmesh_real (T a)

template<typename T > T libmesh_norm (T a)

template<typename T > T libmesh_real (std::complex< T > a)

template<typename T > T libmesh_norm (std::complex< T > a)

template<typename Tnew , typename Told > Tnew libmesh_cast_ref (Told &oldvar)

template<typename Tnew , typename Told > Tnew libmesh_cast_ptr (Told *oldvar)
 

Variables


DIE A HORRIBLE DEATH HERE typedef float ErrorVectorReal

MPI_Comm libMesh::COMM_WORLD = MPI_COMM_NULL
 

Typedef Documentation

 

typedef std::complex<double> Complex

Definition at line 147 of file libmesh_common.h.  

typedef std::complex<double> COMPLEX

Definition at line 148 of file libmesh_common.h.  

typedef Complex Number

Definition at line 167 of file libmesh_common.h.  

typedef float Real

Definition at line 97 of file libmesh_common.h.  

Function Documentation

 

template<typename Tnew , typename Told > Tnew libmesh_cast_ptr (Told *oldvar) [inline]

Definition at line 269 of file libmesh_common.h.

{
#ifndef NDEBUG
  Tnew newvar = dynamic_cast<Tnew>(oldvar);
  libmesh_assert (newvar);
  return newvar;
#else
  return(static_cast<Tnew>(oldvar));
#endif
}
 

template<typename Tnew , typename Told > Tnew libmesh_cast_ref (Told &oldvar) [inline]

Definition at line 249 of file libmesh_common.h.

{
#ifndef NDEBUG
  try
    {
      Tnew newvar = dynamic_cast<Tnew>(oldvar);
      return newvar;
    }
  catch (std::bad_cast)
    {
      libmesh_assert (false);
    }
#else
  return(static_cast<Tnew>(oldvar));
#endif
}
 

template<typename T > T libmesh_norm (Ta) [inline]

Definition at line 154 of file libmesh_common.h.

Referenced by ExactSolution::_compute_error(), UniformRefinementEstimator::_estimate_error(), KellyErrorEstimator::boundary_side_integration(), DiscontinuityMeasure::boundary_side_integration(), System::calculate_norm(), ExactErrorEstimator::find_squared_element_error(), KellyErrorEstimator::internal_side_integration(), LaplacianErrorEstimator::internal_side_integration(), DiscontinuityMeasure::internal_side_integration(), DistributedVector< T >::l2_norm(), DenseVector< T >::l2_norm(), DenseVector< T >::linfty_norm(), PatchRecoveryErrorEstimator::EstimateError::operator()(), HPCoarsenTest::select_refinement(), TypeVector< T >::size_sq(), TypeTensor< T >::size_sq(), and NumericVector< T >::subset_l2_norm().

{ return a*a; }
 

template<typename T > T libmesh_norm (std::complex< T >a) [inline]

Definition at line 160 of file libmesh_common.h.

{ return std::norm(a); }
 

template<typename T > T libmesh_real (Ta) [inline]

Definition at line 153 of file libmesh_common.h.

Referenced by ContinuationSystem::continuation_solve(), FEMContext::elem_position_set(), FEMSystem::eulerian_residual(), LaspackVector< T >::max(), DistributedVector< T >::max(), DenseVector< T >::max(), DenseMatrix< T >::max(), LaspackVector< T >::min(), DistributedVector< T >::min(), DenseVector< T >::min(), DenseMatrix< T >::min(), FEMSystem::numerical_jacobian(), ContinuationSystem::solve_tangent(), GmshIO::write_post(), EnsightIO::write_scalar_ascii(), and EnsightIO::write_vector_ascii().

{ return a; }
 

template<typename T > T libmesh_real (std::complex< T >a) [inline]

Definition at line 157 of file libmesh_common.h.

{ return std::real(a); }
 

Variable Documentation

 

DIE A HORRIBLE DEATH HERE typedef float ErrorVectorReal

Definition at line 178 of file libmesh_common.h.

Referenced by ErrorVector::minimum().  

Author

Generated automatically by Doxygen for libMesh from the source code.


 

Index

NAME
SYNOPSIS
Namespaces
Typedefs
Functions
Variables
Typedef Documentation
typedef std::complex<double> Complex
typedef std::complex<double> COMPLEX
typedef Complex Number
typedef float Real
Function Documentation
template<typename Tnew , typename Told > Tnew libmesh_cast_ptr (Told *oldvar) [inline]
template<typename Tnew , typename Told > Tnew libmesh_cast_ref (Told &oldvar) [inline]
template<typename T > T libmesh_norm (Ta) [inline]
template<typename T > T libmesh_norm (std::complex< T >a) [inline]
template<typename T > T libmesh_real (Ta) [inline]
template<typename T > T libmesh_real (std::complex< T >a) [inline]
Variable Documentation
DIE A HORRIBLE DEATH HERE typedef float ErrorVectorReal
Author

This document was created by man2html, using the manual pages.
Time: 21:49:19 GMT, April 16, 2011