ddemidov / amgcl

C++ library for solving large sparse linear systems with algebraic multigrid method
http://amgcl.readthedocs.org/
MIT License
728 stars 111 forks source link

Assert is used without including <cassert> #185

Closed ilyapopov closed 3 years ago

ilyapopov commented 3 years ago

Several header files in amgcl use assert, but none of those include <cassert>. Which cases compilation fail.

amgcl/detail/inverse.hpp
amgcl/mpi/cpr.hpp
amgcl/mpi/coarsening/pmis.hpp
amgcl/backend/vexcl_static_matrix.hpp
amgcl/preconditioner/cpr.hpp
ddemidov commented 3 years ago

Thanks for reporting this! Would you care to provide a PR?

ilyapopov commented 3 years ago

Yes, I can in a few hours.