Skip to content

Commit

Permalink
update inp2
Browse files Browse the repository at this point in the history
  • Loading branch information
Chentao168 committed Aug 11, 2024
1 parent 3c4b9ed commit 98a6372
Show file tree
Hide file tree
Showing 71 changed files with 74 additions and 71 deletions.
2 changes: 1 addition & 1 deletion _book/abacus-bader.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-candela.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-conv.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-dcu.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-dos.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-dpgen.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-elastic.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-gcc.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-gpu.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-hpc.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-intel.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-libri.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-md.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-nac1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-nac2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-nac3.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-namd.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-ofdft.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-oneapi.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-phonopy.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-pw.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-question.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-sdft.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-shengbte.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-sol.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-surface1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-surface2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-surface3.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-surface4.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-surface5.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-surface6.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-tddft.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-upf.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-uspex.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-wannier.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/algorithm-delta.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/algorithm-mix.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/algorithm-wannier.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/contribute.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-C++.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-addinp.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions _book/develop-addinp2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-design.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-dox.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-format.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-formatter2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-grid.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-input.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-issue.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-linedete.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path10.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path11.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path3.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path4.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path5.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path6.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path7.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path8.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path9.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-rule.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-sm1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-sm2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-test1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-test2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-vtune.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/news.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/search_plus_index.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions develop-addinp2.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ double nelec_delta = 0.0; ///< change in the number of total electrons

<u>注:对于任何类成员变量的 double, int, bool 等一般类型变量,在定义时就建议给一个初始值。如果类成员没有初始值,很可能会有难以察觉的 bug</u>

<u>注:string类型变量的初始值不能为"", 如果想自动设置,可以设置初始值为"auto", "none"等。</u>

## 1.2 在参数列表中添加参数

路径 <u>module\_io/read\_input\_item\_\*.cpp </u>(不同的参数分好了类,其对应不同文件,需要加到属于的文件里面),如 nelec 就在<u>read_input_item_general.cpp</u>中
Expand Down

0 comments on commit 98a6372

Please sign in to comment.