Skip to content

Commit

Permalink
more vec!s
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Oct 24, 2023
1 parent b434e5b commit 8f98c0d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions element/src/element/lagrange.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ mod test {
let e = create(ReferenceCellType::Interval, 0, Continuity::Discontinuous);
assert_eq!(e.value_size(), 1);
let mut data = Array4D::<f64>::new(e.tabulate_array_shape(0, 4));
let points = to_matrix(&vec![0.0, 0.2, 0.4, 1.0], (4, 1));
let points = to_matrix(&[0.0, 0.2, 0.4, 1.0], (4, 1));
e.tabulate(&points, 0, &mut data);

for pt in 0..4 {
Expand All @@ -197,7 +197,7 @@ mod test {
let e = create(ReferenceCellType::Interval, 1, Continuity::Continuous);
assert_eq!(e.value_size(), 1);
let mut data = Array4D::<f64>::new(e.tabulate_array_shape(0, 4));
let points = to_matrix(&vec![0.0, 0.2, 0.4, 1.0], (4, 1));
let points = to_matrix(&[0.0, 0.2, 0.4, 1.0], (4, 1));
e.tabulate(&points, 0, &mut data);

for pt in 0..4 {
Expand All @@ -216,7 +216,7 @@ mod test {
assert_eq!(e.value_size(), 1);
let mut data = Array4D::<f64>::new(e.tabulate_array_shape(0, 6));
let points = to_matrix(
&vec![0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0, 0.0, 0.5, 0.5, 0.5],
&[0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0, 0.0, 0.5, 0.5, 0.5],
(6, 2),
);
e.tabulate(&points, 0, &mut data);
Expand All @@ -233,7 +233,7 @@ mod test {
assert_eq!(e.value_size(), 1);
let mut data = Array4D::<f64>::new(e.tabulate_array_shape(0, 6));
let points = to_matrix(
&vec![0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0, 0.0, 0.5, 0.5, 0.5],
&[0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0, 0.0, 0.5, 0.5, 0.5],
(6, 2),
);
e.tabulate(&points, 0, &mut data);
Expand Down Expand Up @@ -314,7 +314,7 @@ mod test {
assert_eq!(e.value_size(), 1);
let mut data = Array4D::<f64>::new(e.tabulate_array_shape(0, 6));
let points = to_matrix(
&vec![0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.25, 0.5, 0.3, 0.2],
&[0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.25, 0.5, 0.3, 0.2],
(6, 2),
);
e.tabulate(&points, 0, &mut data);
Expand All @@ -331,7 +331,7 @@ mod test {
assert_eq!(e.value_size(), 1);
let mut data = Array4D::<f64>::new(e.tabulate_array_shape(0, 6));
let points = to_matrix(
&vec![0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.25, 0.5, 0.3, 0.2],
&[0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.25, 0.5, 0.3, 0.2],
(6, 2),
);
e.tabulate(&points, 0, &mut data);
Expand Down Expand Up @@ -363,7 +363,7 @@ mod test {
assert_eq!(e.value_size(), 1);
let mut data = Array4D::<f64>::new(e.tabulate_array_shape(0, 6));
let points = to_matrix(
&vec![0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.25, 0.5, 0.3, 0.2],
&[0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.25, 0.5, 0.3, 0.2],
(6, 2),
);
e.tabulate(&points, 0, &mut data);
Expand Down
2 changes: 1 addition & 1 deletion element/src/element/raviart_thomas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ mod test {
assert_eq!(e.value_size(), 2);
let mut data = Array4D::<f64>::new(e.tabulate_array_shape(0, 6));
let points = to_matrix(
&vec![0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0, 0.0, 0.5, 0.5, 0.5],
&[0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0, 0.0, 0.5, 0.5, 0.5],
(6, 2),
);
e.tabulate(&points, 0, &mut data);
Expand Down

0 comments on commit 8f98c0d

Please sign in to comment.