04 April 2023 2:47:26.126 PM
SPARSE_GRID_MIXED_WEIGHT_TEST
FORTRAN90 version
SPARSE_GRID_MIXED_WEIGHT_TESTS
Call SPARSE_GRID_MIXED_WEIGHT_TEST with various arguments.
All tests will use a point equality tolerance of 0.222045E-15
SPARSE_GRID_MIXED_WEIGHT_TEST:
Compute the weights of a sparse grid.
Each sparse grid is of spatial dimension DIM_NUM,
and is made up of product grids of levels up to LEVEL_MAX.
Dimension Rule Alpha Beta
1 1
2 1
As a simple test, sum these weights.
They should sum to exactly 4.00000
Level Weight sum Expected sum Difference
0 4.00000 4.00000 0.00000
1 4.00000 4.00000 0.00000
2 4.00000 4.00000 0.00000
SPARSE_GRID_MIXED_WEIGHT_TEST:
Compute the weights of a sparse grid.
Each sparse grid is of spatial dimension DIM_NUM,
and is made up of product grids of levels up to LEVEL_MAX.
Dimension Rule Alpha Beta
1 1
2 3
As a simple test, sum these weights.
They should sum to exactly 4.00000
Level Weight sum Expected sum Difference
0 4.00000 4.00000 0.00000
1 4.00000 4.00000 0.00000
2 4.00000 4.00000 0.444089E-15
SPARSE_GRID_MIXED_WEIGHT_TEST:
Compute the weights of a sparse grid.
Each sparse grid is of spatial dimension DIM_NUM,
and is made up of product grids of levels up to LEVEL_MAX.
Dimension Rule Alpha Beta
1 1
2 4
As a simple test, sum these weights.
They should sum to exactly 4.00000
Level Weight sum Expected sum Difference
0 4.00000 4.00000 0.888178E-15
1 4.00000 4.00000 0.888178E-15
2 4.00000 4.00000 0.355271E-14
SPARSE_GRID_MIXED_WEIGHT_TEST:
Compute the weights of a sparse grid.
Each sparse grid is of spatial dimension DIM_NUM,
and is made up of product grids of levels up to LEVEL_MAX.
Dimension Rule Alpha Beta
1 1
2 7
As a simple test, sum these weights.
They should sum to exactly 2.00000
Level Weight sum Expected sum Difference
0 2.00000 2.00000 0.00000
1 2.00000 2.00000 0.00000
2 2.00000 2.00000 0.444089E-15
SPARSE_GRID_MIXED_WEIGHT_TEST:
Compute the weights of a sparse grid.
Each sparse grid is of spatial dimension DIM_NUM,
and is made up of product grids of levels up to LEVEL_MAX.
Dimension Rule Alpha Beta
1 1
2 8 1.50000
As a simple test, sum these weights.
They should sum to exactly 2.65868
Level Weight sum Expected sum Difference
0 2.65868 2.65868 0.444089E-15
1 2.65868 2.65868 0.444089E-15
2 2.65868 2.65868 0.444089E-15
SPARSE_GRID_MIXED_WEIGHT_TEST:
Compute the weights of a sparse grid.
Each sparse grid is of spatial dimension DIM_NUM,
and is made up of product grids of levels up to LEVEL_MAX.
Dimension Rule Alpha Beta
1 2
2 9 0.500000 1.50000
As a simple test, sum these weights.
They should sum to exactly 3.14159
Level Weight sum Expected sum Difference
0 3.14159 3.14159 0.888178E-15
1 3.14159 3.14159 0.444089E-15
2 3.14159 3.14159 0.488498E-14
SPARSE_GRID_MIXED_WEIGHT_TEST:
Compute the weights of a sparse grid.
Each sparse grid is of spatial dimension DIM_NUM,
and is made up of product grids of levels up to LEVEL_MAX.
Dimension Rule Alpha Beta
1 6 2.00000
2 4
As a simple test, sum these weights.
They should sum to exactly 1.77245
Level Weight sum Expected sum Difference
0 1.77245 1.77245 0.444089E-15
1 1.77245 1.77245 0.888178E-15
2 1.77245 1.77245 0.111022E-14
SPARSE_GRID_MIXED_WEIGHT_TEST:
Compute the weights of a sparse grid.
Each sparse grid is of spatial dimension DIM_NUM,
and is made up of product grids of levels up to LEVEL_MAX.
Dimension Rule Alpha Beta
1 1
2 2
3 5
As a simple test, sum these weights.
They should sum to exactly 7.08982
Level Weight sum Expected sum Difference
0 7.08982 7.08982 0.888178E-15
1 7.08982 7.08982 0.177636E-14
2 7.08982 7.08982 0.177636E-14
SPARSE_GRID_MIXED_WEIGHT_TEST:
Compute the weights of a sparse grid.
Each sparse grid is of spatial dimension DIM_NUM,
and is made up of product grids of levels up to LEVEL_MAX.
Dimension Rule Alpha Beta
1 3
2 3
As a simple test, sum these weights.
They should sum to exactly 4.00000
Level Weight sum Expected sum Difference
0 4.00000 4.00000 0.00000
1 4.00000 4.00000 0.00000
2 4.00000 4.00000 0.00000
3 4.00000 4.00000 0.00000
4 4.00000 4.00000 0.888178E-15
SPARSE_GRID_MIXED_WEIGHT_TEST:
Compute the weights of a sparse grid.
Each sparse grid is of spatial dimension DIM_NUM,
and is made up of product grids of levels up to LEVEL_MAX.
Dimension Rule Alpha Beta
1 13
2 13
As a simple test, sum these weights.
They should sum to exactly 4.00000
Level Weight sum Expected sum Difference
0 4.00000 4.00000 0.00000
1 4.00000 4.00000 0.00000
2 4.00000 4.00000 0.00000
3 4.00000 4.00000 0.888178E-15
4 4.00000 4.00000 0.888178E-15
SPARSE_GRID_MIXED_WEIGHT_TEST:
Compute the weights of a sparse grid.
Each sparse grid is of spatial dimension DIM_NUM,
and is made up of product grids of levels up to LEVEL_MAX.
Dimension Rule Alpha Beta
1 16
2 16
As a simple test, sum these weights.
They should sum to exactly 4.00000
Level Weight sum Expected sum Difference
0 4.00000 4.00000 0.00000
1 4.00000 4.00000 0.00000
2 4.00000 4.00000 0.00000
3 4.00000 4.00000 0.00000
4 4.00000 4.00000 0.888178E-15
SPARSE_GRID_MIXED_WEIGHT_TEST:
Compute the weights of a sparse grid.
Each sparse grid is of spatial dimension DIM_NUM,
and is made up of product grids of levels up to LEVEL_MAX.
Dimension Rule Alpha Beta
1 17
2 17
As a simple test, sum these weights.
They should sum to exactly 4.00000
Level Weight sum Expected sum Difference
0 4.00000 4.00000 0.00000
1 4.00000 4.00000 0.00000
2 4.00000 4.00000 0.888178E-15
3 NaN 4.00000 NaN
4 NaN 4.00000 NaN
SPARSE_GRID_MIXED_WEIGHT_TEST
Normal end of execution.
04 April 2023 2:47:26.127 PM