Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings in Eigen-Wrapper #554

Open
jzwar opened this issue Oct 21, 2022 · 0 comments
Open

Warnings in Eigen-Wrapper #554

jzwar opened this issue Oct 21, 2022 · 0 comments
Assignees

Comments

@jzwar
Copy link
Contributor

jzwar commented Oct 21, 2022

As discussed with @hverhelst

When building gismo, I got the following warnings, which seem to come from Eigen:
Compiler: gcc 11.2.0 on Ubuntu 22.04
gismo: e5c6f61d
gsStructuralAnalysis: 60536e5
gsElasticity: 64e8f03
gsKLShell : c002c3d

Building in Release, with StructuralAnalysis, KLShell, and Elasticity on, BUILD_EXAMPLES off.

[ 30%] Building CXX object src/CMakeFiles/gsCore.dir/gsCore/gsMultiBasis_.cpp.o
[ 31%] Building CXX object src/CMakeFiles/gsCore.dir/gsCore/gsMultiPatch_.cpp.o
[ 31%] Built target gsElasticity
In file included from /home/zwar/Git/gismo/external/Eigen/LU:38,
                 from /home/zwar/Git/gismo/external/Eigen/Dense:2,
                 from /home/zwar/Git/gismo/src/gsCore/gsLinearAlgebra.h:42,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunctionSet.h:20,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunction.h:16,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunction_.cpp:3:
/home/zwar/Git/gismo/external/Eigen/src/LU/Determinant.h: In function ‘void gismo::computeAuxiliaryData(gismo::gsMapData<T>&, int, int) [with T = double; int domDim = 2; int tarDim = 2]’:
/home/zwar/Git/gismo/external/Eigen/src/LU/Determinant.h:52:25: warning: array subscript 3 is outside array bounds of ‘gismo::gsMatrix<double, 2, 2, 0>::ColMinorMatrixType [1]’ {aka ‘gismo::gsMatrix<double, 2, 1, 0> [1]’} [-Warray-bounds]
   52 |     return m.coeff(0,0) * m.coeff(1,1) - m.coeff(1,0) * m.coeff(0,1);
      |            ~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from /home/zwar/Git/gismo/src/gsCore/gsFunction_.cpp:4:
/home/zwar/Git/gismo/src/gsCore/gsFunction.hpp:412:66: note: while referencing ‘minor’
  412 |         typename gsMatrix<T,domDim,tarDim>::ColMinorMatrixType   minor;
      |                                                                  ^~~~~
In file included from /home/zwar/Git/gismo/external/Eigen/LU:38,
                 from /home/zwar/Git/gismo/external/Eigen/Dense:2,
                 from /home/zwar/Git/gismo/src/gsCore/gsLinearAlgebra.h:42,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunctionSet.h:20,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunction.h:16,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunction_.cpp:3:
/home/zwar/Git/gismo/external/Eigen/src/LU/Determinant.h:52:55: warning: array subscript 2 is outside array bounds of ‘gismo::gsMatrix<double, 2, 2, 0>::ColMinorMatrixType [1]’ {aka ‘gismo::gsMatrix<double, 2, 1, 0> [1]’} [-Warray-bounds]
   52 |     return m.coeff(0,0) * m.coeff(1,1) - m.coeff(1,0) * m.coeff(0,1);
      |                                          ~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from /home/zwar/Git/gismo/src/gsCore/gsFunction_.cpp:4:
/home/zwar/Git/gismo/src/gsCore/gsFunction.hpp:412:66: note: while referencing ‘minor’
  412 |         typename gsMatrix<T,domDim,tarDim>::ColMinorMatrixType   minor;
      |                                                                  ^~~~~
In file included from /home/zwar/Git/gismo/external/Eigen/LU:38,
                 from /home/zwar/Git/gismo/external/Eigen/Dense:2,
                 from /home/zwar/Git/gismo/src/gsCore/gsLinearAlgebra.h:42,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunctionSet.h:20,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunction.h:16,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunction_.cpp:3:
