You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
! To reduce computational cost, we leverage the fact that all polynomial coefficients in a stencil sum to1
464
+
! and compute the polynomial coefficients (poly_coef_cb) for the cell value differences (dvd) instead of the values themselves.
465
+
! The computation of coefficients is further simplified by using grid spacing (y or w) rather than the grid locations (s_cb) directly.
466
+
! Ideal weights (d_cb) are obtained by comparing the grid location coefficients of the polynomial coefficients.
467
+
! The smoothness indicators (beta_coef) are calculated through numerical differentiation and integration of each cross term of the polynomial coefficients,
468
+
! using the cell value differences (dvd) instead of the values themselves.
469
+
! While the polynomial coefficients sum to1, the derivative of 1 is 0, which means it does not create additional cross terms in the smoothness indicators.
470
+
460
471
w = s_cb(i -3:i +4) - s_cb(i) ! Offset using s_cb(i) to reduce floating point error
0 commit comments