diff --git a/src/read_dump.cpp b/src/read_dump.cpp index 330cf9a224..0d8d91a32f 100644 --- a/src/read_dump.cpp +++ b/src/read_dump.cpp @@ -707,7 +707,9 @@ int ReadDump::fields_and_keywords(int narg, char **arg) int ReadDump::whichtype(char *str) { int type = -1; - if (strcmp(str,"x") == 0) type = X; + if (strcmp(str,"id") == 0) type = ID; + else if (strcmp(str,"type") == 0) type = TYPE; + else if (strcmp(str,"x") == 0) type = X; else if (strcmp(str,"y") == 0) type = Y; else if (strcmp(str,"z") == 0) type = Z; else if (strcmp(str,"vx") == 0) type = VX;