Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-tectonic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
agnumpde
dune-tectonic
Commits
635777c6
Commit
635777c6
authored
11 years ago
by
Elias Pipping
Browse files
Options
Downloads
Patches
Plain Diff
[Cleanup] Continue renaming: alpha -> logState
parent
5d190b0f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/state/dieterichstateupdater.hh
+8
-8
8 additions, 8 deletions
src/state/dieterichstateupdater.hh
src/state/ruinastateupdater.hh
+8
-8
8 additions, 8 deletions
src/state/ruinastateupdater.hh
with
16 additions
and
16 deletions
src/state/dieterichstateupdater.hh
+
8
−
8
View file @
635777c6
...
@@ -8,7 +8,7 @@ template <class SingletonVectorType, class VectorType>
...
@@ -8,7 +8,7 @@ template <class SingletonVectorType, class VectorType>
class
DieterichStateUpdater
class
DieterichStateUpdater
:
public
StateUpdater
<
SingletonVectorType
,
VectorType
>
{
:
public
StateUpdater
<
SingletonVectorType
,
VectorType
>
{
public:
public:
DieterichStateUpdater
(
SingletonVectorType
_
alpha
_initial
,
DieterichStateUpdater
(
SingletonVectorType
_
logState
_initial
,
Dune
::
BitSetVector
<
1
>
const
&
_nodes
,
double
_L
);
Dune
::
BitSetVector
<
1
>
const
&
_nodes
,
double
_L
);
virtual
void
nextTimeStep
();
virtual
void
nextTimeStep
();
...
@@ -18,7 +18,7 @@ class DieterichStateUpdater
...
@@ -18,7 +18,7 @@ class DieterichStateUpdater
private:
private:
SingletonVectorType
logState_o
;
SingletonVectorType
logState_o
;
SingletonVectorType
alpha
;
SingletonVectorType
logState
;
Dune
::
BitSetVector
<
1
>
const
&
nodes
;
Dune
::
BitSetVector
<
1
>
const
&
nodes
;
double
const
L
;
double
const
L
;
double
tau
;
double
tau
;
...
@@ -26,13 +26,13 @@ class DieterichStateUpdater
...
@@ -26,13 +26,13 @@ class DieterichStateUpdater
template
<
class
SingletonVectorType
,
class
VectorType
>
template
<
class
SingletonVectorType
,
class
VectorType
>
DieterichStateUpdater
<
SingletonVectorType
,
VectorType
>::
DieterichStateUpdater
(
DieterichStateUpdater
<
SingletonVectorType
,
VectorType
>::
DieterichStateUpdater
(
SingletonVectorType
_
alpha
_initial
,
Dune
::
BitSetVector
<
1
>
const
&
_nodes
,
SingletonVectorType
_
logState
_initial
,
Dune
::
BitSetVector
<
1
>
const
&
_nodes
,
double
_L
)
double
_L
)
:
alpha
(
_alpha
_initial
),
nodes
(
_nodes
),
L
(
_L
)
{}
:
logState
(
_logState
_initial
),
nodes
(
_nodes
),
L
(
_L
)
{}
template
<
class
SingletonVectorType
,
class
VectorType
>
template
<
class
SingletonVectorType
,
class
VectorType
>
void
DieterichStateUpdater
<
SingletonVectorType
,
VectorType
>::
nextTimeStep
()
{
void
DieterichStateUpdater
<
SingletonVectorType
,
VectorType
>::
nextTimeStep
()
{
logState_o
=
alpha
;
logState_o
=
logState
;
}
}
template
<
class
SingletonVectorType
,
class
VectorType
>
template
<
class
SingletonVectorType
,
class
VectorType
>
...
@@ -47,14 +47,14 @@ void DieterichStateUpdater<SingletonVectorType, VectorType>::solve(
...
@@ -47,14 +47,14 @@ void DieterichStateUpdater<SingletonVectorType, VectorType>::solve(
for
(
size_t
i
=
0
;
i
<
nodes
.
size
();
++
i
)
for
(
size_t
i
=
0
;
i
<
nodes
.
size
();
++
i
)
if
(
nodes
[
i
][
0
])
{
if
(
nodes
[
i
][
0
])
{
double
const
V
=
velocity_field
[
i
].
two_norm
();
double
const
V
=
velocity_field
[
i
].
two_norm
();
alpha
[
i
]
=
state_update_dieterich_euler
(
tau
,
V
/
L
,
logState_o
[
i
]);
logState
[
i
]
=
state_update_dieterich_euler
(
tau
,
V
/
L
,
logState_o
[
i
]);
}
}
}
}
template
<
class
SingletonVectorType
,
class
VectorType
>
template
<
class
SingletonVectorType
,
class
VectorType
>
void
DieterichStateUpdater
<
SingletonVectorType
,
VectorType
>::
extractLogState
(
void
DieterichStateUpdater
<
SingletonVectorType
,
VectorType
>::
extractLogState
(
SingletonVectorType
&
logState
)
{
SingletonVectorType
&
_
logState
)
{
logState
=
alpha
;
_
logState
=
logState
;
}
}
#endif
#endif
This diff is collapsed.
Click to expand it.
src/state/ruinastateupdater.hh
+
8
−
8
View file @
635777c6
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
template
<
class
SingletonVectorType
,
class
VectorType
>
template
<
class
SingletonVectorType
,
class
VectorType
>
class
RuinaStateUpdater
:
public
StateUpdater
<
SingletonVectorType
,
VectorType
>
{
class
RuinaStateUpdater
:
public
StateUpdater
<
SingletonVectorType
,
VectorType
>
{
public:
public:
RuinaStateUpdater
(
SingletonVectorType
_
alpha
_initial
,
RuinaStateUpdater
(
SingletonVectorType
_
logState
_initial
,
Dune
::
BitSetVector
<
1
>
const
&
_nodes
,
double
_L
);
Dune
::
BitSetVector
<
1
>
const
&
_nodes
,
double
_L
);
virtual
void
nextTimeStep
();
virtual
void
nextTimeStep
();
...
@@ -17,7 +17,7 @@ class RuinaStateUpdater : public StateUpdater<SingletonVectorType, VectorType> {
...
@@ -17,7 +17,7 @@ class RuinaStateUpdater : public StateUpdater<SingletonVectorType, VectorType> {
private:
private:
SingletonVectorType
logState_o
;
SingletonVectorType
logState_o
;
SingletonVectorType
alpha
;
SingletonVectorType
logState
;
Dune
::
BitSetVector
<
1
>
const
&
nodes
;
Dune
::
BitSetVector
<
1
>
const
&
nodes
;
double
const
L
;
double
const
L
;
double
tau
;
double
tau
;
...
@@ -25,13 +25,13 @@ class RuinaStateUpdater : public StateUpdater<SingletonVectorType, VectorType> {
...
@@ -25,13 +25,13 @@ class RuinaStateUpdater : public StateUpdater<SingletonVectorType, VectorType> {
template
<
class
SingletonVectorType
,
class
VectorType
>
template
<
class
SingletonVectorType
,
class
VectorType
>
RuinaStateUpdater
<
SingletonVectorType
,
VectorType
>::
RuinaStateUpdater
(
RuinaStateUpdater
<
SingletonVectorType
,
VectorType
>::
RuinaStateUpdater
(
SingletonVectorType
_
alpha
_initial
,
Dune
::
BitSetVector
<
1
>
const
&
_nodes
,
SingletonVectorType
_
logState
_initial
,
Dune
::
BitSetVector
<
1
>
const
&
_nodes
,
double
_L
)
double
_L
)
:
alpha
(
_alpha
_initial
),
nodes
(
_nodes
),
L
(
_L
)
{}
:
logState
(
_logState
_initial
),
nodes
(
_nodes
),
L
(
_L
)
{}
template
<
class
SingletonVectorType
,
class
VectorType
>
template
<
class
SingletonVectorType
,
class
VectorType
>
void
RuinaStateUpdater
<
SingletonVectorType
,
VectorType
>::
nextTimeStep
()
{
void
RuinaStateUpdater
<
SingletonVectorType
,
VectorType
>::
nextTimeStep
()
{
logState_o
=
alpha
;
logState_o
=
logState
;
}
}
template
<
class
SingletonVectorType
,
class
VectorType
>
template
<
class
SingletonVectorType
,
class
VectorType
>
...
@@ -45,14 +45,14 @@ void RuinaStateUpdater<SingletonVectorType, VectorType>::solve(
...
@@ -45,14 +45,14 @@ void RuinaStateUpdater<SingletonVectorType, VectorType>::solve(
for
(
size_t
i
=
0
;
i
<
nodes
.
size
();
++
i
)
for
(
size_t
i
=
0
;
i
<
nodes
.
size
();
++
i
)
if
(
nodes
[
i
][
0
])
{
if
(
nodes
[
i
][
0
])
{
double
const
V
=
velocity_field
[
i
].
two_norm
();
double
const
V
=
velocity_field
[
i
].
two_norm
();
alpha
[
i
]
=
state_update_ruina
(
tau
,
V
*
tau
/
L
,
logState_o
[
i
]);
logState
[
i
]
=
state_update_ruina
(
tau
,
V
*
tau
/
L
,
logState_o
[
i
]);
}
}
}
}
template
<
class
SingletonVectorType
,
class
VectorType
>
template
<
class
SingletonVectorType
,
class
VectorType
>
void
RuinaStateUpdater
<
SingletonVectorType
,
VectorType
>::
extractLogState
(
void
RuinaStateUpdater
<
SingletonVectorType
,
VectorType
>::
extractLogState
(
SingletonVectorType
&
logState
)
{
SingletonVectorType
&
_
logState
)
{
logState
=
alpha
;
_
logState
=
logState
;
}
}
#endif
#endif
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