Nektar++
Loading...
Searching...
No Matches
Classes | Macros | Functions
TestAvgAssmbScatr.hpp File Reference
#include <UnitTests/MultiRegions/TestOp.hpp>
#include <MultiRegions/AvgAssmbScatr/AvgAssmbScatrOp.hpp>
#include <MultiRegions/ContField.h>
#include <LibUtilities/Backends/Backends.hpp>

Go to the source code of this file.

Classes

class  TestAvgAssmbScatr< TData >
 

Macros

#define TESTFLOAT(type, filename)
 
#define TESTDOUBLE(type, filename)
 
#define TEST(type, filename)
 

Functions

template<typename TData >
TData AvgAssmbScatrTestFn (const double cx, const double cy, const double cz, const unsigned int mode, const unsigned int comp)
 Input of the tests at a local coefficient: a function of the centroid of its element, which makes the field discontinuous across every element boundary, plus a function of the mode and the component.
 

Macro Definition Documentation

◆ TEST

#define TEST (   type,
  filename 
)
Value:
TESTFLOAT(type, filename) \
TESTDOUBLE(type, filename)
#define TESTFLOAT(type, filename)

Definition at line 250 of file TestAvgAssmbScatr.hpp.

◆ TESTDOUBLE

#define TESTDOUBLE (   type,
  filename 
)

Definition at line 248 of file TestAvgAssmbScatr.hpp.

◆ TESTFLOAT

#define TESTFLOAT (   type,
  filename 
)

Definition at line 235 of file TestAvgAssmbScatr.hpp.

Function Documentation

◆ AvgAssmbScatrTestFn()

template<typename TData >
TData AvgAssmbScatrTestFn ( const double  cx,
const double  cy,
const double  cz,
const unsigned int  mode,
const unsigned int  comp 
)

Input of the tests at a local coefficient: a function of the centroid of its element, which makes the field discontinuous across every element boundary, plus a function of the mode and the component.

Definition at line 54 of file TestAvgAssmbScatr.hpp.

56{
57 return static_cast<TData>(1.0 + std::sin(1.7 * cx + 0.3) +
58 std::cos(2.3 * cy) + 0.5 * cz +
59 0.25 * std::cos(1.1 * mode) + 0.1 * comp);
60}