Skip to content
Snippets Groups Projects
Commit adeb4277 authored by mkirsz's avatar mkirsz
Browse files

one less computation

parent 0871db3a
No related branches found
No related tags found
1 merge request!17Fix bug when reading stress with vaspreader. Added T to structure and adjusted...
Pipeline #49885 passed
......@@ -153,8 +153,8 @@ stress_force_predict(const StDescriptors &std, Structure &st_)
const force_type fij = fpredict(fdij,aedi);
const force_type fji = fpredict(fdji,aedj);
v += fpredict(fdij,aedi);
v -= fpredict(fdji,aedj);
v += fij;
v -= fji;
for (size_t x=0; x<3; ++x) {
for (size_t y=x; y<3; ++y) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment