Skip to content

Commit d2f26bb

Browse files
committed
PetscOperators: Specify dV is Field3D
Fix for when metrics are 2D.
1 parent 3992b8c commit d2f26bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mesh/petsc_operators.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ PetscOperators::Parallel PetscOperators::getParallel() const {
331331
// Div_par from Grad_par and cell volumes.
332332

333333
// Cell volume
334-
auto dV = coords->J * coords->dx * coords->dy * coords->dz;
334+
Field3D dV = coords->J * coords->dx * coords->dy * coords->dz;
335335
dV.splitParallelSlices();
336336
dV.yup() = 0.0;
337337
dV.ydown() = 0.0;

0 commit comments

Comments
 (0)