-
Notifications
You must be signed in to change notification settings - Fork 182
Adds the ability to output projected band structure #135
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
Conversation
add description for projected band structure
This reverts commit 0a9da9c.
source/src_io/energy_dos.cpp
Outdated
| out <<std::setw(5)<< "z"<<std::setw(2)<<"="<<std::setw(2)<<"Zeta index of orbital"<<std::endl; | ||
| out <<std::setw(5)<< "sym"<<std::setw(2)<<"="<<std::setw(2)<<"Symmetry name of real orbital"<<std::endl; | ||
| out.close();} | ||
| }//out_band |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please format your code, the retraction looks wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've done the test and the program with this part of codes can be compiled and executed successfully
source/src_io/energy_dos.cpp
Outdated
| out <<std::setw(5) << i << std::setw(8) | ||
| << GlobalC::ucell.atoms[t].label <<std::setw(5) | ||
| <<L1<<std::setw(5) <<m1<<std::setw(5)<<N1+1<<std::setw(15)<< Name_Angular[L1][m1] << std::endl; | ||
| <<L1<<std::setw(5) <<m1<<std::setw(5)<<N1+1<<std::setw(15)<< ModuleBase::Name_Angular[L1][m1] << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you move this label to module_base/constants.h?
If these labels only are only used in this file and you want to only define them once, you can move the code from constants.h to head of this file.
Will any other code use this labels in the future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved this label from constant.h to src_pw/energy.h in the new commit
I still manually format the PDOS and projected band structure files in xml format, and do not use the Tinyxml-2 to format, because there are some confusion about using this code