# | Line 94 | Line 94 | double Thermo::getPotential(){ | |
---|---|---|
94 | potential_local = 0.0; | |
95 | potential_local += entry_plug->lrPot; | |
96 | ||
97 | < | for( el=0; el<nSRI; el++ ){ |
98 | < | potential_local += sris[el]->get_potential(); |
97 | > | for( el=0; el<entry_plug->n_mol; el++ ){ |
98 | > | potential_local += entry_plug->molecules[el]->get_potential(); |
99 | } | |
100 | ||
101 | // Get total potential for entire system from MPI. |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |