Skip to content

Commit 9c1bcff

Browse files
authored
Merge branch 'develop' into fft14
2 parents 4a10974 + f778e4d commit 9c1bcff

File tree

2,234 files changed

+1611
-6844
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,234 files changed

+1611
-6844
lines changed

.github/workflows/cuda.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,22 @@ jobs:
3737
cmake --build build -j4
3838
cmake --install build
3939
40-
- name: Test
40+
- name: Test 11_PW_GPU
4141
run: |
42-
cd tests/integrate
43-
bash Autotest.sh -n 2 -f CASES_GPU.txt
42+
cd tests/11_PW_GPU
43+
bash ../integrate/Autotest.sh -n 2 -f CASES_GPU.txt
44+
45+
- name: Test 12_NAO_Gamma_GPU
46+
run: |
47+
cd tests/12_NAO_Gamma_GPU
48+
bash ../integrate/Autotest.sh -n 2 -f CASES_GPU.txt
49+
50+
- name: Test 13_NAO_multik_GPU
51+
run: |
52+
cd tests/13_NAO_multik_GPU
53+
bash ../integrate/Autotest.sh -n 2 -f CASES_GPU.txt
54+
55+
- name: Test 16_SDFT_GPU
56+
run: |
57+
cd tests/16_SDFT_GPU
58+
bash ../integrate/Autotest.sh -n 2 -f CASES_GPU.txt

.github/workflows/test.yml

Lines changed: 76 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,88 @@ jobs:
4848
run: |
4949
cmake --build build -j8
5050
cmake --install build
51-
- name: Unit Test
51+
52+
- name: Integrated Test
5253
env:
5354
GTEST_COLOR: 'yes'
5455
OMP_NUM_THREADS: '2'
5556
run: |
56-
cmake --build build --target test ARGS="-V --timeout 1700 -E integrated_test"
57-
- name: Integrated Test
57+
cmake --build build --target test ARGS="-V --timeout 1700 -R integrated_test"
58+
59+
- name: 01_PW Test
5860
env:
5961
GTEST_COLOR: 'yes'
6062
OMP_NUM_THREADS: '2'
6163
run: |
62-
cmake --build build --target test ARGS="-V --timeout 1700 -R integrated_test"
64+
cmake --build build --target test ARGS="-V --timeout 1700 -R 01_PW"
65+
66+
- name: 02_NAO_Gamma Test
67+
env:
68+
GTEST_COLOR: 'yes'
69+
OMP_NUM_THREADS: '2'
70+
run: |
71+
cmake --build build --target test ARGS="-V --timeout 1700 -R 02_NAO_Gamma"
72+
73+
- name: 03_NAO_multik Test
74+
env:
75+
GTEST_COLOR: 'yes'
76+
OMP_NUM_THREADS: '2'
77+
run: |
78+
cmake --build build --target test ARGS="-V --timeout 1700 -R 03_NAO_multik"
79+
80+
- name: 04_LJ_DP Test
81+
env:
82+
GTEST_COLOR: 'yes'
83+
OMP_NUM_THREADS: '2'
84+
run: |
85+
cmake --build build --target test ARGS="-V --timeout 1700 -R 04_LJ_DP"
86+
87+
- name: 05_rtTDDFT Test
88+
env:
89+
GTEST_COLOR: 'yes'
90+
OMP_NUM_THREADS: '2'
91+
run: |
92+
cmake --build build --target test ARGS="-V --timeout 1700 -R 05_rtTDDFT"
93+
94+
- name: 06_SDFT Test
95+
env:
96+
GTEST_COLOR: 'yes'
97+
OMP_NUM_THREADS: '2'
98+
run: |
99+
cmake --build build --target test ARGS="-V --timeout 1700 -R 06_SDFT"
100+
101+
- name: 07_OFDFT Test
102+
env:
103+
GTEST_COLOR: 'yes'
104+
OMP_NUM_THREADS: '2'
105+
run: |
106+
cmake --build build --target test ARGS="-V --timeout 1700 -R 07_OFDFT"
107+
108+
- name: 08_EXX Test
109+
env:
110+
GTEST_COLOR: 'yes'
111+
OMP_NUM_THREADS: '2'
112+
run: |
113+
cmake --build build --target test ARGS="-V --timeout 1700 -R 08_EXX"
114+
115+
- name: 09_DeePKS Test
116+
env:
117+
GTEST_COLOR: 'yes'
118+
OMP_NUM_THREADS: '2'
119+
run: |
120+
cmake --build build --target test ARGS="-V --timeout 1700 -R 09_DeePKS"
121+
122+
- name: 10_others Test
123+
env:
124+
GTEST_COLOR: 'yes'
125+
OMP_NUM_THREADS: '2'
126+
run: |
127+
cmake --build build --target test ARGS="-V --timeout 1700 -R 10_others"
128+
129+
- name: Unit Test
130+
env:
131+
GTEST_COLOR: 'yes'
132+
OMP_NUM_THREADS: '2'
133+
run: |
134+
cmake --build build --target test ARGS="-V --timeout 1700 -E 'integrate_test|01_PW|02_NAO_Gamma|03_NAO_multik|04_LJ_DP|05_rtTDDFT|06_SDFT|07_OFDFT|08_EXX|09_DeePKS|10_others|11_PW_GPU|16_SDFT_GPU'"
63135

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ find_program(CCACHE ccache)
190190
if(CCACHE)
191191
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE} ${CMAKE_CXX_COMPILER_LAUNCHER})
192192
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE} ${CMAKE_C_COMPILER_LAUNCHER})
193+
set(CMAKE_CUDA_COMPILER_LAUNCHER ${CCACHE} ${CMAKE_CUDA_COMPILER_LAUNCHER})
193194
endif()
194195

