forked from ClimateGlobalChange/tempestremap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GaussLobattoQuadrature.h
56 lines (47 loc) · 1.47 KB
/
GaussLobattoQuadrature.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
///////////////////////////////////////////////////////////////////////////////
///
/// \file GaussLobattoQuadrature.h
/// \author Paul Ullrich
/// \version July 9, 2012
///
/// <remarks>
/// Copyright 2000-2010 Paul Ullrich
///
/// This file is distributed as part of the Tempest source code package.
/// Permission is granted to use, copy, modify and distribute this
/// source code and its documentation under the terms of the GNU General
/// Public License. This software is provided "as is" without express
/// or implied warranty.
/// </remarks>
#ifndef _GAUSSLOBATTOQUADRATURE_H_
#define _GAUSSLOBATTOQUADRATURE_H_
#include "DataVector.h"
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// Quadrature nodes and weights for Gauss-Lobatto quadrature.
/// </summary>
class GaussLobattoQuadrature {
public:
/// <summary>
/// Return the Gauss-Lobatto quadrature points and their corresponding
/// weights for the given number of points.
/// </summary>
static void GetPoints(
int nCount,
DataVector<double> & dG,
DataVector<double> & dW
);
/// <summary>
/// Retrun the Gauss-Lobatto quadrature points and their corresponding
/// weights for the given number of points and reference element.
/// </summary>
static void GetPoints(
int nCount,
double dXi0,
double dXi1,
DataVector<double> & dG,
DataVector<double> & dW
);
};
///////////////////////////////////////////////////////////////////////////////
#endif