Skip to content

Commit 1e83e02

Browse files
author
abacus_fixer
committed
update potential, now it works with 2 parameters
1 parent 18415ff commit 1e83e02

10 files changed

Lines changed: 9 additions & 985 deletions

File tree

source/source_io/module_chgpot/write_elecstat_pot.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ void write_elecstat_pot(
2121
const Charge* const chr,
2222
const UnitCell* ucell,
2323
const double* v_eff,
24-
const surchem& solvent)
24+
const surchem& solvent,
25+
const int precision)
2526
{
2627
ModuleBase::TITLE("ModuleIO", "write_elecstat_pot");
2728
ModuleBase::timer::tick("ModuleIO", "write_elecstat_pot");
@@ -88,7 +89,6 @@ void write_elecstat_pot(
8889
//-------------------------------------------
8990
//! Write down the electrostatic potential
9091
//-------------------------------------------
91-
int precision = 9;
9292
int is = -1;
9393
double ef_tmp = 0.0;
9494
int out_fermi = 0;

source/source_io/module_chgpot/write_elecstat_pot.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ namespace ModuleIO
1919
/// @param chr
2020
/// @param ucell_
2121
/// @param v_eff_fixed
22+
/// @param solvent: for solvation model
23+
/// #param precision: output precision
2224
void write_elecstat_pot(
2325
#ifdef __MPI
2426
const int& bz,
@@ -30,7 +32,8 @@ void write_elecstat_pot(
3032
const Charge* const chr,
3133
const UnitCell* ucell_,
3234
const double* v_eff_fixed,
33-
const surchem& solvent);
35+
const surchem& solvent,
36+
const int precision);
3437

3538
} // namespace ModuleIO
3639

source/source_io/module_ctrl/ctrl_output_fp.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ void ctrl_output_fp(UnitCell& ucell,
154154
&chr,
155155
&(ucell),
156156
pelec->pot->get_fixed_v(),
157-
solvent);
157+
solvent,
158+
PARAM.inp.out_pot[1]);
158159
}
159160

160161
// 6) write ELF

tests/03_NAO_multik/scf_out_dmr_dmk_pot/INPUT renamed to tests/03_NAO_multik/scf_out_dmr_dmk/INPUT

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ basis_type lcao
2020
smearing_method gauss
2121
smearing_sigma 0.002
2222

23-
# output dmr, dmk, and pot
23+
# output dmr, dmk
2424
out_dmr 1 5
2525
out_dmk 1 3
26-
out_pot 2 5
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/03_NAO_multik/scf_out_dmr_dmk_pot/dmrs1_nao.csr.ref renamed to tests/03_NAO_multik/scf_out_dmr_dmk/dmrs1_nao.csr.ref

File renamed without changes.
File renamed without changes.

tests/03_NAO_multik/scf_out_dmr_dmk_pot/potes.cube.ref

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

0 commit comments

Comments
 (0)