Skip to content

Commit

Permalink
Use fem::Q1Element3 instead of fem::Element3
Browse files Browse the repository at this point in the history
... because we need to use Q1Element3::{x,y,z}().
  • Loading branch information
ckhroulev committed Oct 14, 2020
1 parent dbd90ee commit 19f1d14
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/stressbalance/blatter/Blatter.hh
Expand Up @@ -115,7 +115,7 @@ protected:

void jacobian_dirichlet(const DMDALocalInfo &info, Parameters **P, Mat J);

virtual void jacobian_f(const fem::Element3 &element,
virtual void jacobian_f(const fem::Q1Element3 &element,
const Vector2 *u_nodal,
const double *B_nodal,
double K[2 * fem::q13d::n_chi][2 * fem::q13d::n_chi]);
Expand All @@ -133,23 +133,23 @@ protected:
const Vector2 ***x,
Vector2 ***R);

virtual void residual_f(const fem::Element3 &element,
virtual void residual_f(const fem::Q1Element3 &element,
const Vector2 *u_nodal,
const double *B_nodal,
Vector2 *residual);

virtual void residual_source_term(const fem::Element3 &element,
virtual void residual_source_term(const fem::Q1Element3 &element,
const double *surface,
Vector2 *residual);

virtual void residual_basal(const fem::Element3 &element,
virtual void residual_basal(const fem::Q1Element3 &element,
const fem::Q1Element3Face &face,
const double *tauc_nodal,
const double *f_nodal,
const Vector2 *u_nodal,
Vector2 *residual);

virtual void residual_lateral(const fem::Element3 &element,
virtual void residual_lateral(const fem::Q1Element3 &element,
const fem::Q1Element3Face &face,
const double *z_nodal,
const double *sl_nodal,
Expand Down
2 changes: 1 addition & 1 deletion src/stressbalance/blatter/jacobian.cc
Expand Up @@ -31,7 +31,7 @@ namespace stressbalance {
/*!
* Computes the Jacobian contribution of the "main" part of the Blatter system.
*/
void Blatter::jacobian_f(const fem::Element3 &element,
void Blatter::jacobian_f(const fem::Q1Element3 &element,
const Vector2 *velocity,
const double *hardness,
double K[16][16]) {
Expand Down
8 changes: 4 additions & 4 deletions src/stressbalance/blatter/residual.cc
Expand Up @@ -33,7 +33,7 @@ static const Vector2 u_exterior = {0.0, 0.0};
/*!
* Computes the residual contribution of the "main" part of the Blatter system.
*/
void Blatter::residual_f(const fem::Element3 &element,
void Blatter::residual_f(const fem::Q1Element3 &element,
const Vector2 *u_nodal,
const double *B_nodal,
Vector2 *residual) {
Expand Down Expand Up @@ -88,7 +88,7 @@ void Blatter::residual_f(const fem::Element3 &element,
*
* This term contains the driving stress.
*/
void Blatter::residual_source_term(const fem::Element3 &element,
void Blatter::residual_source_term(const fem::Q1Element3 &element,
const double *surface,
Vector2 *residual) {
double
Expand Down Expand Up @@ -117,7 +117,7 @@ void Blatter::residual_source_term(const fem::Element3 &element,
*
* This takes care of basal sliding.
*/
void Blatter::residual_basal(const fem::Element3 &element,
void Blatter::residual_basal(const fem::Q1Element3 &element,
const fem::Q1Element3Face &face,
const double *tauc_nodal,
const double *f_nodal,
Expand Down Expand Up @@ -155,7 +155,7 @@ void Blatter::residual_basal(const fem::Element3 &element,
*
* This takes care of "calving front" stress boundary conditions.
*/
void Blatter::residual_lateral(const fem::Element3 &element,
void Blatter::residual_lateral(const fem::Q1Element3 &element,
const fem::Q1Element3Face &face,
const double *z_nodal,
const double *sl_nodal,
Expand Down

0 comments on commit 19f1d14

Please sign in to comment.