From 0ffef91f68b362c667e814564689c8eab6cc2f63 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Thu, 11 Jan 2024 21:11:25 -0500 Subject: [PATCH] init --- source/api_cc/src/DeepPot.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/api_cc/src/DeepPot.cc b/source/api_cc/src/DeepPot.cc index 70f4f1523e..cd1b571153 100644 --- a/source/api_cc/src/DeepPot.cc +++ b/source/api_cc/src/DeepPot.cc @@ -1261,8 +1261,8 @@ void DeepPotModelDevi::init(const std::vector& models, } dps.resize(numb_models); for (unsigned int ii = 0; ii < numb_models; ++ii) { - dps[ii] = DeepPot(models[ii], gpu_rank, - file_contents.size() > ii ? file_contents[ii] : ""); + dps[ii].init(models[ii], gpu_rank, + file_contents.size() > ii ? file_contents[ii] : ""); } inited = true; }