Skip to content

Commit 09c54f3

Browse files
remove boost
1 parent 8343077 commit 09c54f3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/lmp/pair_deepmd.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "neighbor.h"
2424
#include "output.h"
2525
#include "update.h"
26-
#include <boost/stacktrace.hpp>
26+
// #include <boost/stacktrace.hpp>
2727
#if LAMMPS_VERSION_NUMBER >= 20210831
2828
// in lammps #2902, fix_ttm members turns from private to protected
2929
#define USE_TTM 1
@@ -979,10 +979,10 @@ void PairDeepMD::settings(int narg, char **arg) {
979979
auto content = get_file_content(arg[0]);
980980
deep_pot.init(arg[0], node_rank, content);
981981
} catch (const std::exception &e) {
982-
// error->one(FLERR, e.what());
983-
std::cerr << "Standard exception caught: " << e.what() << std::endl;
984-
// 打印堆栈跟踪信息
985-
std::cerr << "Stack trace:\n" << boost::stacktrace::stacktrace() << std::endl;
982+
error->one(FLERR, e.what());
983+
// std::cerr << "Standard exception caught: " << e.what() << std::endl;
984+
// // 打印堆栈跟踪信息
985+
// std::cerr << "Stack trace:\n" << boost::stacktrace::stacktrace() << std::endl;
986986
}
987987
cutoff = deep_pot.cutoff() * dist_unit_cvt_factor;
988988
numb_types = deep_pot.numb_types();

0 commit comments

Comments
 (0)