Skip to content
Snippets Groups Projects
Constant_impl.h 1.93 KiB
Newer Older
/***************************************************************************
                          Constant_impl.h  -  description
                             -------------------
    begin                : Aug 2, 2014
    copyright            : (C) 2014 by Tomas Oberhuber
    email                : tomas.oberhuber@fjfi.cvut.cz
 ***************************************************************************/

/* See Copyright Notice in tnl/Copyright */
#pragma once

namespace TNL {
namespace Functions {
namespace Analytic {   
template< int Dimension,
          typename Real >
Constant< Dimension, Real >::
Constant()
template< int Dimension,
          typename Real >
Constant< Dimension, Real >::
setConstant( const RealType& constant )
   this->constant = constant;
template< int Dimension,
          typename Real >
const Real&
Constant< Dimension, Real >::
getConstant() const
template< int FunctionDimension,
Constant< FunctionDimension, Real >::
configSetup( Config::ConfigDescription& config,
             const String& prefix )
{
   config.addEntry     < double >( prefix + "constant", "Value of the constant function.", 0.0 );
template< int Dimension,
          typename Real >
Constant< Dimension, Real >::
setup( const Config::ParameterContainer& parameters,
       const String& prefix )
   this->setConstant( parameters.getParameter< double >( prefix + "constant") );
   return true;
template< int Dimension,
          typename Real >
   template< int XDiffOrder,
             int YDiffOrder,
             int ZDiffOrder >
__cuda_callable__
Constant< Dimension, Real >::
getPartialDerivative( const PointType& v,
                      const Real& time ) const
   if( XDiffOrder || YDiffOrder || ZDiffOrder )
      return 0.0;
} // namespace Analytic
} // namespace Functions
} // namespace TNL