retrieve target temperature and pressure from fix npt. add sanity checks.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user