Skip to content

Commit

Permalink
Fixed issues when multiple sims are performed (#3995)
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Winther <[email protected]>
  • Loading branch information
chria and chria authored Sep 12, 2024
1 parent eadbd6c commit a6b8a00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Buildings/Resources/C-Sources/cfdSendStopCommand.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ void cfdSendStopCommand(void *thread) {
}
if (cosim != NULL){
free(cosim);
/* If it is not explicitly set to NULL - then the check in cfdcosim()
will fail if a second simulation is performed. */
cosim = NULL;
}

} /* End of cfdSendStopCommand*/

0 comments on commit a6b8a00

Please sign in to comment.