This commit is contained in:
Axel Kohlmeyer
2021-03-13 22:51:53 -05:00
parent 56e3962d9c
commit 7936a6296f
3 changed files with 7 additions and 16 deletions

View File

@ -1826,10 +1826,10 @@ void Domain::delete_region(int narg, char **arg)
return -1 if no such region
------------------------------------------------------------------------- */
int Domain::find_region(char *name)
int Domain::find_region(const std::string &name)
{
for (int iregion = 0; iregion < nregion; iregion++)
if (strcmp(name,regions[iregion]->id) == 0) return iregion;
if (name == regions[iregion]->id) return iregion;
return -1;
}