19 January 2020 08:48:26 AM BLEND_TEST C version Test the BLEND library. BLEND_101_TEST BLEND_101 blends endpoint values into a list. Initial data list 0: 1 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 8: 0 9: 10 Interpolated data list 0: 1 1: 2 2: 3 3: 4 4: 5 5: 6 6: 7 7: 8 8: 9 9: 10 BLEND_102_TEST BLEND_102 blends corner values into a table. Initial data array Col: 0 1 2 3 4 Row 0: 2 0 0 0 6 1: 0 0 0 0 0 2: 0 0 0 0 0 3: 0 0 0 0 0 4: 6 0 0 0 10 Interpolated data array Col: 0 1 2 3 4 Row 0: 2 3 4 5 6 1: 3 4 5 6 7 2: 4 5 6 7 8 3: 5 6 7 8 9 4: 6 7 8 9 10 BLEND_103_TEST BLEND_103 blends corner values into a table. Initial data array K = 1 1 2 3 4 5 1: 3 0 0 0 7 2: 0 0 0 0 0 3: 5 0 0 0 9 K = 2 1 2 3 4 5 1: 0 0 0 0 0 2: 0 0 0 0 0 3: 0 0 0 0 0 K = 3 1 2 3 4 5 1: 0 0 0 0 0 2: 0 0 0 0 0 3: 0 0 0 0 0 K = 4 1 2 3 4 5 1: 6 0 0 0 10 2: 0 0 0 0 0 3: 8 0 0 0 12 Interpolated data array K = 1 1 2 3 4 5 1: 3 4 5 6 7 2: 4 5 6 7 8 3: 5 6 7 8 9 K = 2 1 2 3 4 5 1: 4 5 6 7 8 2: 5 6 7 8 9 3: 6 7 8 9 10 K = 3 1 2 3 4 5 1: 5 6 7 8 9 2: 6 7 8 9 10 3: 7 8 9 10 11 K = 4 1 2 3 4 5 1: 6 7 8 9 10 2: 7 8 9 10 11 3: 8 9 10 11 12 BLEND_112_TEST BLEND_112 blends side values into a table. Initial data array Col: 0 1 2 3 4 Row 0: 2 3 4 5 6 1: 3 0 0 0 7 2: 4 0 0 0 8 3: 5 0 0 0 9 4: 6 7 8 9 10 Interpolated data array Col: 0 1 2 3 4 Row 0: 2 3 4 5 6 1: 3 4 5 6 7 2: 4 5 6 7 8 3: 5 6 7 8 9 4: 6 7 8 9 10 BLEND_113_TEST BLEND_113 blends edge values into a table. Initial data array K = 1 1 2 3 4 5 1: 3 4 5 6 7 2: 4 0 0 0 8 3: 5 6 7 8 9 K = 2 1 2 3 4 5 1: 4 0 0 0 8 2: 0 0 0 0 0 3: 6 0 0 0 10 K = 3 1 2 3 4 5 1: 5 0 0 0 9 2: 0 0 0 0 0 3: 7 0 0 0 11 K = 4 1 2 3 4 5 1: 6 7 8 9 10 2: 7 0 0 0 11 3: 8 9 10 11 12 Interpolated data array K = 1 1 2 3 4 5 1: 3 4 5 6 7 2: 4 5 6 7 8 3: 5 6 7 8 9 K = 2 1 2 3 4 5 1: 4 5 6 7 8 2: 5 6 7 8 9 3: 6 7 8 9 10 K = 3 1 2 3 4 5 1: 5 6 7 8 9 2: 6 7 8 9 10 3: 7 8 9 10 11 K = 4 1 2 3 4 5 1: 6 7 8 9 10 2: 7 8 9 10 11 3: 8 9 10 11 12 BLEND_123_TEST BLEND_123 blends face values into a table. Initial data array K = 1 1 2 3 4 5 1: 3 4 5 6 7 2: 4 5 6 7 8 3: 5 6 7 8 9 K = 2 1 2 3 4 5 1: 4 5 6 7 8 2: 5 0 0 0 9 3: 6 7 8 9 10 K = 3 1 2 3 4 5 1: 5 6 7 8 9 2: 6 0 0 0 10 3: 7 8 9 10 11 K = 4 1 2 3 4 5 1: 6 7 8 9 10 2: 7 8 9 10 11 3: 8 9 10 11 12 Interpolated data array K = 1 1 2 3 4 5 1: 3 4 5 6 7 2: 4 5 6 7 8 3: 5 6 7 8 9 K = 2 1 2 3 4 5 1: 4 5 6 7 8 2: 5 6 7 8 9 3: 6 7 8 9 10 K = 3 1 2 3 4 5 1: 5 6 7 8 9 2: 6 7 8 9 10 3: 7 8 9 10 11 K = 4 1 2 3 4 5 1: 6 7 8 9 10 2: 7 8 9 10 11 3: 8 9 10 11 12 BLEND_I_0D1 BLEND_I_0D1 interpolates data in a vector. X[0] = 100 X(4)= 120 Interpolated values: 0 100 1 105 2 110 3 115 4 120 BLEND_IJ_0D1_TEST BLEND_IJ_0D1 interpolates data in a table, from corner data. The table is 5 rows by 4 columns. Values interpolated by BLEND_IJ_0D1: 0 0 0 0 0 1.66667 3.33333 5 0 3.33333 6.66667 10 0 5 10 15 0 6.66667 13.3333 20 BLEND_IJ_1D1_TEST BLEND_IJ_1D1 interpolates data in a table, from edge data. The table is 5 rows by 4 columns. Values interpolated by BLEND_IJ_1D1: 0 0 0 0 0 -1.06481 -1.01852 1.25 0 -1.2963 -0.37037 5 0 -0.694444 1.94444 11.25 0 0.740741 5.92593 20 BLEND_IJ_W_1D1_TEST BLEND_IJ_W_1D1 uses weighted blending to fill in the integerior of a table. The table is 5 rows by 5 columns. R S X Y 0 0 0 0 0 0.0625 0 0.1875 0 0.25 0 0.75 0 0.5625 0 1.6875 0 1 0 3 0.0625 0 0 0 0.0625 0.0625 0.0183782 0.186597 0.0625 0.25 0.0735129 0.746389 0.0625 0.5625 0.165404 1.67937 0.0625 1 0.294051 2.98555 0.25 0 0 0 0.25 0.0625 0.0717531 0.173227 0.25 0.25 0.287013 0.69291 0.25 0.5625 0.645778 1.55905 0.25 1 1.14805 2.77164 0.5625 0 0 0 0.5625 0.0625 0.144939 0.118949 0.5625 0.25 0.579758 0.475795 0.5625 0.5625 1.30446 1.07054 0.5625 1 2.31903 1.90318 1 0 0 0 1 0.0625 0.1875 0 1 0.25 0.75 0 1 0.5625 1.6875 0 1 1 3 0 BLEND_IJK_0D1_TEST BLEND_IJK_0D1 interpolates data in a 3D table, from corner data. The table is 4 rows by 3 columns by 3 layers. Data given to BLEND_IJK_0D1: Layer K = 0 0 0 18 0 0 0 0 0 0 18 0 36 Layer K = 1 0 0 0 0 0 0 0 0 0 0 0 0 Layer K = 2 18 0 36 0 0 0 0 0 0 36 0 54 Values interpolated by BLEND_IJK_0D1: Layer K = 0 0 9 18 6 15 24 12 21 30 18 27 36 Layer K = 1 9 18 27 15 24 33 21 30 39 27 36 45 Layer K = 2 18 27 36 24 33 42 30 39 48 36 45 54 Exact data: Layer K = 0 0 9 18 2 11 20 8 17 26 18 27 36 Layer K = 1 9 18 27 11 20 29 17 26 35 27 36 45 Layer K = 2 18 27 36 20 29 38 26 35 44 36 45 54 BLEND_IJK_1D1_TEST BLEND_IJK_1D1 interpolates data in a 3D table, from edge data. The table is 4 rows by 3 columns by 3 layers. Data given to BLEND_IJK_1D1: Layer K = 0 0 9 18 2 0 20 8 0 26 18 27 36 Layer K = 1 9 0 27 0 0 0 0 0 0 27 0 45 Layer K = 2 18 27 36 20 0 38 26 0 44 36 45 54 Values interpolated by BLEND_IJK_1D1: Layer K = 0 0 9 18 2 11 20 8 17 26 18 27 36 Layer K = 1 9 18 27 11 20 29 17 26 35 27 36 45 Layer K = 2 18 27 36 20 29 38 26 35 44 36 45 54 Exact data: Layer K = 0 0 9 18 2 11 20 8 17 26 18 27 36 Layer K = 1 9 18 27 11 20 29 17 26 35 27 36 45 Layer K = 2 18 27 36 20 29 38 26 35 44 36 45 54 BLEND_IJK_2D1_TEST BLEND_IJK_2D1 interpolates data in a 3D table, from face data. The table is 4 rows by 3 columns by 3 layers. Data given to BLEND_IJK_2D1: Layer K = 0 0 9 18 2 11 20 8 17 26 18 27 36 Layer K = 1 9 18 27 11 0 29 17 0 35 27 36 45 Layer K = 2 18 27 36 20 29 38 26 35 44 36 45 54 Values interpolated by BLEND_IJK_2D1: Layer K = 0 0 9 18 2 11 20 8 17 26 18 27 36 Layer K = 1 9 18 27 11 20 29 17 26 35 27 36 45 Layer K = 2 18 27 36 20 29 38 26 35 44 36 45 54 Exact data: Layer K = 0 0 9 18 2 11 20 8 17 26 18 27 36 Layer K = 1 9 18 27 11 20 29 17 26 35 27 36 45 Layer K = 2 18 27 36 20 29 38 26 35 44 36 45 54 BLEND_R_0DN_TEST BLEND_R_0DN interpolates endpoint vector data into a list. The list is 11 rows long. Each vector has length 2. Data blended by BLEND_R_0DN: Col: 0 1 2 3 4 Row 0: 0 0.1 0.2 0.3 0.4 1: 0 0.1 0.2 0.3 0.4 Col: 5 6 7 8 9 Row 0: 0.5 0.6 0.7 0.8 0.9 1: 0.5 0.6 0.7 0.8 0.9 Col: 10 Row 0: 1 1: 1 Exact data: Col: 0 1 2 3 4 Row 0: 0 0.1 0.2 0.3 0.4 1: 0 0.01 0.04 0.09 0.16 Col: 5 6 7 8 9 Row 0: 0.5 0.6 0.7 0.8 0.9 1: 0.25 0.36 0.49 0.64 0.81 Col: 10 Row 0: 1 1: 1 BLEND_R_0DN_IDENTITY_TEST Identity test on BLEND_R_0DN. 0 0 1 1 0.5 0.5 BLEND_R_0DN_STRETCH Stretch test on BLEND_R_0DN. 0 1 1 3 0.5 2 BLEND_RS_0DN_TEST BLEND_RS_0DN interpolates data in a table, from corner data. The table is 5 rows by 4 columns. Data blended by BLEND_RS_0DN: 0 0 0 0 0 1.66667 3.33333 5 0 3.33333 6.66667 10 0 5 10 15 0 6.66667 13.3333 20 Exact data: 0 0 0 0 0 0.0462963 0.37037 1.25 0 0.185185 1.48148 5 0 0.416667 3.33333 11.25 0 0.740741 5.92593 20 BLEND_RS_0DN_IDENTITY_TEST Identity test on BLEND_RS_0DN. 0 0 0 0 1 0 1 0 0 1 0 1 1 1 1 1 0.5 0.5 0.5 0.5 BLEND_RS_0DN_STRETCH Stretch test on BLEND_RS_0DN. 0 0 1 2 1 0 4 2 0 1 1 6 1 1 4 6 0.5 0.5 2.5 4 BLEND_RS_1DN_TEST BLEND_RS_1DN interpolates data in a table, from edge data. The table is 5 rows by 4 columns. Data blended by BLEND_RS_1DN: 0 0 0 0 0 -1.06481 -1.01852 1.25 0 -1.2963 -0.37037 5 0 -0.694444 1.94444 11.25 0 0.740741 5.92593 20 Exact data: 0 0 0 0 0 0.0462963 0.37037 1.25 0 0.185185 1.48148 5 0 0.416667 3.33333 11.25 0 0.740741 5.92593 20 BLEND_RS_1DN_IDENTITY_TEST Identity test on BLEND_RS_1DN. 0 0 0 0 1 0 1 0 0 1 0 1 1 1 1 1 0.5 0.5 0.5 0.5 BLEND_RS_1DN_STRETCH Stretch test on BLEND_RS_1DN. 0 0 1 2 1 0 4 2 0 1 1 6 1 1 4 6 0.5 0.5 2.5 4 BLEND_RST_0DN_IDENTITY_TEST Identity test on BLEND_RST_0DN. 0 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 0 1 0 0 1 1 1 1 1 1 1 0.5 0.5 0.5 0.5 0.5 0.5 BLEND_RST_0DN_STRETCH Stretch test on BLEND_RST_0DN. 0 0 0 1 2 3 1 0 0 5 2 3 0 1 0 1 7 3 0 0 1 1 2 9 1 1 1 5 7 9 0.5 0.5 0.5 3 4.5 6 BLEND_RST_1DN_IDENTITY_TEST Identity test on BLEND_RST_1DN. 0 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 0 1 0 0 1 1 1 1 1 1 1 0.5 0.5 0.5 0.5 0.5 0.5 BLEND_RST_1DN_STRETCH Stretch test on BLEND_RST_1DN. 0 0 0 1 2 3 1 0 0 5 2 3 0 1 0 1 7 3 0 0 1 1 2 9 1 1 1 5 7 9 0.5 0.5 0.5 3 4.5 6 BLEND_RST_2DN_IDENTITY_TEST Identity test on BLEND_RST_2DN. 0 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 0 1 0 0 1 1 1 1 1 1 1 0.5 0.5 0.5 0.5 0.5 0.5 BLEND_RST_2DN_STRETCH Stretch test on BLEND_RST_2DN. 0 0 0 1 2 3 1 0 0 5 2 3 0 1 0 1 7 3 0 0 1 1 2 9 1 1 1 5 7 9 0.5 0.5 0.5 3 4.5 6 BLEND_TEST: Normal end of execution. 19 January 2020 08:48:26 AM