From c730f2bccd7b8ed15e80bafb87b792a90b89a683 Mon Sep 17 00:00:00 2001 From: pxlxingliang Date: Tue, 9 Jul 2024 11:12:56 +0800 Subject: [PATCH] fix: fix bug in esolver.cpp --- source/module_esolver/esolver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/module_esolver/esolver.cpp b/source/module_esolver/esolver.cpp index 695805d260..4b5eb03d1b 100644 --- a/source/module_esolver/esolver.cpp +++ b/source/module_esolver/esolver.cpp @@ -143,11 +143,11 @@ ESolver* init_esolver() { if (GlobalV::precision_flag == "single") { - p_esolver = new ESolver_KS_LIP>(); + return new ESolver_KS_LIP>(); } else { - p_esolver = new ESolver_KS_LIP>(); + return new ESolver_KS_LIP>(); } } else if (esolver_type == "ksdft_lcao")