18 March 2020 11:03:14 AM HYPERCUBE_GRID_TEST: C++ version Test the HYPERCUBE_GRID library. TEST01 Create a grid using HYPERCUBE_GRID. Spatial dimension M = 2 Number of grid points N = 20 I NS C A B 0 4 2 0 1 1 5 4 0 10 Grid points: Row: 0 1 Col 0: 0.2 2 1: 0.4 2 2: 0.6 2 3: 0.8 2 4: 0.2 4 5: 0.4 4 6: 0.6 4 7: 0.8 4 8: 0.2 6 9: 0.4 6 10: 0.6 6 11: 0.8 6 12: 0.2 8 13: 0.4 8 14: 0.6 8 15: 0.8 8 16: 0.2 10 17: 0.4 10 18: 0.6 10 19: 0.8 10 TEST02 Create a grid using HYPERCUBE_GRID. Use a two point grid in each dimension. Use a different centering option in each dimension. Spatial dimension M = 5 Number of grid points N = 32 I NS C A B 0 2 1 0 1 1 2 2 0 1 2 2 3 0 1 3 2 4 0 1 4 2 5 0 1 Grid points: Row: 0 1 2 3 4 Col 0: 0 0.333333 -1 0.5 0.25 1: 1 0.333333 -1 0.5 0.25 2: 0 0.666667 -1 0.5 0.25 3: 1 0.666667 -1 0.5 0.25 4: 0 0.333333 -0.5 0.5 0.25 5: 1 0.333333 -0.5 0.5 0.25 6: 0 0.666667 -0.5 0.5 0.25 7: 1 0.666667 -0.5 0.5 0.25 8: 0 0.333333 -1 1 0.25 9: 1 0.333333 -1 1 0.25 10: 0 0.666667 -1 1 0.25 11: 1 0.666667 -1 1 0.25 12: 0 0.333333 -0.5 1 0.25 13: 1 0.333333 -0.5 1 0.25 14: 0 0.666667 -0.5 1 0.25 15: 1 0.666667 -0.5 1 0.25 16: 0 0.333333 -1 0.5 0.75 17: 1 0.333333 -1 0.5 0.75 18: 0 0.666667 -1 0.5 0.75 19: 1 0.666667 -1 0.5 0.75 20: 0 0.333333 -0.5 0.5 0.75 21: 1 0.333333 -0.5 0.5 0.75 22: 0 0.666667 -0.5 0.5 0.75 23: 1 0.666667 -0.5 0.5 0.75 24: 0 0.333333 -1 1 0.75 25: 1 0.333333 -1 1 0.75 26: 0 0.666667 -1 1 0.75 27: 1 0.666667 -1 1 0.75 28: 0 0.333333 -0.5 1 0.75 29: 1 0.333333 -0.5 1 0.75 30: 0 0.666667 -0.5 1 0.75 31: 1 0.666667 -0.5 1 0.75 TEST03 Create a grid using HYPERCUBE_GRID. Use the same parameters in every dimension. Spatial dimension M = 3 Number of grid points N = 27 I NS C A B 0 3 1 -1 1 1 3 1 -1 1 2 3 1 -1 1 Grid points: Row: 0 1 2 Col 0: -1 -1 -1 1: 0 -1 -1 2: 1 -1 -1 3: -1 0 -1 4: 0 0 -1 5: 1 0 -1 6: -1 1 -1 7: 0 1 -1 8: 1 1 -1 9: -1 -1 0 10: 0 -1 0 11: 1 -1 0 12: -1 0 0 13: 0 0 0 14: 1 0 0 15: -1 1 0 16: 0 1 0 17: 1 1 0 18: -1 -1 1 19: 0 -1 1 20: 1 -1 1 21: -1 0 1 22: 0 0 1 23: 1 0 1 24: -1 1 1 25: 0 1 1 26: 1 1 1 HYPERCUBE_GRID_TEST: Normal end of execution. 18 March 2020 11:03:14 AM