Skip to content

Commit

Permalink
Bug 3268: Added message error in command, warning in UI on failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
shoops committed Nov 14, 2024
1 parent 587568e commit 2a6f02e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion copasi/steadystate/CSteadyStateMethod.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2019 - 2022 by Pedro Mendes, Rector and Visitors of the
// Copyright (C) 2019 - 2024 by Pedro Mendes, Rector and Visitors of the
// University of Virginia, University of Heidelberg, and University
// of Connecticut School of Medicine.
// All rights reserved.
Expand Down Expand Up @@ -167,6 +167,8 @@ CSteadyStateMethod::returnProcess(bool steadyStateFound)
if (!steadyStateFound)
{
mSteadyState = mStartState;

CCopasiMessage(CCopasiMessage::COMMANDLINE, MCSteadyState + 2);
return CSteadyStateMethod::notFound;
}

Expand Down
3 changes: 2 additions & 1 deletion copasi/utilities/messages.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2019 - 2023 by Pedro Mendes, Rector and Visitors of the
// Copyright (C) 2019 - 2024 by Pedro Mendes, Rector and Visitors of the
// University of Virginia, University of Heidelberg, and University
// of Connecticut School of Medicine.
// All rights reserved.
Expand Down Expand Up @@ -377,6 +377,7 @@ const MESSAGES Messages[] =
MCSteadyState + 1, "CSteadyState (1): The model is explicitly time dependent. "
"Therefore, the calculation of a steady state using the Newton method is not very meaningful."
},
{MCSteadyState + 2, "CSteadyState (2): No steady state was found."},

{
MCFitting + 1, "CFitting (1): Failed to determine work area size for matrix inversion. "
Expand Down

0 comments on commit 2a6f02e

Please sign in to comment.