add missing update to property_atom function API

This commit is contained in:
Axel Kohlmeyer
2022-04-14 12:34:58 -04:00
parent ac8d97d358
commit 29582f09a1
2 changed files with 6 additions and 6 deletions

View File

@ -105,12 +105,12 @@ void AtomVecWavepacket::data_atom_post(int ilocal)
return -1 if name is unknown to this atom style
------------------------------------------------------------------------- */
int AtomVecWavepacket::property_atom(char *name)
int AtomVecWavepacket::property_atom(const std::string &name)
{
if (strcmp(name, "spin") == 0) return 0;
if (strcmp(name, "eradius") == 0) return 1;
if (strcmp(name, "ervel") == 0) return 2;
if (strcmp(name, "erforce") == 0) return 3;
if (name == "spin") return 0;
if (name == "eradius") return 1;
if (name == "ervel") return 2;
if (name == "erforce") return 3;
return -1;
}