31 October 2024 08:32:50 AM SGMGA_PRODUCT_WEIGHT_PRB C++ version Test the SGMGA_PRODUCT_WEIGHT function. SGMGA_PRODUCT_WEIGHT_TESTS Call SGMGA_PRODUCT_WEIGHT_TEST with various arguments. SGMGA_PRODUCT_WEIGHT_TEST: Compute the weights of a mixed factor product grid. As a simple test, sum these weights. They should sum to exactly 4 Spatial dimension DIM_NUM = 2 Dimension Rule Growth Parameters 0 1 3 1 1 5 Weight sum Expected sum Difference 4 4 8.88178e-16 SGMGA_PRODUCT_WEIGHT_TEST: Compute the weights of a mixed factor product grid. As a simple test, sum these weights. They should sum to exactly 3.54491 Spatial dimension DIM_NUM = 2 Dimension Rule Growth Parameters 0 1 3 1 5 7 Weight sum Expected sum Difference 3.54491 3.54491 2.66454e-15 SGMGA_PRODUCT_WEIGHT_TEST: Compute the weights of a mixed factor product grid. As a simple test, sum these weights. They should sum to exactly 2 Spatial dimension DIM_NUM = 2 Dimension Rule Growth Parameters 0 3 3 1 7 3 Weight sum Expected sum Difference 2 2 0 SGMGA_PRODUCT_WEIGHT_TEST: Compute the weights of a mixed factor product grid. As a simple test, sum these weights. They should sum to exactly 2.65868 Spatial dimension DIM_NUM = 2 Dimension Rule Growth Parameters 0 1 5 1 8 5 1.5 Weight sum Expected sum Difference 2.65868 2.65868 4.44089e-16 SGMGA_PRODUCT_WEIGHT_TEST: Compute the weights of a mixed factor product grid. As a simple test, sum these weights. They should sum to exactly 3.14159 Spatial dimension DIM_NUM = 2 Dimension Rule Growth Parameters 0 2 5 1 9 5 0.5 1.5 Weight sum Expected sum Difference 3.14159 3.14159 3.55271e-15 SGMGA_PRODUCT_WEIGHT_TEST: Compute the weights of a mixed factor product grid. As a simple test, sum these weights. They should sum to exactly 1.5708 Spatial dimension DIM_NUM = 2 Dimension Rule Growth Parameters 0 6 7 2 1 10 9 Weight sum Expected sum Difference 1.5708 1.5708 2.22045e-16 SGMGA_PRODUCT_WEIGHT_TEST: Compute the weights of a mixed factor product grid. As a simple test, sum these weights. They should sum to exactly 7.08982 Spatial dimension DIM_NUM = 3 Dimension Rule Growth Parameters 0 1 2 1 4 3 2 5 3 Weight sum Expected sum Difference 7.08982 7.08982 2.66454e-15 SGMGA_PRODUCT_WEIGHT_TEST: Compute the weights of a mixed factor product grid. Spatial dimension DIM_NUM = 3 Dimension Rule Growth Parameters 0 1 2 1 11 3 2 11 3 Weight sum 7.08982 SGMGA_PRODUCT_WEIGHT_PRB Normal end of execution. 31 October 2024 08:32:50 AM