forked from abacusmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test: add unit test of DFTUNew and refactor some code (#3814)
* Fix: not use static member in DFTUNew * Test: add unit test of DFTUNew * Test: add nspin=2 test and delete GlobalV::CURRENT_SPIN in DFTUNew * add annotation for dftu.h * Refactor: new dftu code with suggestions by developers --------- Co-authored-by: dyzheng <[email protected]>
- Loading branch information
Showing
14 changed files
with
546 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
source/module_hamilt_lcao/hamilt_lcaodft/operator_lcao/dftu.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace hamilt | ||
{ | ||
|
||
#ifndef __DFTUTEMPLATE | ||
#define __DFTUTEMPLATE | ||
|
||
/// The DFTU class template inherits from class T | ||
/// it is used to calculate the non-local pseudopotential of wavefunction basis | ||
/// Template parameters: | ||
/// - T: base class, it would be OperatorLCAO<TK, TR> or OperatorPW<TK> | ||
template <class T> | ||
class DFTU : public T | ||
{ | ||
}; | ||
|
||
#endif | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.