Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yuhao Liu
ogs
Commits
8840432f
Commit
8840432f
authored
8 years ago
by
Dmitri Naumov
Browse files
Options
Downloads
Patches
Plain Diff
[MaL] Fix OGS_FATAL expressions in CVodeSolver.
parent
29abfea1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MathLib/ODE/CVodeSolver.cpp
+5
-4
5 additions, 4 deletions
MathLib/ODE/CVodeSolver.cpp
with
5 additions
and
4 deletions
MathLib/ODE/CVodeSolver.cpp
+
5
−
4
View file @
8840432f
...
...
@@ -21,6 +21,7 @@
#include
<sundials/sundials_types.h>
/* definition of type realtype */
#include
"BaseLib/ConfigTree.h"
#include
"BaseLib/Error.h"
//! \addtogroup ExternalODESolverInterface
//! @{
...
...
@@ -35,7 +36,7 @@ void check_error(std::string const& f_name, int const error_flag)
if
(
error_flag
!=
CV_SUCCESS
)
{
OGS_FATAL
(
"CVodeSolver: %s failed with error flag %d."
,
f_name
.
c_str
(),
error_flag
)
)
;
error_flag
);
}
}
...
...
@@ -147,7 +148,7 @@ CVodeSolverImpl::CVodeSolverImpl(const BaseLib::ConfigTree& config,
}
else
{
OGS_FATAL
(
"unknown linear multistep method: %s"
,
param
->
c_str
())
)
;
OGS_FATAL
(
"unknown linear multistep method: %s"
,
param
->
c_str
());
}
}
...
...
@@ -167,7 +168,7 @@ CVodeSolverImpl::CVodeSolverImpl(const BaseLib::ConfigTree& config,
}
else
{
OGS_FATAL
(
"unknown nonlinear solver iteration: %s"
,
param
->
c_str
())
)
;
OGS_FATAL
(
"unknown nonlinear solver iteration: %s"
,
param
->
c_str
());
}
}
...
...
@@ -180,7 +181,7 @@ CVodeSolverImpl::CVodeSolverImpl(const BaseLib::ConfigTree& config,
if
(
_cvode_mem
==
nullptr
||
_y
==
nullptr
||
_abstol
==
nullptr
)
{
OGS_FATAL
(
"couldn't allocate storage for CVode solver."
)
)
;
OGS_FATAL
(
"couldn't allocate storage for CVode solver."
);
}
auto
f_wrapped
=
[](
const
realtype
t
,
const
N_Vector
y
,
N_Vector
ydot
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment