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
Snippets
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
Dmitri Naumov
ogs
Commits
05717467
Commit
05717467
authored
5 years ago
by
Dmitri Naumov
Browse files
Options
Downloads
Patches
Plain Diff
[NL] TimeDiscr; Initialize double members with NaN
parent
ef0ca269
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
NumLib/ODESolver/TimeDiscretization.h
+15
-9
15 additions, 9 deletions
NumLib/ODESolver/TimeDiscretization.h
with
15 additions
and
9 deletions
NumLib/ODESolver/TimeDiscretization.h
+
15
−
9
View file @
05717467
...
...
@@ -297,8 +297,9 @@ public:
}
private
:
double
_t
;
//!< \f$ t_C \f$
double
_delta_t
;
//!< the timestep size
double
_t
=
std
::
numeric_limits
<
double
>::
quiet_NaN
();
//!< \f$ t_C \f$
double
_delta_t
=
std
::
numeric_limits
<
double
>::
quiet_NaN
();
//!< the timestep size
GlobalVector
&
_x_old
;
//!< the solution from the preceding timestep
};
...
...
@@ -369,9 +370,12 @@ public:
//! Returns the solution from the preceding timestep.
GlobalVector
const
&
getXOld
()
const
{
return
_x_old
;
}
private
:
double
_t
;
//!< \f$ t_C \f$
double
_t_old
;
//!< the time of the preceding timestep
double
_delta_t
;
//!< the timestep size
double
_t
=
std
::
numeric_limits
<
double
>::
quiet_NaN
();
//!< \f$ t_C \f$
double
_t_old
=
std
::
numeric_limits
<
double
>::
quiet_NaN
();
//!< the time of the
//!< preceding timestep
double
_delta_t
=
std
::
numeric_limits
<
double
>::
quiet_NaN
();
//!< the timestep size
GlobalVector
&
_x_old
;
//!< the solution from the preceding timestep
};
...
...
@@ -443,8 +447,9 @@ public:
GlobalVector
const
&
getXOld
()
const
{
return
_x_old
;
}
private
:
const
double
_theta
;
//!< the implicitness parameter \f$ \theta \f$
double
_t
;
//!< \f$ t_C \f$
double
_delta_t
;
//!< the timestep size
double
_t
=
std
::
numeric_limits
<
double
>::
quiet_NaN
();
//!< \f$ t_C \f$
double
_delta_t
=
std
::
numeric_limits
<
double
>::
quiet_NaN
();
//!< the timestep size
GlobalVector
&
_x_old
;
//!< the solution from the preceding timestep
};
...
...
@@ -512,8 +517,9 @@ public:
private
:
std
::
size_t
eff_num_steps
()
const
{
return
_xs_old
.
size
();
}
const
unsigned
_num_steps
;
//!< The order of the BDF method
double
_t
;
//!< \f$ t_C \f$
double
_delta_t
;
//!< the timestep size
double
_t
=
std
::
numeric_limits
<
double
>::
quiet_NaN
();
//!< \f$ t_C \f$
double
_delta_t
=
std
::
numeric_limits
<
double
>::
quiet_NaN
();
//!< the timestep size
std
::
vector
<
GlobalVector
*>
_xs_old
;
//!< solutions from the preceding timesteps
unsigned
_offset
=
0
;
//!< allows treating \c _xs_old as circular buffer
...
...
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