Merge pull request #2635 from ssande7/fix_nh_extract_bug

[BUGFIX] Correct return values for FixNH::extract()
This commit is contained in:
Axel Kohlmeyer
2021-03-01 08:49:12 -05:00
committed by GitHub

View File

@ -1754,13 +1754,13 @@ void *FixNH::extract(const char *str, int &dim)
} else if (tstat_flag && strcmp(str,"mtchain") == 0) {
return &mtchain;
} else if (pstat_flag && strcmp(str,"mpchain") == 0) {
return &mtchain;
return &mpchain;
}
dim=1;
if (tstat_flag && strcmp(str,"eta") == 0) {
return η
} else if (pstat_flag && strcmp(str,"etap") == 0) {
return η
return &etap;
} else if (pstat_flag && strcmp(str,"p_flag") == 0) {
return &p_flag;
} else if (pstat_flag && strcmp(str,"p_start") == 0) {