clarified doc pages for fix property/atom and read_data
This commit is contained in:
@ -509,21 +509,6 @@ void ReadData::command(int narg, char **arg)
|
||||
|
||||
while (strlen(keyword)) {
|
||||
|
||||
// if special fix matches, it processes section
|
||||
|
||||
if (nfix) {
|
||||
int i;
|
||||
for (i = 0; i < nfix; i++)
|
||||
if (strcmp(keyword,fix_section[i]) == 0) {
|
||||
if (firstpass) fix(fix_index[i],keyword);
|
||||
else skip_lines(modify->fix[fix_index[i]]->
|
||||
read_data_skip_lines(keyword));
|
||||
parse_keyword(0);
|
||||
break;
|
||||
}
|
||||
if (i < nfix) continue;
|
||||
}
|
||||
|
||||
if (strcmp(keyword,"Atoms") == 0) {
|
||||
atomflag = 1;
|
||||
if (firstpass) {
|
||||
@ -728,8 +713,22 @@ void ReadData::command(int narg, char **arg)
|
||||
if (firstpass) impropercoeffs(1);
|
||||
else skip_lines(nimpropertypes);
|
||||
|
||||
} else error->all(FLERR,"Unknown identifier in data file: {}",
|
||||
keyword);
|
||||
// if specified fix matches, it processes section
|
||||
|
||||
} else if (nfix) {
|
||||
int i;
|
||||
for (i = 0; i < nfix; i++)
|
||||
if (strcmp(keyword,fix_section[i]) == 0) {
|
||||
if (firstpass) fix(fix_index[i],keyword);
|
||||
else skip_lines(modify->fix[fix_index[i]]->
|
||||
read_data_skip_lines(keyword));
|
||||
parse_keyword(0);
|
||||
break;
|
||||
}
|
||||
if (i == nfix)
|
||||
error->all(FLERR,"Unknown identifier in data file: {}",keyword);
|
||||
|
||||
} else error->all(FLERR,"Unknown identifier in data file: {}",keyword);
|
||||
|
||||
parse_keyword(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user