|
nnp_inter.init (arg[0], get_node_rank()); |
If we specify the pair style double times, nnp_inter will be initialized double times too, which is not allowed and will lead to memory leak in release mode. It seems that pairs provided by lammps can be specified several times safely.
Let me know if I'm wrong. Thank you.
deepmd-kit/source/lmp/pair_nnp.cpp
Line 455 in 2111ebb
If we specify the pair style double times, nnp_inter will be initialized double times too, which is not allowed and will lead to memory leak in release mode. It seems that pairs provided by lammps can be specified several times safely.
Let me know if I'm wrong. Thank you.