Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions source/api_c/src/c_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ DP_Nlist* DP_NewNlist(int inum_,

DP_DeepPot::DP_DeepPot() {}
DP_DeepPot::DP_DeepPot(deepmd::DeepPot& dp) : dp(dp) {
dfparam = dp.dim_aparam();
daparam = dp.dim_fparam();
dfparam = dp.dim_fparam();
daparam = dp.dim_aparam();
}

DP_DeepPot* DP_NewDeepPot(const char* c_model) {
Expand Down Expand Up @@ -62,8 +62,8 @@ DP_DeepPot* DP_NewDeepPotWithParam2(const char* c_model,
DP_DeepPotModelDevi::DP_DeepPotModelDevi() {}
DP_DeepPotModelDevi::DP_DeepPotModelDevi(deepmd::DeepPotModelDevi& dp)
: dp(dp) {
dfparam = dp.dim_aparam();
daparam = dp.dim_fparam();
dfparam = dp.dim_fparam();
daparam = dp.dim_aparam();
}

DP_DeepPotModelDevi* DP_NewDeepPotModelDevi(const char** c_models,
Expand Down
Binary file modified source/tests/data_dp_mask/set.000/aparam.npy
Binary file not shown.
Binary file modified source/tests/data_dp_mask/set.000/atom_pref.npy
Binary file not shown.
Binary file modified source/tests/data_dp_mask/set.000/coord.npy
Binary file not shown.
Binary file modified source/tests/data_dp_mask/set.000/force.npy
Binary file not shown.
126 changes: 0 additions & 126 deletions source/tests/data_dp_mask/type.raw
Original file line number Diff line number Diff line change
Expand Up @@ -18,130 +18,4 @@
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
4
4
4
4
4
4
5
4 changes: 0 additions & 4 deletions source/tests/data_dp_mask/type_map.raw
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
C
O
N
H
S
ZN
Loading