Skip to content

Feature & Refactor: write XC matrix in KS-wfc representation and unify matrix-writing functions#3441

Merged
dyzheng merged 4 commits intodeepmodeling:developfrom
maki49:io_vxc
Jan 8, 2024
Merged

Feature & Refactor: write XC matrix in KS-wfc representation and unify matrix-writing functions#3441
dyzheng merged 4 commits intodeepmodeling:developfrom
maki49:io_vxc

Conversation

@maki49
Copy link
Collaborator

@maki49 maki49 commented Jan 4, 2024

fix #3443

Feature

The XC matrix in KS-wfc representation with the size of (nbands*nbands) will be useful for the subsequent GW calculation.
Set out_mat_xc to 1 in INPUT file to output this in OUT.$suffix/k-$ik-Vxc.

Refactor

Unify the several functions in write_HS.h into one. Now we can use ModuleIO::save_mat to write a 2d-block parallelized square matrix:

  • with any dimension
  • whether double or complex
  • whether triangle or not

Copy link
Collaborator

@dyzheng dyzheng left a comment

Choose a reason for hiding this comment

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

It is a good feature.

@dyzheng dyzheng merged commit e711372 into deepmodeling:develop Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

output XC matrix

2 participants