Skip to content

deepks : unit test & clean up the code#628

Merged
wenfei-li merged 209 commits into
deepmodeling:deepksfrom
wenfei-li:deepks
Jan 18, 2022
Merged

deepks : unit test & clean up the code#628
wenfei-li merged 209 commits into
deepmodeling:deepksfrom
wenfei-li:deepks

Conversation

@wenfei-li
Copy link
Copy Markdown

No description provided.

Qianruipku and others added 30 commits October 15, 2021 15:58
Add pw_basis_k class for wavefunctions
dyzheng and others added 16 commits January 10, 2022 14:16
Fixed Stress nondiagonal elements errors and changed ralated reference results in tests/integrate
fix : ABACUS uses more FFT grids than QE proposed
Now parameter "nbspline" must be positive and even to use bspline to calculate structure factor.
When it is set to an odd number, we will add it by 1.
fix the issue deepmodeling#589
scope: math_bspline.cpp, pw_basis.cpp
fix : fix a bug of bspline structure factor
Fix: Try to find GoogleTest locally before downloading.
…g of function "inline void operator=(std::complex <double> c)"

range: source/module_base
…compexarray_test.cpp

reange: module_base/complexarray.[h,cpp], module_base/test/
other class but their members
2. add subroutines for printing intermediate results
update STRU for test case 603_NO_deepks_H2O_multik
@caic99 caic99 requested a review from dyzheng January 12, 2022 02:55
@wenfei-li wenfei-li changed the title deepks : unit test & clear up the code deepks : unit test & clean up the code Jan 12, 2022
wenfei-li and others added 5 commits January 12, 2022 15:47
fix error for printing descriptor.dat;
update result.ref for test examples 602_* and 604_*watertrimer
1. modify input variable
2. add checking for unit test
range: module_base/test/complexarray_test.cpp
test: add the unit test of module_base/complexarray.h
fix: misuse of "inline" in function "inline void operator=(std::complex c)"
ofs_x<<std::setprecision(12);
ofs<<std::setprecision(10);
ofs_x<<std::setprecision(10);
ofs_x<<std::setprecision(10);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe ofs_y here? And 'z' below?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

definitely, thanks!

file2>>word2;
if(word1[0]-'0'>=0||word1[0]-'0'<10||word1[0]=='-')
{
if(word1!=word2) same=false;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So, there might be cases when input value is not a number, but string?

Copy link
Copy Markdown
Author

@wenfei-li wenfei-li Jan 18, 2022

Choose a reason for hiding this comment

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

yes, but it won't start with number or minus sign

@wenfei-li wenfei-li merged commit 9d8bf1f into deepmodeling:deepks Jan 18, 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.

8 participants