-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
46 lines (35 loc) · 1.66 KB
/
README
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
qpw - version 0.0
Paul Constantine - ICME
The utility qpw (for quadrature points and weights) computes the
quadrature points and weights for Gauss-Legendre and Clenshaw-Curtis
quadrature rules with multivariate extensions to both tensor product
grids and Smolyak-type sparse grids. Its usage is the following:
[shell]$ qpw ptype gtype dimension level
Parameters:
ptype: gauss, cc
gtype: tensor, sparse
dimension: an integer greater than 0
level: For one-dimensional rules and tensor grids, this is the number
of points in each direction. For sparse grids, this is the standard
level parameter.
Note that gtype is meaningless if dimension=1.
Output:
qpw will write separate text files for the points and the weights. Each
multidimensinal point will occupy one line of the points file, and the
corresponding line in the weights file contains the appropriate weight.
The files will be labeled with the input parameters.
A note on memory management:
qpw will display a warning if it is about to allocate over 200M for the
points and weights. This version is currently not optimized for the
sparse grids, meaning that it allocates the largest tensor grid necessary
to construct the sparse grid. Therefore, you want to stick to relatively
low levels and dimensions.
Questions? Email Paul at [email protected]
For a comprehensive list of quadrature software, go to John Burkhardt's
page at:
http://people.scs.fsu.edu/~burkardt/
For recent literature on quadrature for random PDEs, see
F. Nobile, R. Tempone, and C.G. Webster. A Sparse Grid Stochastic
Collocation Method for Partial Differential Equations with Random Input
Data. SINUM, May 2008.