Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic
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
MostafaMollaali
dynamic
Commits
7e161f40
Commit
7e161f40
authored
8 years ago
by
wenqing
Browse files
Options
Downloads
Patches
Plain Diff
[Num] Added a member to ConvergenceCriterion
parent
5b2d9f21
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NumLib/ODESolver/ConvergenceCriterion.h
+4
-0
4 additions, 0 deletions
NumLib/ODESolver/ConvergenceCriterion.h
NumLib/ODESolver/ConvergenceCriterionResidual.h
+1
-0
1 addition, 0 deletions
NumLib/ODESolver/ConvergenceCriterionResidual.h
with
5 additions
and
0 deletions
NumLib/ODESolver/ConvergenceCriterion.h
+
4
−
0
View file @
7e161f40
...
@@ -60,6 +60,10 @@ public:
...
@@ -60,6 +60,10 @@ public:
//! (while solving a specific nonlinear system).
//! (while solving a specific nonlinear system).
virtual
void
preFirstIteration
()
{}
virtual
void
preFirstIteration
()
{}
//! Tell the ConvergenceCriterion that it is not called for the first time
//! (while solving a coupling system).
virtual
void
setNoFirstIteration
()
{}
//! Indicate that a new iteration now starts.
//! Indicate that a new iteration now starts.
//!
//!
//! A concrete implementation of ConvergenceCriterion might want to check
//! A concrete implementation of ConvergenceCriterion might want to check
...
...
This diff is collapsed.
Click to expand it.
NumLib/ODESolver/ConvergenceCriterionResidual.h
+
1
−
0
View file @
7e161f40
...
@@ -39,6 +39,7 @@ public:
...
@@ -39,6 +39,7 @@ public:
void
checkResidual
(
const
GlobalVector
&
residual
)
override
;
void
checkResidual
(
const
GlobalVector
&
residual
)
override
;
void
preFirstIteration
()
override
{
_is_first_iteration
=
true
;
}
void
preFirstIteration
()
override
{
_is_first_iteration
=
true
;
}
void
setNoFirstIteration
()
override
{
_is_first_iteration
=
false
;
}
void
reset
()
override
{
_satisfied
=
true
;
_is_first_iteration
=
false
;
}
void
reset
()
override
{
_satisfied
=
true
;
_is_first_iteration
=
false
;
}
bool
isSatisfied
()
const
override
{
return
_satisfied
;
}
bool
isSatisfied
()
const
override
{
return
_satisfied
;
}
private
:
private
:
...
...
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