Skip to content

Commit

Permalink
Add the 1-point 3D Q1 quadrature (for testing)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckhroulev committed Oct 14, 2020
1 parent ee471bd commit 46b5831
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/util/fem/Quadrature.cc
Expand Up @@ -162,5 +162,10 @@ Q13DQuadrature8::Q13DQuadrature8() {
}
}

Q13DQuadrature1::Q13DQuadrature1() {
m_points = {{0.0, 0.0, 0.0}};
m_weights = {8.0};
}

} // end of namespace fem
} // end of namespace pism
5 changes: 5 additions & 0 deletions src/util/fem/Quadrature.hh
Expand Up @@ -127,6 +127,11 @@ public:
Q13DQuadrature8();
};

class Q13DQuadrature1 : public Quadrature {
public:
Q13DQuadrature1();
};

} // end of namespace fem
} // end of namespace pism

Expand Down

0 comments on commit 46b5831

Please sign in to comment.