From e4f1b47a232a5fe3e5fa22bae2dbfe417ec19051 Mon Sep 17 00:00:00 2001 From: lanshuyue <2000011337@stu.pku.edu.cn> Date: Tue, 18 Aug 2026 04:53:01 +0800 Subject: [PATCH] Fix DFT+U occupation matrix output format --- source/source_lcao/module_dftu/dftu_io.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/source_lcao/module_dftu/dftu_io.cpp b/source/source_lcao/module_dftu/dftu_io.cpp index 9be899e244f..9d80cc64c6c 100644 --- a/source/source_lcao/module_dftu/dftu_io.cpp +++ b/source/source_lcao/module_dftu/dftu_io.cpp @@ -125,9 +125,9 @@ void Plus_U::write_occup_m(const UnitCell& ucell, continue; } - ofs << "\n Atom=" << iat+1; - ofs << " L=" << l; - ofs << " ORBITAL=" << n << std::endl; + ofs << "\n Atom= " << iat+1; + ofs << " L= " << l; + ofs << " ORBITAL= " << n << std::endl; if (nspin == 1 || nspin == 2) { @@ -156,7 +156,7 @@ void Plus_U::write_occup_m(const UnitCell& ucell, ofs << std::endl; ofs << " sum is " << std::setw(12) << sum0[is] << std::endl; } - ofs << " spin=" << is+1 << std::endl; + ofs << " spin= " << is+1 << std::endl; ofs << std::setprecision(8) << std::fixed; for (int m0 = 0; m0 < 2 * l + 1; m0++) {