Skip to content

Commit 68ca346

Browse files
committed
raise error when train_mode==0 and atomic_v==1
1 parent 4611f9c commit 68ca346

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main_nep/parameters.cu

+6
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,12 @@ void Parameters::calculate_parameters()
169169
}
170170
}
171171

172+
if (train_mode == 0) {
173+
if (atomic_v == 1) {
174+
PRINT_INPUT_ERROR("Atomic tensor is only supported for dipole or polarizability model.");
175+
}
176+
}
177+
172178
if (train_mode != 0 && train_mode != 3) {
173179
// take virial as dipole or polarizability
174180
lambda_e = lambda_f = 0.0f;

0 commit comments

Comments
 (0)