Skip to content

Commit

Permalink
Refactor: more light-weighted formatter library (#4114)
Browse files Browse the repository at this point in the history
* update

* update 202404251532

* update 202404251625

* update 202404261301

* update 202404261409

* update 202404261911

* handle the std::complex case for format function

* it works for std::complex! but why?

* simplify the std::complex overload

* remove the use of formatter in write_HS, add some tests on FmtCore

* leave std::complex as exception

* remove the overload of std::complex

* complete the timer.cpp

* adjust the width

* correct indent in nscf_band.cpp

* correct the use of formatter in deltaspin

* recover the table in force and stress print

* correct integrated test ref a little bit and unittest ref. Also refactor two functions of UnitCell class

* modify according to suggestions

* fix a potential bug in print_tau function

* change the sequence of declaration to keep consistent with parameter initialization list

* update according to advices

* disable the default constructor of ndarray

* make code more succint

* correct typo

* add the forgotten EXPECT_EQ

---------

Co-authored-by: Mohan Chen <mohan.chen.chen.mohan@gmail.com>
  • Loading branch information
kirk0830 and mohanchen committed May 15, 2024
1 parent a8e0d66 commit b5ac150
Show file tree
Hide file tree
Showing 52 changed files with 2,738 additions and 4,160 deletions.
4 changes: 0 additions & 4 deletions source/Makefile.Objects
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,6 @@ OBJS_BASE=abfs-vector3_order.o\
ylm.o\
opt_CG.o\
opt_DCsrch.o\
formatter_fmt.o\
formatter_physfmt.o\
formatter_table.o\
formatter_contextfmt.o\
cubic_spline.o\
spherical_bessel_transformer.o\
mixing_data.o\
Expand Down
13 changes: 0 additions & 13 deletions source/module_base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ add_library(
parallel_reduce.cpp
spherical_bessel_transformer.cpp
cubic_spline.cpp
formatter_fmt.cpp
formatter_physfmt.cpp
formatter_table.cpp
formatter_contextfmt.cpp
module_mixing/mixing_data.cpp
module_mixing/mixing.cpp
module_mixing/plain_mixing.cpp
Expand All @@ -63,15 +59,6 @@ add_library(
${LIBM_SRC}
)

add_library(
formatter
OBJECT
formatter_fmt.cpp
formatter_physfmt.cpp
formatter_table.cpp
formatter_contextfmt.cpp
)

add_subdirectory(module_container)

if(ENABLE_COVERAGE)
Expand Down

0 comments on commit b5ac150

Please sign in to comment.