3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Functions
test_spline.cc File Reference

This is a program to test the polynomial spline interpolation. More...

#include <config.h>
#include <dumux/common/spline.hh>
#include <dune/common/fvector.hh>

Description

This is a program to test the polynomial spline interpolation.

It just prints some function to stdout. You can look at the result using the following commands:

--------— snip --------— ./test_spline > spline.csv gnuplot

gnuplot> plot "spline.csv" using 1:2 w l ti "Curve", \ "spline.csv" using 1:3 w l ti "Derivative", \ "spline.csv" using 1:4 w p ti "Monotonical" --------— snap --------—

Functions

template<class Spline >
void testCommon (const Spline &sp, const double *x, const double *y)
 
template<class Spline >
void testFull (const Spline &sp, const double *x, const double *y, double m0, double m1)
 
template<class Spline >
void testNatural (const Spline &sp, const double *x, const double *y)
 
void testAll ()
 
void plot ()
 
int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

◆ plot()

void plot ( )

◆ testAll()

void testAll ( )

◆ testCommon()

template<class Spline >
void testCommon ( const Spline &  sp,
const double *  x,
const double *  y 
)

◆ testFull()

template<class Spline >
void testFull ( const Spline &  sp,
const double *  x,
const double *  y,
double  m0,
double  m1 
)

◆ testNatural()

template<class Spline >
void testNatural ( const Spline &  sp,
const double *  x,
const double *  y 
)
Include dependency graph for test_spline.cc: