--- branches/development/src/io/NonBondedInteractionsSectionParser.cpp 2012/05/26 18:13:43 1725 +++ trunk/src/io/NonBondedInteractionsSectionParser.cpp 2015/03/07 21:41:51 2071 @@ -35,7 +35,7 @@ * * [1] Meineke, et al., J. Comp. Chem. 26, 252-271 (2005). * [2] Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006). - * [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008). + * [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 234107 (2008). * [4] Kuang & Gezelter, J. Chem. Phys. 133, 164101 (2010). * [5] Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011). */ @@ -63,7 +63,6 @@ namespace OpenMD { void NonBondedInteractionsSectionParser::parseLine(ForceField& ff,const std::string& line, int lineNo){ StringTokenizer tokenizer(line); - NonBondedInteractionType* nbiType = NULL; int nTokens = tokenizer.countTokens(); if (nTokens < 3) { @@ -79,7 +78,7 @@ namespace OpenMD { NonBondedInteractionTypeEnum nbit = getNonBondedInteractionTypeEnum(itype); nTokens -= 3; - NonBondedInteractionType* interactionType; + NonBondedInteractionType* interactionType = NULL; //switch is a nightmare to maintain switch(nbit) {