FLENS
FLENS copied to clipboard
Compilation problems with Visual C++ 2017
When compiling the code in Visual Studio 2017 I got an error in file densevector.h. For some reason VS does not understand Engine::defaultIndexBase
.
This can be fixed easily by adding a new constant to the class:
static const IndexType defaultIndexBase = Engine::defaultIndexBase;
The method declaration of resize
can then refer to that constant.
There also is a warning in file ilaenv.tcc that could possibly lead to an error.
Please use the correct casts to avoid any numerical problems.
Possible solution is to change line 376 to:
result = static_cast<int>(static_cast<double>(nx)/1.5);
I'm not sure if that is the correct and intended behavior though.