16 October 2011 10:54:43.165 AM SGMGA_WEIGHT_PRB: FORTRAN90 version Test the SGMGA_WEIGHT function. SGMGA_WEIGHT_TESTS Call SGMGA_WEIGHT_TEST with various arguments. All tests will use a point equality tolerance of 0.149012E-07 SGMGA_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. IMPORTANCE: 1.00000 1.00000 LEVEL_WEIGHT: 1.00000 1.00000 Dimension Rule Growth Parameters 1 1 6 2 1 6 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 SGMGA_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. IMPORTANCE: 1.00000 2.00000 LEVEL_WEIGHT: 1.00000 0.500000 Dimension Rule Growth Parameters 1 1 6 2 1 6 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 SGMGA_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. IMPORTANCE: 1.00000 1.00000 1.00000 LEVEL_WEIGHT: 1.00000 1.00000 1.00000 Dimension Rule Growth Parameters 1 1 6 2 1 6 3 1 6 As a simple test, sum these weights. They should sum to exactly 8.00000 Level Weight sum Expected sum Difference 0 8.00000 8.00000 0.00000 1 8.00000 8.00000 0.00000 2 8.00000 8.00000 0.444089E-14 SGMGA_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. IMPORTANCE: 1.00000 2.00000 3.00000 LEVEL_WEIGHT: 1.00000 0.500000 0.333333 Dimension Rule Growth Parameters 1 1 6 2 1 6 3 1 6 As a simple test, sum these weights. They should sum to exactly 8.00000 Level Weight sum Expected sum Difference 0 8.00000 8.00000 0.00000 1 8.00000 8.00000 0.00000 2 8.00000 8.00000 0.00000 SGMGA_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. IMPORTANCE: 1.00000 2.00000 LEVEL_WEIGHT: 1.00000 0.500000 Dimension Rule Growth Parameters 1 1 6 2 3 6 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 SGMGA_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. IMPORTANCE: 1.00000 2.00000 LEVEL_WEIGHT: 1.00000 0.500000 Dimension Rule Growth Parameters 1 1 6 2 4 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.888178E-15 1 4.00000 4.00000 0.888178E-15 2 4.00000 4.00000 0.266454E-14 SGMGA_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. IMPORTANCE: 1.00000 2.00000 LEVEL_WEIGHT: 1.00000 0.500000 Dimension Rule Growth Parameters 1 1 6 2 7 3 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 SGMGA_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. IMPORTANCE: 1.00000 2.00000 LEVEL_WEIGHT: 1.00000 0.500000 Dimension Rule Growth Parameters 1 1 6 2 8 3 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.888178E-15 2 2.65868 2.65868 0.444089E-15 SGMGA_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. IMPORTANCE: 1.00000 2.00000 LEVEL_WEIGHT: 1.00000 0.500000 Dimension Rule Growth Parameters 1 2 6 2 9 3 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.444089E-15 1 3.14159 3.14159 0.00000 2 3.14159 3.14159 0.355271E-14 SGMGA_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. IMPORTANCE: 1.00000 2.00000 LEVEL_WEIGHT: 1.00000 0.500000 Dimension Rule Growth Parameters 1 6 3 2.00000 2 10 4 As a simple test, sum these weights. They should sum to exactly 1.57080 Level Weight sum Expected sum Difference 0 1.57080 1.57080 0.00000 1 1.57080 1.57080 0.222045E-15 2 1.57080 1.57080 0.444089E-15 SGMGA_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. IMPORTANCE: 1.00000 2.00000 LEVEL_WEIGHT: 1.00000 0.500000 Dimension Rule Growth Parameters 1 1 6 2 1 6 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.00000 5 4.00000 4.00000 0.888178E-15 SGMGA_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. IMPORTANCE: 1.00000 2.00000 3.00000 LEVEL_WEIGHT: 1.00000 0.500000 0.333333 Dimension Rule Growth Parameters 1 1 6 2 4 3 3 5 3 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.266454E-14 1 7.08982 7.08982 0.177636E-14 2 7.08982 7.08982 0.710543E-14 SGMGA_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. IMPORTANCE: 1.00000 0.00000 1.00000 LEVEL_WEIGHT: 1.00000 0.00000 1.00000 Dimension Rule Growth Parameters 1 1 6 2 1 6 3 1 6 As a simple test, sum these weights. They should sum to exactly 8.00000 Level Weight sum Expected sum Difference 0 8.00000 8.00000 0.00000 1 8.00000 8.00000 0.00000 2 8.00000 8.00000 0.00000 3 8.00000 8.00000 0.177636E-14 SGMGA_WEIGHT_PRB: Normal end of execution. 16 October 2011 10:54:43.167 AM