--- branches/development/src/nonbonded/SC.cpp 2011/06/03 21:39:49 1575 +++ branches/development/src/nonbonded/SC.cpp 2011/06/16 22:00:08 1583 @@ -329,7 +329,7 @@ namespace OpenMD { *(sdat.frho) = u; *(sdat.dfrhodrho) = 0.5 * *(sdat.frho) / *(sdat.rho); - sdat.pot[METALLIC_FAMILY] += u; + (*(sdat.pot))[METALLIC_FAMILY] += u; *(sdat.particlePot) += u; return; @@ -382,7 +382,7 @@ namespace OpenMD { *(idat.particlePot1) -= data1.c * data1.epsilon * sqrt( *(idat.rho1) - rhtmp) + *(idat.frho1); - idat.pot[METALLIC_FAMILY] += pot_temp; + (*(idat.pot))[METALLIC_FAMILY] += pot_temp; } return;