/home/zwar/Git/gismo/external/Eigen/src/LU/Determinant.h: In function ‘void gismo::computeAuxiliaryData(gismo::gsMapData<T>&, int, int) [with T = double; int domDim = 3; int tarDim = 3]’:
/home/zwar/Git/gismo/external/Eigen/src/LU/Determinant.h:23:31: warning: array subscript 8 is outside array bounds of ‘gismo::gsMatrix<double, 3, 3, 0>::ColMinorMatrixType [1]’ {aka ‘gismo::gsMatrix<double, 3, 2, 0> [1]’} [-Warray-bounds]
   23 |          * (matrix.coeff(1,b) * matrix.coeff(2,c) - matrix.coeff(1,c) * matrix.coeff(2,b));
      |             ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from /home/zwar/Git/gismo/src/gsCore/gsFunction_.cpp:4:
/home/zwar/Git/gismo/src/gsCore/gsFunction.hpp:412:66: note: while referencing ‘minor’
  412 |         typename gsMatrix<T,domDim,tarDim>::ColMinorMatrixType   minor;
      |                                                                  ^~~~~
In file included from /home/zwar/Git/gismo/external/Eigen/LU:38,
                 from /home/zwar/Git/gismo/external/Eigen/Dense:2,
                 from /home/zwar/Git/gismo/src/gsCore/gsLinearAlgebra.h:42,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunctionSet.h:20,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunction.h:16,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunction_.cpp:3:
/home/zwar/Git/gismo/external/Eigen/src/LU/Determinant.h:23:71: warning: array subscript 7 is outside array bounds of ‘gismo::gsMatrix<double, 3, 3, 0>::ColMinorMatrixType [1]’ {aka ‘gismo::gsMatrix<double, 3, 2, 0> [1]’} [-Warray-bounds]
   23 |          * (matrix.coeff(1,b) * matrix.coeff(2,c) - matrix.coeff(1,c) * matrix.coeff(2,b));
      |                                                     ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from /home/zwar/Git/gismo/src/gsCore/gsFunction_.cpp:4:
/home/zwar/Git/gismo/src/gsCore/gsFunction.hpp:412:66: note: while referencing ‘minor’
  412 |         typename gsMatrix<T,domDim,tarDim>::ColMinorMatrixType   minor;
      |                                                                  ^~~~~
In file included from /home/zwar/Git/gismo/external/Eigen/LU:38,
                 from /home/zwar/Git/gismo/external/Eigen/Dense:2,
                 from /home/zwar/Git/gismo/src/gsCore/gsLinearAlgebra.h:42,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunctionSet.h:20,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunction.h:16,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunction_.cpp:3:
/home/zwar/Git/gismo/external/Eigen/src/LU/Determinant.h:23:10: warning: array subscript 6 is outside array bounds of ‘gismo::gsMatrix<double, 3, 3, 0>::ColMinorMatrixType [1]’ {aka ‘gismo::gsMatrix<double, 3, 2, 0> [1]’} [-Warray-bounds]
   22 |   return matrix.coeff(0,a)
      |          ~~~~~~~~~~~~~~~~~
   23 |          * (matrix.coeff(1,b) * matrix.coeff(2,c) - matrix.coeff(1,c) * matrix.coeff(2,b));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/zwar/Git/gismo/src/gsCore/gsFunction_.cpp:4:
/home/zwar/Git/gismo/src/gsCore/gsFunction.hpp:412:66: note: while referencing ‘minor’
  412 |         typename gsMatrix<T,domDim,tarDim>::ColMinorMatrixType   minor;
      |                                                                  ^~~~~
In file included from /home/zwar/Git/gismo/external/Eigen/LU:38,
                 from /home/zwar/Git/gismo/external/Eigen/Dense:2,
                 from /home/zwar/Git/gismo/src/gsCore/gsLinearAlgebra.h:42,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunctionSet.h:20,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunction.h:16,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunction_.cpp:3:
/home/zwar/Git/gismo/external/Eigen/src/LU/Determinant.h: In function ‘void gismo::computeAuxiliaryData(gismo::gsMapData<T>&, int, int) [with T = double; int domDim = 4; int tarDim = 4]’:
/home/zwar/Git/gismo/external/Eigen/src/LU/Determinant.h:83:52: warning: array subscript 13 is outside array bounds of ‘gismo::gsMatrix<double, 4, 4, 0>::ColMinorMatrixType [1]’ {aka ‘gismo::gsMatrix<double, 4, 3, 0> [1]’} [-Warray-bounds]
   83 |     return internal::pmadd((Scalar)(-m(0,3)),d3_0, (Scalar)(m(1,3)*d3_1)) +
      |                                                    ^~~~~~~~~~~~~~~~~~~~~
