Skip to content

Commit

Permalink
Update msxqual.c
Browse files Browse the repository at this point in the history
Attempt to prevent infinite loop on wall species redistribution (provided via email by Feng Shang).
  • Loading branch information
ucchejbb authored Mar 20, 2024
1 parent 39b7c19 commit 32a3417
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/solver/msxqual.c
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,8 @@ void evalnodeinflow(int k, double tstep, double* volin, double* massin)
MSX.FirstSeg[k] = seg->prev;
MSX.Link[k].nsegs--;
if (MSX.FirstSeg[k] == NULL) MSX.LastSeg[k] = NULL;

else MSX.FirstSeg[k]->next = NULL; //03/19/2024 added to break the linked segments

// ... recycle the used up segment
seg->prev = MSX.FreeSeg;
MSX.FreeSeg = seg;
Expand Down

0 comments on commit 32a3417

Please sign in to comment.