Skip to content

Commit ffd443a

Browse files
committed
change read_file_dir for LOWF
1 parent feea221 commit ffd443a

File tree

9 files changed

+9
-79
lines changed

9 files changed

+9
-79
lines changed

source/src_io/wf_local.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ int WF_Local::read_lowf_complex(std::complex<double>** ctot, const int& ik,
6464
std::stringstream ss;
6565
// read wave functions
6666
// write is in ../src_pdiag/pdiag_basic.cpp
67-
ss << GlobalV::global_out_dir << "LOWF_K_" << ik+1 <<".dat";
67+
ss << GlobalV::global_readin_dir << "LOWF_K_" << ik+1 <<".dat";
6868
// std::cout << " name is = " << ss.str() << std::endl;
6969

7070
std::ifstream ifs;
@@ -222,12 +222,12 @@ int WF_Local::read_lowf(double** ctot, const int& is,
222222
{
223223
// read wave functions
224224
// write is in ../src_pdiag/pdiag_basic.cpp
225-
ss << GlobalV::global_out_dir << "LOWF_GAMMA_S" << is+1 <<".dat";
225+
ss << GlobalV::global_readin_dir << "LOWF_GAMMA_S" << is+1 <<".dat";
226226
std::cout << " name is = " << ss.str() << std::endl;
227227
}
228228
else
229229
{
230-
ss << GlobalV::global_out_dir << "LOWF_K.dat";
230+
ss << GlobalV::global_readin_dir << "LOWF_K.dat";
231231
}
232232

233233
std::ifstream ifs;

source/src_lcao/local_orbital_wfc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ void Local_Orbital_wfc::wfc_2d_to_grid(
286286
if (out_wfc_lcao && myid == 0)
287287
{
288288
std::stringstream ss;
289-
ss << GlobalV::global_out_dir << "LOWF_K_" << ik + 1 << ".dat";
289+
ss << GlobalV::global_readin_dir << "LOWF_K_" << ik + 1 << ".dat";
290290
WF_Local::write_lowf_complex(ss.str(), ctot, ik);
291291
for (int i = 0; i < GlobalV::NBANDS; i++)
292292
{

source/src_pdiag/pdiag_double.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ void Pdiag_Double::gath_eig_complex(MPI_Comm comm,int n,std::complex<double> **c
805805
// this is a bad position to output wave functions.
806806
// but it works!
807807
std::stringstream ss;
808-
ss << GlobalV::global_out_dir << "LOWF_K_" << ik+1 << ".dat";
808+
ss << GlobalV::global_readin_dir << "LOWF_K_" << ik+1 << ".dat";
809809
if(this->out_wfc_lcao)
810810
{
811811
// std::cout << " write the wave functions" << std::endl;

tests/integrate/212_NO_wfc_ienvelope/INPUT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ basis_type lcao
1515
scf_thr 1e-10
1616

1717
calculation ienvelope
18-
out_wfc_lcao 1
18+
read_file_dir ./

tests/integrate/212_NO_wfc_ienvelope/OUT.autotest/LOWF_K_1.dat

Lines changed: 0 additions & 24 deletions
This file was deleted.

tests/integrate/212_NO_wfc_ienvelope/OUT.autotest/LOWF_K_2.dat

Lines changed: 0 additions & 24 deletions
This file was deleted.

tests/integrate/312_NO_GO_wfc_ienvelope/INPUT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ basis_type lcao
1515
scf_thr 1e-10
1616

1717
calculation ienvelope
18-
out_wfc_lcao 1
1918
gamma_only 1
19+
read_file_dir ./

tests/integrate/312_NO_GO_wfc_ienvelope/OUT.autotest/LOWF_GAMMA_S1.dat

Lines changed: 0 additions & 22 deletions
This file was deleted.

tests/integrate/tools/sum_ENV_H2.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ int main(int argc, char **argv)
1717
{
1818
cout << "\e[1;31m [ FAILED ] \e[0m";
1919
cout << "Can't find " << input_file << " !" << endl;
20-
return 0;
20+
return 1;
2121
}
2222

2323
int nx = 0;
@@ -51,5 +51,5 @@ int main(int argc, char **argv)
5151
std::cout<<ne<<std::endl;
5252

5353

54-
return 1;
54+
return 0;
5555
}

0 commit comments

Comments
 (0)