In file included from /home/zwar/Git/gismo/src/gsCore/gsFunction_.cpp:4:
/home/zwar/Git/gismo/src/gsCore/gsFunction.hpp:412:66: note: while referencing ‘minor’
  412 |         typename gsMatrix<T,domDim,tarDim>::ColMinorMatrixType   minor;
      |                                                                  ^~~~~
In file included from /home/zwar/Git/gismo/external/Eigen/LU:38,
                 from /home/zwar/Git/gismo/external/Eigen/Dense:2,
                 from /home/zwar/Git/gismo/src/gsCore/gsLinearAlgebra.h:42,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunctionSet.h:20,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunction.h:16,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunction_.cpp:3:
/home/zwar/Git/gismo/external/Eigen/src/LU/Determinant.h:83:28: warning: array subscript 12 is outside array bounds of ‘gismo::gsMatrix<double, 4, 4, 0>::ColMinorMatrixType [1]’ {aka ‘gismo::gsMatrix<double, 4, 3, 0> [1]’} [-Warray-bounds]
   83 |     return internal::pmadd((Scalar)(-m(0,3)),d3_0, (Scalar)(m(1,3)*d3_1)) +
      |                            ^~~~~~~~~~~~~~~~~
In file included from /home/zwar/Git/gismo/src/gsCore/gsFunction_.cpp:4:
/home/zwar/Git/gismo/src/gsCore/gsFunction.hpp:412:66: note: while referencing ‘minor’
  412 |         typename gsMatrix<T,domDim,tarDim>::ColMinorMatrixType   minor;
      |                                                                  ^~~~~
In file included from /home/zwar/Git/gismo/external/Eigen/LU:38,
                 from /home/zwar/Git/gismo/external/Eigen/Dense:2,
                 from /home/zwar/Git/gismo/src/gsCore/gsLinearAlgebra.h:42,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunctionSet.h:20,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunction.h:16,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunction_.cpp:3:
/home/zwar/Git/gismo/external/Eigen/src/LU/Determinant.h:84:52: warning: array subscript 15 is outside array bounds of ‘gismo::gsMatrix<double, 4, 4, 0>::ColMinorMatrixType [1]’ {aka ‘gismo::gsMatrix<double, 4, 3, 0> [1]’} [-Warray-bounds]
   84 |            internal::pmadd((Scalar)(-m(2,3)),d3_2, (Scalar)(m(3,3)*d3_3));
      |                                                    ^~~~~~~~~~~~~~~~~~~~~
In file included from /home/zwar/Git/gismo/src/gsCore/gsFunction_.cpp:4:
/home/zwar/Git/gismo/src/gsCore/gsFunction.hpp:412:66: note: while referencing ‘minor’
  412 |         typename gsMatrix<T,domDim,tarDim>::ColMinorMatrixType   minor;
      |                                                                  ^~~~~
In file included from /home/zwar/Git/gismo/external/Eigen/LU:38,
                 from /home/zwar/Git/gismo/external/Eigen/Dense:2,
                 from /home/zwar/Git/gismo/src/gsCore/gsLinearAlgebra.h:42,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunctionSet.h:20,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunction.h:16,
                 from /home/zwar/Git/gismo/src/gsCore/gsFunction_.cpp:3:
/home/zwar/Git/gismo/external/Eigen/src/LU/Determinant.h:84:28: warning: array subscript 14 is outside array bounds of ‘gismo::gsMatrix<double, 4, 4, 0>::ColMinorMatrixType [1]’ {aka ‘gismo::gsMatrix<double, 4, 3, 0> [1]’} [-Warray-bounds]
   84 |            internal::pmadd((Scalar)(-m(2,3)),d3_2, (Scalar)(m(3,3)*d3_3));
      |                            ^~~~~~~~~~~~~~~~~
In file included from /home/zwar/Git/gismo/src/gsCore/gsFunction_.cpp:4:
/home/zwar/Git/gismo/src/gsCore/gsFunction.hpp:412:66: note: while referencing ‘minor’
  412 |         typename gsMatrix<T,domDim,tarDim>::ColMinorMatrixType   minor;
      |                                                                  ^~~~~
[ 34%] Built target gsCore
[ 35%] Linking CXX static library lib/libgismo.a
[ 35%] Linking CXX shared library lib/libgismo.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants