mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
Matrix: Added (i, j) addressing to allow support for addressing blocks of the matrix
This change brings OpenFOAM into line with the standard matrix addressing in other C++ libraries for better interoperability.
This commit is contained in:
@ -312,11 +312,11 @@ triSurfacePointScalarField calcCurvature
|
||||
scalar x = edgeVectors[i] & faceCoordSys[0];
|
||||
scalar y = edgeVectors[i] & faceCoordSys[1];
|
||||
|
||||
T[0][0] += sqr(x);
|
||||
T[1][0] += x*y;
|
||||
T[1][1] += sqr(x) + sqr(y);
|
||||
T[2][1] += x*y;
|
||||
T[2][2] += sqr(y);
|
||||
T(0, 0) += sqr(x);
|
||||
T(1, 0) += x*y;
|
||||
T(1, 1) += sqr(x) + sqr(y);
|
||||
T(2, 1) += x*y;
|
||||
T(2, 2) += sqr(y);
|
||||
|
||||
scalar dndx = normalDifferences[i] & faceCoordSys[0];
|
||||
scalar dndy = normalDifferences[i] & faceCoordSys[1];
|
||||
|
||||
Reference in New Issue
Block a user