Skip to content

Commit 8d6e1a9

Browse files
committed
Simplify Div_par
Also for FCI, the coordinate system is locally field aligned
1 parent 8ad5817 commit 8d6e1a9

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/mesh/coordinates.cxx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,15 +1563,7 @@ Field3D Coordinates::Div_par(const Field3DParallel& f, CELL_LOC outloc,
15631563
// Coordinates object
15641564
const auto& Bxy_floc = f.getCoordinates()->Bxy;
15651565

1566-
if (!f.hasParallelSlices()) {
1567-
// No yup/ydown fields. The Grad_par operator will
1568-
// shift to field aligned coordinates
1569-
return Bxy * Grad_par(f / Bxy_floc, outloc, method);
1570-
}
1571-
1572-
// Need to modify yup and ydown fields
1573-
const Field3D Jg = J / sqrt(g_22.asField3DParallel());
1574-
return Jg * Grad_par(f / Jg, outloc, method);
1566+
return Bxy * Grad_par(f / Bxy_floc, outloc, method);
15751567
}
15761568

15771569
/////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)