change restriction on h2 grid interpolation
This commit is contained in:
@@ -51,7 +51,7 @@ impl Interpolation9h2 {
|
||||
|
||||
impl InterpolationOperator for Interpolation9h2 {
|
||||
fn fine2coarse(&self, fine: ArrayView1<Float>, coarse: ArrayViewMut1<Float>) {
|
||||
assert_eq!(fine.len(), 2 * coarse.len() - 1);
|
||||
assert_eq!(fine.len(), 2 * (coarse.len() - 1));
|
||||
use ndarray::prelude::*;
|
||||
use std::iter::FromIterator;
|
||||
let block = Array::from_iter(Self::F2C_BLOCK.iter().flatten().copied())
|
||||
@@ -63,7 +63,7 @@ impl InterpolationOperator for Interpolation9h2 {
|
||||
super::interpolate(fine, coarse, block.view(), diag.view(), (4, 2))
|
||||
}
|
||||
fn coarse2fine(&self, coarse: ArrayView1<Float>, fine: ArrayViewMut1<Float>) {
|
||||
assert_eq!(fine.len(), 2 * coarse.len() - 1);
|
||||
assert_eq!(fine.len(), 2 * (coarse.len() - 1));
|
||||
use ndarray::prelude::*;
|
||||
use std::iter::FromIterator;
|
||||
let block = Array::from_iter(Self::C2F_BLOCK.iter().flatten().copied())
|
||||
|
||||
Reference in New Issue
Block a user