195196
# Choose build type from: Debug Release RelWithDebInfo MinSizeRel Select

docs/advanced/input_files/input-main.md

Lines changed: 139 additions & 141 deletions

source/module_lr/lr_spectrum.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,15 @@ void LR::LR_Spectrum<T>::optical_absorption_method1(const std::vector<double>& f
195195
// = -4*pi/V * oscilator_strength * Im[1/[(w+i\eta)^2-\Omega_S^2]]
196196
std::vector<double>& osc = this->oscillator_strength_;
197197
std::ofstream ofs(PARAM.globalv.global_out_dir + "absorption.dat");
198-
if (GlobalV::MY_RANK == 0) { ofs << "Frequency (eV) | wave length(nm) | Absorption (a.u.)" << std::endl; }
198+
199+
if (GlobalV::MY_RANK == 0)
200+
{
201+
ofs << "Frequency (eV) | wave length(nm) | Absorption (a.u.)" << std::endl;
202+
}
203+
199204
double FourPI_div_c = ModuleBase::FOUR_PI / 137.036;
200205
double fac = 4 * M_PI / ucell.omega * ModuleBase::e2 / this->nk; // e2 for Ry to Hartree in the denominator
206+
201207
for (int f = 0;f < freq.size();++f)
202208
{
203209
std::complex<double> f_complex = std::complex<double>(freq[f], eta);
@@ -297,4 +303,4 @@ void LR::LR_Spectrum<T>::write_transition_dipole(const std::string& filename)
297303
}
298304

299305
template class LR::LR_Spectrum<double>;
300-
template class LR::LR_Spectrum<std::complex<double>>;
306+
template class LR::LR_Spectrum<std::complex<double>>;

tests/integrate/101_PW_UPF100_Al/INPUT renamed to tests/01_PW/001_PW_UPF100_Al/INPUT

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ pseudo_dir ../../PP_ORB
99

1010
#Parameters (2.Iteration)
1111
ecutwfc 30
12-
scf_thr 1e-9
13-
scf_nmax 100
12+
scf_thr 1e-9
13+
scf_nmax 100
1414

1515
#Parameters (3.Basis)
1616
basis_type pw
17-
latname fcc
17+
latname fcc
1818

1919
#Parameters (4.Smearing)
20-
smearing_method gauss
21-
smearing_sigma 0.002
20+
smearing_method gauss
21+
smearing_sigma 0.002
2222

2323
#Parameters (5.Mixing)
2424
mixing_type broyden
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Test upf100 pseudopotential for Al with 3 electrons, symmetry=on

tests/integrate/101_PW_UPF100_Al/STRU renamed to tests/01_PW/001_PW_UPF100_Al/STRU

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Al 26.98 Al.pbe-rrkj.UPF auto
44
LATTICE_CONSTANT
55
7.50
66

7-
87
ATOMIC_POSITIONS
98
Direct
109

0 commit comments

Comments
 (0)