Skip to content

Commit

Permalink
Apply DC to test-laplacexy-short
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwoerer committed May 20, 2020
1 parent f95d006 commit a43cd45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integrated/test-laplacexy-short/test-laplacexy.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ int main(int argc, char** argv) {

Field2D rhs, rhs_check;
if (include_y_derivs) {
rhs = a*Laplace_perp(f) + Grad_perp(a)*Grad_perp(f) + b*f;
rhs = a*DC(Laplace_perp(f)) + DC(Grad_perp(a)*Grad_perp(f)) + b*f;
} else {
rhs = a*Delp2(f, CELL_DEFAULT, false) + coords->g11*DDX(a)*DDX(f) + b*f;
rhs = a*DC(Delp2(f, CELL_DEFAULT, false)) + DC(coords->g11*DDX(a)*DDX(f)) + b*f;
}

laplacexy.setCoefs(a, b);
Expand All @@ -78,9 +78,9 @@ int main(int argc, char** argv) {

mesh->communicate(sol);
if (include_y_derivs) {
rhs_check = a*Laplace_perp(sol) + Grad_perp(a)*Grad_perp(sol) + b*sol;
rhs_check = a*DC(Laplace_perp(sol)) + DC(Grad_perp(a)*Grad_perp(sol)) + b*sol;
} else {
rhs_check = a*Delp2(sol, CELL_DEFAULT, false) + coords->g11*DDX(a)*DDX(sol) + b*sol;
rhs_check = a*DC(Delp2(sol, CELL_DEFAULT, false)) + DC(coords->g11*DDX(a)*DDX(sol)) + b*sol;
}

dump.add(a, "a");
Expand Down

0 comments on commit a43cd45

Please sign in to comment.