Skip to content

Conversation

@1041176461
Copy link
Contributor

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

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
Copy link
Collaborator

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.

Copy link
Contributor Author

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

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;
Copy link
Collaborator

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?

Copy link
Contributor Author

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

@dyzheng dyzheng merged commit 6a33b67 into abacusmodeling:develop May 13, 2022
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.

2 participants