Skip to content

Commit

Permalink
OldCiarletElement
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Aug 22, 2023
1 parent cf1a80c commit 68125a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions grid/src/grid.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! A serial implementation of a grid
use bempp_element::cell;
use bempp_element::element::{create_element, CiarletElement};
use bempp_element::element::{create_element, OldCiarletElement};
use bempp_tools::arrays::{AdjacencyList, Array2D, Array4D};
use bempp_traits::arrays::{AdjacencyListAccess, Array2DAccess, Array4DAccess};
use bempp_traits::cell::{ReferenceCell, ReferenceCellType};
Expand All @@ -11,14 +11,14 @@ use std::cell::{Ref, RefCell};

/// Geometry of a serial grid
pub struct SerialGeometry {
coordinate_elements: Vec<CiarletElement>,
coordinate_elements: Vec<OldCiarletElement>,
coordinates: Array2D<f64>,
cells: AdjacencyList<usize>,
element_changes: Vec<usize>,
index_map: Vec<usize>,
}

fn element_from_npts(cell_type: ReferenceCellType, npts: usize) -> CiarletElement {
fn element_from_npts(cell_type: ReferenceCellType, npts: usize) -> OldCiarletElement {
create_element(
ElementFamily::Lagrange,
cell_type,
Expand Down Expand Up @@ -69,7 +69,7 @@ impl SerialGeometry {
}

/// TODO: document
pub fn coordinate_elements(&self) -> &Vec<CiarletElement> {
pub fn coordinate_elements(&self) -> &Vec<OldCiarletElement> {
&self.coordinate_elements
}

Expand All @@ -79,7 +79,7 @@ impl SerialGeometry {
}

/// Get the coordinate element associated with the given cell
pub fn element(&self, cell: usize) -> &CiarletElement {
pub fn element(&self, cell: usize) -> &OldCiarletElement {
for i in 0..self.element_changes.len() - 1 {
if cell < self.element_changes[i + 1] {
return &self.coordinate_elements[i - 1];
Expand Down

0 comments on commit 68125a6

Please sign in to comment.