Cytnx
Cytnx copied to clipboard
Turn off Lanczos warning
I suggest providing an argument in cytnx::linalg::Lanczos to turn off the not-converge warning. Sometimes we don't need an accurate solution in the early of the simulation, and printing the warning can be time-consuming. The warning is as follows.
Cytnx warning occur at void cytnx::linalg::_Lanczos_Gnd_general_Ut(std::vectorcytnx::UniTensor&, cytnx::LinOp*, const cytnx::UniTensor&, const bool&, const double&, const unsigned int&, const bool&)
warning: [WARNING] iteration not converge after Maxiter!.
:: Note :: ignore if this is intended
and also this one
Cytnx warning occur at std::vectorcytnx::UniTensor cytnx::linalg::Lanczos(cytnx::LinOp*, const cytnx::UniTensor&, std::string, const double&, const unsigned int&, const cytnx_uint64&, const bool&, const bool&, const cytnx_uint32&, const bool&)
warning: [WARNING][Lanczos] max_krydim > 0 while is irrelevent when using 'Gnd' method.
The first warning can be resolved with large CvgCrit parameter. The second warning can be resolved with parameter max_krydim=0