Skip to content

Commit 546183a

Browse files
committed
edit code part of README.md; change name of test.0.dat to orb_matrix.0.dat
1 parent 6f43aa3 commit 546183a

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

source/src_io/numerical_basis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void Numerical_Basis::output_overlap( const ModuleBase::ComplexMatrix *psi)
6767
std::ofstream ofs;
6868
std::stringstream ss;
6969
// the parameter 'winput::spillage_outdir' is read from INPUTw.
70-
ss << winput::spillage_outdir << "/" << GlobalC::ucell.latName << "." << derivative_order << ".dat";
70+
ss << winput::spillage_outdir << "/" << "orb_matrix." << derivative_order << ".dat";
7171
if (GlobalV::MY_RANK==0)
7272
{
7373
ofs.open(ss.str().c_str());

tools/SIAB/README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,17 @@ Please use the absolute path for each each file and directory.
2222

2323
## (2) set up dependence env
2424
Then, we set up the dependence env for ABACUS and SIAB, such as:
25-
'''
26-
module load hpcx/2.9.0/hpcx-intel-2019.update5 mkl/2019.update5 elpa/2019.05.002/hpcx-intel-2019.update5
27-
'''
25+
26+
```bash
27+
$ module load hpcx/2.9.0/hpcx-intel-2019.update5 mkl/2019.update5 elpa/2019.05.002/hpcx-intel-2019.update5
28+
```
2829
Especially for SIAB with 'PyTorch Gradient' approach, we need pytorch v1.1.0.
2930

3031

3132
### how to install pytorch:
3233
Take the HanHai20@USTC system for example:
3334

34-
''' bash
35+
```bash
3536
$ module load gcc/7.5.0min #:optional, larger version gcc may not be necessary.
3637
$ module load anaconda3
3738
$ module list
@@ -50,15 +51,15 @@ $ source deactivate #or: conda deactivate
5051
$ source activate pytorch110 #or: conda activate pytorch110
5152
$ pip3 install --user scipy numpy
5253
$ pip3 install --user torch_optimizer
53-
'''
54+
```
5455

5556

5657
## (3) run generation
5758
Finally, 'cd' into an example folder, and run command like this:
5859

59-
''' bash
60-
../Generate_Orbital_AllInOne.sh ORBITAL_INPUT_DZP
61-
# or
62-
bsub -q idle -n 8 -oo running.log ../Generate_Orbital_AllInOne.sh ORBITAL_INPUT_DZP
63-
'''
60+
```bash
61+
$ ../Generate_Orbital_AllInOne.sh ORBITAL_INPUT_DZP
62+
or
63+
$ bsub -q idle -n 8 -oo running.log ../Generate_Orbital_AllInOne.sh ORBITAL_INPUT_DZP
64+
```
6465

0 commit comments

Comments
 (0)