retrieve target temperature and pressure from fix npt. add sanity checks.

This commit is contained in:
Axel Kohlmeyer
2016-11-13 23:18:59 -05:00
parent 26870f223d
commit 14c7cf4197
4 changed files with 66 additions and 13 deletions

View File

@ -1700,12 +1700,24 @@ void *FixNH::extract(const char *str, int &dim)
dim=0;
if (strcmp(str,"t_target") == 0) {
return &t_target;
} else if (strcmp(str,"t_start") == 0) {
return &t_start;
} else if (strcmp(str,"t_stop") == 0) {
return &t_stop;
} else if (strcmp(str,"mtchain") == 0) {
return &mtchain;
}
dim=1;
if (strcmp(str,"eta") == 0) {
return η
} else if (strcmp(str,"p_flag") == 0) {
return &p_flag;
} else if (strcmp(str,"p_start") == 0) {
return &p_start;
} else if (strcmp(str,"p_stop") == 0) {
return &p_stop;
} else if (strcmp(str,"p_target") == 0) {
return &p_target;
}
return NULL;
}