Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/advanced/input_files/input-main.md
Original file line number Diff line number Diff line change
Expand Up @@ -2977,7 +2977,7 @@ These variables are relevant when using hybrid functionals with *[basis_type](#b
- **Type**: Real
- **Availability**: *[calculation](#calculation)==gen_opt_abfs*
- **Description**: The threshold when solving for the zeros of spherical Bessel functions. A reasonable choice is 1e-12.
- **Default**: 0
- **Default**: 1E-12

### exx_real_number

Expand Down
2 changes: 1 addition & 1 deletion source/source_hamilt/module_xc/exx_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ struct Exx_Info
{
int abfs_Lmax = 0; // tmp
double ecut_exx = 60;
double tolerence = 1E-2;
double tolerence = 1E-12;
double kmesh_times = 4;
};
Exx_Info_Opt_ABFs info_opt_abfs;
Expand Down
2 changes: 1 addition & 1 deletion source/source_io/module_parameter/input_parameter.h
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ struct Input_para
///< calculating Columb potential is to that of atomic orbitals
int exx_opt_orb_lmax = 0; ///< the maximum l of the spherical Bessel functions for opt ABFs
double exx_opt_orb_ecut = 0.0; ///< the cut-off of plane wave expansion for opt ABFs
double exx_opt_orb_tolerence = 0.0; ///< the threshold when solving for the zeros of spherical Bessel
double exx_opt_orb_tolerence = 1E-12; ///< the threshold when solving for the zeros of spherical Bessel
///< functions for opt ABFs
bool exx_symmetry_realspace
= true; ///< whether to reduce the real-space sector in when using symmetry=1 in EXX calculation
Expand Down
2 changes: 1 addition & 1 deletion source/source_io/test/read_input_ptest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ TEST_F(InputParaTest, ParaRead)
EXPECT_DOUBLE_EQ(param.inp.rpa_ccp_rmesh_times, 10.0);
EXPECT_EQ(param.inp.exx_opt_orb_lmax, 0);
EXPECT_DOUBLE_EQ(param.inp.exx_opt_orb_ecut, 0.0);
EXPECT_DOUBLE_EQ(param.inp.exx_opt_orb_tolerence, 0.0);
EXPECT_DOUBLE_EQ(param.inp.exx_opt_orb_tolerence, 1E-12);
EXPECT_FALSE(param.inp.noncolin);
EXPECT_FALSE(param.inp.lspinorb);
EXPECT_DOUBLE_EQ(param.inp.soc_lambda, 1.0);
Expand Down
2 changes: 1 addition & 1 deletion source/source_io/test/support/INPUT
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ exx_v_grad_r_threshold 0 #
exx_ccp_rmesh_times default #
exx_opt_orb_lmax 0 #
exx_opt_orb_ecut 0 #
exx_opt_orb_tolerence 0 #
exx_opt_orb_tolerence 1E-12 #

#Parameters (16.tddft)
td_vext 0 #add extern potential or not
Expand Down
2 changes: 2 additions & 0 deletions source/source_lcao/module_ri/exx_opt_orb-print.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "exx_opt_orb.h"
#include "../../source_pw/module_pwdft/global.h"
#include "exx_abfs-jle.h"
#include <iomanip>

void Exx_Opt_Orb::print_matrix(
const Exx_Info::Exx_Info_Opt_ABFs &info,
Expand Down Expand Up @@ -204,6 +205,7 @@ void Exx_Opt_Orb::print_matrix(

std::ofstream ofs(file_name+"_"+std::to_string(TA)+"_"+std::to_string(IA)+"_"+std::to_string(TB)+"_"+std::to_string(IB));
print_header(ofs);
ofs<<std::setprecision(15);
print_Q(ofs);
print_S(ofs);
print_V(ofs);
Expand Down
Loading