Skip to content

Commit

Permalink
remove boost
Browse files Browse the repository at this point in the history
  • Loading branch information
HydrogenSulfate committed Sep 24, 2024
1 parent 8343077 commit 09c54f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/lmp/pair_deepmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "neighbor.h"
#include "output.h"
#include "update.h"
#include <boost/stacktrace.hpp>
// #include <boost/stacktrace.hpp>
#if LAMMPS_VERSION_NUMBER >= 20210831
// in lammps #2902, fix_ttm members turns from private to protected
#define USE_TTM 1
Expand Down Expand Up @@ -979,10 +979,10 @@ void PairDeepMD::settings(int narg, char **arg) {
auto content = get_file_content(arg[0]);
deep_pot.init(arg[0], node_rank, content);
} catch (const std::exception &e) {
// error->one(FLERR, e.what());
std::cerr << "Standard exception caught: " << e.what() << std::endl;
// 打印堆栈跟踪信息
std::cerr << "Stack trace:\n" << boost::stacktrace::stacktrace() << std::endl;
error->one(FLERR, e.what());
// std::cerr << "Standard exception caught: " << e.what() << std::endl;
// // 打印堆栈跟踪信息
// std::cerr << "Stack trace:\n" << boost::stacktrace::stacktrace() << std::endl;
}
cutoff = deep_pot.cutoff() * dist_unit_cvt_factor;
numb_types = deep_pot.numb_types();
Expand Down

0 comments on commit 09c54f3

Please sign in to comment.