Skip to content

Commit a6aa185

Browse files
committed
Add annotation about using write_chg_r_1 in write_psi_r_1
1 parent e41f2e2 commit a6aa185

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/module_io/write_wfc_r.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ void write_psi_r_1(const psi::Psi<std::complex<double>>& wfc_g,
6464
const std::string file_name = outdir + "wfc_realspace_" + ModuleBase::GlobalFunc::TO_STRING(ik_out) + "_"
6565
+ ModuleBase::GlobalFunc::TO_STRING(ib);
6666
#ifdef __MPI
67+
// Use write_chg_r_1 to output the real and imaginary parts of the wave function to file
6768
mpi_requests.push_back({});
6869
write_chg_r_1(wfcpw, wfc_real, file_name, mpi_requests.back());
6970
if (!square)

0 commit comments

Comments
 (0)