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

Turn off Lanczos warning #438

Open
chiamin opened this issue May 25, 2024 · 1 comment
Open

Turn off Lanczos warning #438

chiamin opened this issue May 25, 2024 · 1 comment
Labels
Pending check/approval Issue fixed, and need feedback suggestion Suggestion for current codebase

Comments

@chiamin
Copy link
Collaborator

chiamin commented May 25, 2024

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.

@jeffry1829
Copy link
Collaborator

The first warning can be resolved with large CvgCrit parameter.
The second warning can be resolved with parameter max_krydim=0

@j9263178 j9263178 added the suggestion Suggestion for current codebase label Jun 7, 2024
@jeffry1829 jeffry1829 added the Pending check/approval Issue fixed, and need feedback label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pending check/approval Issue fixed, and need feedback suggestion Suggestion for current codebase
Projects
None yet
Development

No branches or pull requests

3 participants