Peano 4
Loading...
Searching...
No Matches
kernels Namespace Reference

This file is part of the ExaHyPE project. More...

Namespaces

namespace  aderdg
 
namespace  legendre
 
namespace  lobatto
 
namespace  riemannsolvers
 

Data Structures

struct  array
 A tiny class for storing a continous n-dimensional array together with its sizes. More...
 
struct  dindex
 Returns conveniently an index with DIMENSIONS entries, each the argument max. More...
 
struct  idx2
 
struct  idx3
 
struct  idx4
 
struct  idx5
 
struct  idx6
 
struct  index
 This is a single successor class for the idx2, idx3, idx4, idx5, idx6 classes. More...
 
struct  shadow
 The same as array, just without local storage but instead shadowing data which is not owned. More...
 

Typedefs

typedef double(* UnivariateFunction) (const double &s)
 Univariate function.
 
typedef array< double > darray
 
typedef shadow< double > dshadow
 

Functions

double ADERDGVolume (const int order, const tarch::la::Vector< Dimensions, double > &sizeOfPatch, const tarch::la::Vector< Dimensions, int > &pos)
 A helper function to determine the volume element (dV=dx*dy*dz) for an integration in the ADER scheme where the Gauss Legendre interpolation points are not even equally distributed.
 
void registerSolvers (exahype::parser::Parser &parser)
 Is implemented within the application folder generated by the toolkit.
 
void finalise ()
 This callback enables the user to deallocate memory.
 
void toString (std::ostream &os)
 This allows dumping information what code was generated by the toolkit.
 
const char * compiledSpecfile ()
 This allows to access the specfile that was seen by the toolkit.
 
std::string readSpecificationFileToJSON (const std::string &filename)
 Allows users to implement a custom specification file parser.
 
double pow1 (const double &a)
 Small integer powers with minimum number of multiplications.
 
double pow2 (const double &a)
 
double pow3 (const double &a)
 
double pow4 (const double &a)
 
double pow5 (const double &a)
 
double pow6 (const double &a)
 
double pow7 (const double &a)
 
double pow8 (const double &a)
 
double pow9 (const double &a)
 
double pow10 (const double &a)
 
double pow11 (const double &a)
 
double pow12 (const double &a)
 
double pow13 (const double &a)
 
double pow14 (const double &a)
 
double pow15 (const double &a)
 
double pow16 (const double &a)
 

Detailed Description

This file is part of the ExaHyPE project.

Copyright (c) 2016 http://exahype.eu All rights reserved.

The project has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreement No 671698. For copyrights and licensing, please consult the webpage.

Released under the BSD 3 Open Source License. For the full license text, see LICENSE.txt

Typedef Documentation

◆ darray

typedef array<double> kernels::darray

Definition at line 268 of file KernelUtils.h.

◆ dshadow

typedef shadow<double> kernels::dshadow

Definition at line 269 of file KernelUtils.h.

◆ UnivariateFunction

typedef double(* kernels::UnivariateFunction) (const double &s)

Univariate function.

Parameters
sa parameter.
Returns
value of the function at point .

Definition at line 52 of file KernelUtils.h.

Function Documentation

◆ ADERDGVolume()

double kernels::ADERDGVolume ( const int order,
const tarch::la::Vector< Dimensions, double > & sizeOfPatch,
const tarch::la::Vector< Dimensions, int > & pos )

A helper function to determine the volume element (dV=dx*dy*dz) for an integration in the ADER scheme where the Gauss Legendre interpolation points are not even equally distributed.

This function could easily be constexpr if gaussLegendreWeights would be a constexpr.

Definition at line 17 of file sizes.cpph.

References tarch::la::volume().

Here is the call graph for this function:

◆ compiledSpecfile()

const char * kernels::compiledSpecfile ( )

This allows to access the specfile that was seen by the toolkit.

◆ finalise()

void kernels::finalise ( )

This callback enables the user to deallocate memory.

◆ pow1()

double kernels::pow1 ( const double & a)

Small integer powers with minimum number of multiplications.

See also
https://en.wikipedia.org/wiki/Addition-chain_exponentiation

Definition at line 29 of file KernelUtils.h.

◆ pow10()

double kernels::pow10 ( const double & a)

Definition at line 38 of file KernelUtils.h.

◆ pow11()

double kernels::pow11 ( const double & a)

Definition at line 39 of file KernelUtils.h.

◆ pow12()

double kernels::pow12 ( const double & a)

Definition at line 40 of file KernelUtils.h.

◆ pow13()

double kernels::pow13 ( const double & a)

Definition at line 41 of file KernelUtils.h.

◆ pow14()

double kernels::pow14 ( const double & a)

Definition at line 42 of file KernelUtils.h.

◆ pow15()

double kernels::pow15 ( const double & a)

Definition at line 43 of file KernelUtils.h.

◆ pow16()

double kernels::pow16 ( const double & a)

Definition at line 44 of file KernelUtils.h.

◆ pow2()

double kernels::pow2 ( const double & a)

Definition at line 30 of file KernelUtils.h.

Referenced by loh::riemannSolver::localBasis().

Here is the caller graph for this function:

◆ pow3()

double kernels::pow3 ( const double & a)

Definition at line 31 of file KernelUtils.h.

◆ pow4()

double kernels::pow4 ( const double & a)

Definition at line 32 of file KernelUtils.h.

◆ pow5()

double kernels::pow5 ( const double & a)

Definition at line 33 of file KernelUtils.h.

◆ pow6()

double kernels::pow6 ( const double & a)

Definition at line 34 of file KernelUtils.h.

◆ pow7()

double kernels::pow7 ( const double & a)

Definition at line 35 of file KernelUtils.h.

◆ pow8()

double kernels::pow8 ( const double & a)

Definition at line 36 of file KernelUtils.h.

◆ pow9()

double kernels::pow9 ( const double & a)

Definition at line 37 of file KernelUtils.h.

◆ readSpecificationFileToJSON()

std::string kernels::readSpecificationFileToJSON ( const std::string & filename)

Allows users to implement a custom specification file parser.

The output string must hold a valid JSON file.

◆ registerSolvers()

void kernels::registerSolvers ( exahype::parser::Parser & parser)

Is implemented within the application folder generated by the toolkit.

◆ toString()

void kernels::toString ( std::ostream & os)

This allows dumping information what code was generated by the toolkit.