opm-core compiling failure
opened this issue · comments
Dear all,
When I was trying to compile the opm-core, I had the error below. It seems that the code is not creating some required libraries/files (extractPvtTableIndex.cpp for instance).
[ 47%] Building CXX object CMakeFiles/opmcore.dir/opm/core/utility/extractPvtTableIndex.cpp.o
/home/mk812/Downloads/opm-core/opm/core/utility/extractPvtTableIndex.cpp: In function ‘void Opm::extractPvtTableIndex(std::vector<int>&, Opm::EclipseStateConstPtr, size_t, const int*)’:
/home/mk812/Downloads/opm-core/opm/core/utility/extractPvtTableIndex.cpp:41:52: error: ‘assert’ was not declared in this scope
assert(cartesianCellIdx < pvtnumData.size());
^
make[2]: *** [CMakeFiles/opmcore.dir/opm/core/utility/extractPvtTableIndex.cpp.o] Error 1
make[1]: *** [CMakeFiles/opmcore.dir/all] Error 2
make: *** [all] Error 2
thank you indvance,
Best wishes,
Apply the patch in #979 and it should work.
Thank you very much, it's working fine now.