Skip to content

Commit 05dd94b

Browse files
committed
change globalv
1 parent 6c460fd commit 05dd94b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/module_io/read_input_item_system.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,12 @@ void ReadInput::item_system()
812812
const std::string warningstr = nofound_str(avail_list, "precision");
813813
ModuleBase::WARNING_QUIT("ReadInput", warningstr);
814814
}
815-
815+
if (para.inp.precision == "single" && para.inp.basis_type == "lcao")
816+
{
817+
ModuleBase::WARNING_QUIT(
818+
"ReadInput",
819+
"Single precision is not supported for lcao basis,\nPlease use double precision for lcao basis.\n");
820+
}
816821
// cpu single precision is not supported while float_fftw lib is not available
817822
if (para.inp.device == "cpu" && para.inp.precision == "single")
818823
{

0 commit comments

Comments
 (0)