Skip to content

Commit 2cbbc87

Browse files
committed
update output of pw documents
1 parent c80471c commit 2cbbc87

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

source/source_esolver/esolver_fp.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ void ESolver_FP::after_scf(UnitCell& ucell, const int istep, const bool conv_eso
180180
{
181181
this->pw_rhod->real2recip(this->chr.rho_save[is], this->chr.rhog_save[is]);
182182

183-
std::string fn =PARAM.globalv.global_out_dir + "/chg";
183+
std::string fn =PARAM.globalv.global_out_dir + "chg";
184184

185185
std::string spin_block;
186186
if(PARAM.inp.nspin == 2 || PARAM.inp.nspin == 4)
@@ -207,7 +207,7 @@ void ESolver_FP::after_scf(UnitCell& ucell, const int istep, const bool conv_eso
207207

208208
if (XC_Functional::get_ked_flag())
209209
{
210-
fn = PARAM.globalv.global_out_dir + "/tau";
210+
fn = PARAM.globalv.global_out_dir + "tau";
211211

212212
fn += spin_block + ".cube";
213213

@@ -228,7 +228,7 @@ void ESolver_FP::after_scf(UnitCell& ucell, const int istep, const bool conv_eso
228228
{
229229
for (int is = 0; is < PARAM.inp.nspin; is++)
230230
{
231-
std::string fn =PARAM.globalv.global_out_dir + "/pot";
231+
std::string fn =PARAM.globalv.global_out_dir + "pot";
232232

233233
std::string spin_block;
234234
if(PARAM.inp.nspin == 2 || PARAM.inp.nspin == 4)
@@ -256,7 +256,7 @@ void ESolver_FP::after_scf(UnitCell& ucell, const int istep, const bool conv_eso
256256
}
257257
else if (PARAM.inp.out_pot == 2)
258258
{
259-
std::string fn =PARAM.globalv.global_out_dir + "/pot_es.cube";
259+
std::string fn =PARAM.globalv.global_out_dir + "pot_es.cube";
260260
ModuleIO::write_elecstat_pot(
261261
#ifdef __MPI
262262
this->pw_big->bz,
@@ -398,7 +398,7 @@ void ESolver_FP::before_scf(UnitCell& ucell, const int istep)
398398
for (int is = 0; is < PARAM.inp.nspin; is++)
399399
{
400400
std::stringstream ss;
401-
ss << PARAM.globalv.global_out_dir << "/chgs" << is + 1 << "_ini.cube";
401+
ss << PARAM.globalv.global_out_dir << "chgs" << is + 1 << "_ini.cube";
402402
ModuleIO::write_vdata_palgrid(this->Pgrid,
403403
this->chr.rho[is],
404404
is,

source/source_io/write_cube.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ void ModuleIO::write_cube(const std::string& file,
214214

215215
std::ofstream ofs(file);
216216

217+
// mohan add 2025-09-10
218+
GlobalV::ofs_running << " Write data to file: " << file << std::endl;
219+
217220
for (int i = 0; i < 2; ++i)
218221
{
219222
ofs << comment[i] << "\n";

source/source_io/write_elf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void write_elf(
114114
{
115115
std::string fn_temp = out_dir + "/elf";
116116

117-
fn_temp += fn_temp + std::to_string(is + 1) + ".cube";
117+
fn_temp += std::to_string(is + 1) + ".cube";
118118

119119
int ispin = is + 1;
120120

0 commit comments

Comments
 (0)