Skip to content

Commit 6fcf3fa

Browse files
committed
update input files and fix compilation error
1 parent bb82fb4 commit 6fcf3fa

File tree

3 files changed

+25
-26
lines changed

3 files changed

+25
-26
lines changed

docs/advanced/input_files/input-main.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Full List of INPUT Keywords
22

33
- [Full List of INPUT Keywords](#full-list-of-input-keywords)
4-
- [System variables](#system-variables)
4+
- [System Variables](#system-variables)
55
- [suffix](#suffix)
66
- [calculation](#calculation)
77
- [esolver\_type](#esolver_type)
@@ -22,15 +22,15 @@
2222
- [device](#device)
2323
- [precision](#precision)
2424
- [nb2d](#nb2d)
25-
- [Variables related to input files](#variables-related-to-input-files)
25+
- [Input Files](#variables-related-to-input-files)
2626
- [stru\_file](#stru_file)
2727
- [kpoint\_file](#kpoint_file)
2828
- [pseudo\_dir](#pseudo_dir)
2929
- [orbital\_dir](#orbital_dir)
3030
- [read\_file\_dir](#read_file_dir)
3131
- [restart\_load](#restart_load)
3232
- [wannier\_card](#wannier_card)
33-
- [Plane wave related variables](#plane-wave-related-variables)
33+
- [Plane Wave](#plane-wave-related-variables)
3434
- [ecutwfc](#ecutwfc)
3535
- [ecutrho](#ecutrho)
3636
- [nx, ny, nz](#nx-ny-nz)
@@ -45,7 +45,7 @@
4545
- [fft\_mode](#fft_mode)
4646
- [erf\_height](#erf_height)
4747
- [erf\_sigma](#erf_sigma)
48-
- [Numerical atomic orbitals related variables](#numerical-atomic-orbitals-related-variables)
48+
- [NAO-related Variables](#numerical-atomic-orbitals-related-variables)
4949
- [lmaxmax](#lmaxmax)
5050
- [lcao\_ecut](#lcao_ecut)
5151
- [lcao\_dk](#lcao_dk)
@@ -55,7 +55,7 @@
5555
- [bx, by, bz](#bx-by-bz)
5656
- [elpa\_num\_thread](#elpa_num_thread)
5757
- [num\_stream](#num_stream)
58-
- [Electronic structure](#electronic-structure)
58+
- [Electronic Structure](#electronic-structure)
5959
- [basis\_type](#basis_type)
6060
- [ks\_solver](#ks_solver)
6161
- [nbands](#nbands)
@@ -96,7 +96,7 @@
9696
- [lspinorb](#lspinorb)
9797
- [noncolin](#noncolin)
9898
- [soc\_lambda](#soc_lambda)
99-
- [Electronic structure (SDFT)](#electronic-structure-sdft)
99+
- [Stochastic DFT](#electronic-structure-sdft)
100100
- [method\_sto](#method_sto)
101101
- [nbands\_sto](#nbands_sto)
102102
- [nche\_sto](#nche_sto)
@@ -106,7 +106,7 @@
106106
- [initsto\_ecut](#initsto_ecut)
107107
- [initsto\_freq](#initsto_freq)
108108
- [npart\_sto](#npart_sto)
109-
- [Geometry relaxation](#geometry-relaxation)
109+
- [Geometry Relaxation](#geometry-relaxation)
110110
- [relax\_method](#relax_method)
111111
- [relax\_new](#relax_new)
112112
- [relax\_scale\_force](#relax_scale_force)
@@ -128,7 +128,7 @@
128128
- [fixed\_ibrav](#fixed_ibrav)
129129
- [fixed\_atoms](#fixed_atoms)
130130
- [cell\_factor](#cell_factor)
131-
- [Variables related to output information](#variables-related-to-output-information)
131+
- [Output Variables](#variables-related-to-output-information)
132132
- [out\_mul](#out_mul)
133133
- [out\_freq\_elec](#out_freq_elec)
134134
- [out\_chg](#out_chg)
@@ -168,7 +168,7 @@
168168
- [out\_pchg](#out_pchg)
169169
- [if\_separate\_k](#if_separate_k)
170170
- [out\_elf](#out_elf)
171-
- [Density of states](#density-of-states)
171+
- [Density of States](#density-of-states)
172172
- [dos\_edelta\_ev](#dos_edelta_ev)
173173
- [dos\_sigma](#dos_sigma)
174174
- [dos\_scale](#dos_scale)
@@ -214,7 +214,7 @@
214214
- [of\_kernel\_file](#of_kernel_file)
215215
- [of\_full\_pw](#of_full_pw)
216216
- [of\_full\_pw\_dim](#of_full_pw_dim)
217-
- [ML-KEDF: machine learning based kinetic energy density functional for OFDFT](#ml-kedf-machine-learning-based-kinetic-energy-density-functional-for-ofdft)
217+
- [ML-baed Orbital-Free DFT](#ml-kedf-machine-learning-based-kinetic-energy-density-functional-for-ofdft)
218218
- [of\_ml\_gene\_data](#of_ml_gene_data)
219219
- [of\_ml\_device](#of_ml_device)
220220
- [of\_ml\_feg](#of_ml_feg)
@@ -244,14 +244,14 @@
244244
- [of\_ml\_chi\_pnl](#of_ml_chi_pnl)
245245
- [of\_ml\_chi\_qnl](#of_ml_chi_qnl)
246246
- [of\_ml\_local\_test](#of_ml_local_test)
247-
- [Electric field and dipole correction](#electric-field-and-dipole-correction)
247+
- [Electric Field and Dipole Correction](#electric-field-and-dipole-correction)
248248
- [efield\_flag](#efield_flag)
249249
- [dip\_cor\_flag](#dip_cor_flag)
250250
- [efield\_dir](#efield_dir)
251251
- [efield\_pos\_max](#efield_pos_max)
252252
- [efield\_pos\_dec](#efield_pos_dec)
253253
- [efield\_amp](#efield_amp)
254-
- [Gate field (compensating charge)](#gate-field-compensating-charge)
254+
- [Compensating Charge)](#gate-field-compensating-charge)
255255
- [gate\_flag](#gate_flag)
256256
- [zgate](#zgate)
257257
- [block](#block)
@@ -285,7 +285,7 @@
285285
- [rpa\_ccp\_rmesh\_times](#rpa_ccp_rmesh_times)
286286
- [exx\_symmetry\_realspace](#exx_symmetry_realspace)
287287
- [out\_ri\_cv](#out_ri_cv)
288-
- [Molecular dynamics](#molecular-dynamics)
288+
- [Molecular Dynamics](#molecular-dynamics)
289289
- [md\_type](#md_type)
290290
- [md\_nstep](#md_nstep)
291291
- [md\_dt](#md_dt)
@@ -325,7 +325,7 @@
325325
- [md\_nraise](#md_nraise)
326326
- [cal\_syns](#cal_syns)
327327
- [dmax](#dmax)
328-
- [DFT+*U* correction](#dftu-correction)
328+
- [DFT+*U*](#dftu-correction)
329329
- [dft\_plus\_u](#dft_plus_u)
330330
- [orbital\_corr](#orbital_corr)
331331
- [hubbard\_u](#hubbard_u)
@@ -334,7 +334,7 @@
334334
- [uramping](#uramping)
335335
- [omc](#omc)
336336
- [onsite\_radius](#onsite_radius)
337-
- [vdW correction](#vdw-correction)
337+
- [vdW Correction](#vdw-correction)
338338
- [vdw\_method](#vdw_method)
339339
- [vdw\_s6](#vdw_s6)
340340
- [vdw\_s8](#vdw_s8)
@@ -352,7 +352,7 @@
352352
- [vdw\_cutoff\_period](#vdw_cutoff_period)
353353
- [vdw\_cn\_thr](#vdw_cn_thr)
354354
- [vdw\_cn\_thr\_unit](#vdw_cn_thr_unit)
355-
- [Berry phase and wannier90 interface](#berry-phase-and-wannier90-interface)
355+
- [Berry Phase and Wannier90 Interface](#berry-phase-and-wannier90-interface)
356356
- [berry\_phase](#berry_phase)
357357
- [gdir](#gdir)
358358
- [towannier90](#towannier90)
@@ -364,7 +364,7 @@
364364
- [out\_wannier\_eig](#out_wannier_eig)
365365
- [out\_wannier\_unk](#out_wannier_unk)
366366
- [out\_wannier\_wvfn\_formatted](#out_wannier_wvfn_formatted)
367-
- [TDDFT: time dependent density functional theory](#tddft-time-dependent-density-functional-theory)
367+
- [rt-TDDFT: Real-time time dependent density functional theory](#tddft-time-dependent-density-functional-theory)
368368
- [td\_edm](#td_edm)
369369
- [td\_print\_eij](#td_print_eij)
370370
- [td\_propagator](#td_propagator)
@@ -402,7 +402,7 @@
402402
- [init\_vecpot\_file](#init_vecpot_file)
403403
- [ocp](#ocp)
404404
- [ocp\_set](#ocp_set)
405-
- [Variables useful for debugging](#variables-useful-for-debugging)
405+
- [Debug](#variables-useful-for-debugging)
406406
- [t\_in\_h](#t_in_h)
407407
- [vl\_in\_h](#vl_in_h)
408408
- [vnl\_in\_h](#vnl_in_h)
@@ -411,7 +411,7 @@
411411
- [test\_force](#test_force)
412412
- [test\_stress](#test_stress)
413413
- [test\_skip\_ewald](#test_skip_ewald)
414-
- [Electronic conductivities](#electronic-conductivities)
414+
- [Electronic Conductivities](#electronic-conductivities)
415415
- [cal\_cond](#cal_cond)
416416
- [cond\_che\_thr](#cond_che_thr)
417417
- [cond\_dw](#cond_dw)
@@ -421,13 +421,13 @@
421421
- [cond\_smear](#cond_smear)
422422
- [cond\_fwhm](#cond_fwhm)
423423
- [cond\_nonlocal](#cond_nonlocal)
424-
- [Implicit solvation model](#implicit-solvation-model)
424+
- [Implicit Solvation Model](#implicit-solvation-model)
425425
- [imp\_sol](#imp_sol)
426426
- [eb\_k](#eb_k)
427427
- [tau](#tau)
428428
- [sigma\_k](#sigma_k)
429429
- [nc\_k](#nc_k)
430-
- [Quasiatomic Orbital (QO) analysis](#quasiatomic-orbital-qo-analysis)
430+
- [Quasiatomic Orbital Analysis](#quasiatomic-orbital-qo-analysis)
431431
- [qo\_switch](#qo_switch)
432432
- [qo\_basis](#qo_basis)
433433
- [qo\_strategy](#qo_strategy)
@@ -457,7 +457,7 @@
457457
- [pexsi\_mu\_guard](#pexsi_mu_guard)
458458
- [pexsi\_elec\_thr](#pexsi_elec_thr)
459459
- [pexsi\_zero\_thr](#pexsi_zero_thr)
460-
- [Linear Response TDDFT](#linear-response-tddft)
460+
- [Linear-Response TDDFT](#linear-response-tddft)
461461
- [xc\_kernel](#xc_kernel)
462462
- [lr\_init\_xc\_kernel](#lr_init_xc_kernel)
463463
- [lr\_solver](#lr_solver)

source/module_psi/psi_initializer_file.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "module_io/read_wfc_pw.h"
66
#include "module_io/filename.h"
77
#include "module_parameter/parameter.h"
8+
89
template <typename T>
910
void psi_initializer_file<T>::initialize(const Structure_Factor* sf,
1011
const ModulePW::PW_Basis_K* pw_wfc,
@@ -27,10 +28,7 @@ void psi_initializer_file<T>::init_psig(T* psig, const int& ik)
2728
const int nbasis = this->pw_wfc_->npwk_max * npol;
2829
const int nkstot = this->p_kv->get_nkstot();
2930
ModuleBase::ComplexMatrix wfcatom(this->nbands_start_, nbasis);
30-
std::stringstream filename;
3131
int ik_tot = this->p_kv->ik2iktot[ik];
32-
filename << PARAM.globalv.global_readin_dir << "WAVEFUNC" << ik_tot + 1 << ".dat";
33-
3432

3533
// mohan update, this is for plane wave, 2025-05-17
3634
const int out_type = 2;

source/module_psi/test/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ AddTest(
2020
../../module_io/write_pao.cpp
2121
../../module_io/read_wfc_pw.cpp
2222
../../module_io/binstream.cpp
23+
../../module_io/filename.cpp
2324
)
2425
endif()
2526

26-
install(DIRECTORY support DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
27+
install(DIRECTORY support DESTINATION ${CMAKE_CURRENT_BINARY_DIR})

0 commit comments

Comments
 (0)