Corrected another error in which, for device sorting, "M" was set

to 1 before the loop over devices in "run", resulting in "M"
taking the value of the previous property record if the following
record did not have an "M" value, instead of setting it to 1.
This commit is contained in:
Tim Edwards 2024-04-03 21:05:08 -04:00
parent 3d180f778d
commit fd0c8c87ea
1 changed files with 1 additions and 1 deletions

View File

@ -4467,9 +4467,9 @@ void parallel_sort(struct objlist *ob1, struct nlist *tp1, int idx1, int run)
proplist = (propsort *)MALLOC(run * sizeof(propsort)); proplist = (propsort *)MALLOC(run * sizeof(propsort));
obp = obn; obp = obn;
mval = 1;
pval = aval = oval = 0.0; pval = aval = oval = 0.0;
for (i = 0; i < run; i++) { for (i = 0; i < run; i++) {
mval = 1;
has_crit = FALSE; has_crit = FALSE;
merge_type = MERGE_NONE; merge_type = MERGE_NONE;
ca = co = (char)0; ca = co = (char)0;