From 2882072246e6f965935d83e8d9ee638d1958248c Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Wed, 13 Sep 2023 01:36:06 -0400 Subject: [PATCH] fix typo Signed-off-by: Jinzhe Zeng --- source/api_c/src/c_api.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/api_c/src/c_api.cc b/source/api_c/src/c_api.cc index b30f97186a..35c9135299 100644 --- a/source/api_c/src/c_api.cc +++ b/source/api_c/src/c_api.cc @@ -29,7 +29,7 @@ DP_DeepPot::DP_DeepPot() {} DP_DeepPot::DP_DeepPot(deepmd::DeepPot& dp) : dp(dp) { dfparam = dp.dim_fparam(); daparam = dp.dim_aparam(); - aparam_nall = dp.is_aparam_all(); + aparam_nall = dp.is_aparam_nall(); } DP_DeepPot* DP_NewDeepPot(const char* c_model) { @@ -66,7 +66,7 @@ DP_DeepPotModelDevi::DP_DeepPotModelDevi(deepmd::DeepPotModelDevi& dp) : dp(dp) { dfparam = dp.dim_fparam(); daparam = dp.dim_aparam(); - aparam_nall = dp.is_aparam_all(); + aparam_nall = dp.is_aparam_nall(); } DP_DeepPotModelDevi* DP_NewDeepPotModelDevi(const char** c_models,