Skip to content

Conversation

@maki49
Copy link
Collaborator

@maki49 maki49 commented Dec 4, 2024

I will use cal_sgn for fxc in LR-TDDFT under a different condition from vxc, leaving the latter unchanged -- but it is blocked by the hard-coded condition.


// sgn for threshold mask
const std::vector<double> sgn = XC_Functional_Libxc::cal_sgn(rho_threshold, grho_threshold, func, nspin, nrxx, rho, sigma);
const std::vector<double> sgn = (nspin == 2 && func.info->family != XC_FAMILY_LDA && func.info->kind == XC_CORRELATION)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the expression is too complicated, try to rewrite this in a simple way

@mohanchen mohanchen added the Refactor Refactor ABACUS codes label Dec 6, 2024
@maki49 maki49 closed this Dec 10, 2024
@maki49 maki49 deleted the refactor-sgn branch January 3, 2025 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor Refactor ABACUS codes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants