Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
8d099610
Commit
8d099610
authored
Oct 10, 2019
by
Katharina Heck
Browse files
[cleanup][examples] replace enablefvgridgeometrycache with
enablegridgeometrycache
parent
f5f4fa9e
Changes
7
Hide whitespace changes
Inline
Side-by-side
examples/1ptracer/README.md
View file @
8d099610
...
...
@@ -284,7 +284,7 @@ struct EnableGridFluxVariablesCache<TypeTag, TTag::IncompressibleTest> { static
We enable caching for the FV grid geometry
```
cpp
template
<
class
TypeTag
>
struct
Enable
FV
GridGeometryCache
<
TypeTag
,
TTag
::
IncompressibleTest
>
{
static
constexpr
bool
value
=
true
;
};
struct
EnableGridGeometryCache
<
TypeTag
,
TTag
::
IncompressibleTest
>
{
static
constexpr
bool
value
=
true
;
};
```
The cache stores values that were already calculated for later usage. This makes the simulation faster.
We leave the namespace Properties.
...
...
@@ -544,7 +544,7 @@ struct EnableGridVolumeVariablesCache<TypeTag, TTag::TracerTest> { static conste
template
<
class
TypeTag
>
struct
EnableGridFluxVariablesCache
<
TypeTag
,
TTag
::
TracerTest
>
{
static
constexpr
bool
value
=
true
;
};
template
<
class
TypeTag
>
struct
Enable
FV
GridGeometryCache
<
TypeTag
,
TTag
::
TracerTest
>
{
static
constexpr
bool
value
=
true
;
};
struct
EnableGridGeometryCache
<
TypeTag
,
TTag
::
TracerTest
>
{
static
constexpr
bool
value
=
true
;
};
```
We use the same grid as in the stationary one-phase model, a structured 2D grid:
```
cpp
...
...
examples/1ptracer/problem_1p.hh
View file @
8d099610
...
...
@@ -101,7 +101,7 @@ template<class TypeTag>
struct
EnableGridFluxVariablesCache
<
TypeTag
,
TTag
::
IncompressibleTest
>
{
static
constexpr
bool
value
=
true
;
};
// We enable caching for the FV grid geometry
template
<
class
TypeTag
>
struct
Enable
FV
GridGeometryCache
<
TypeTag
,
TTag
::
IncompressibleTest
>
{
static
constexpr
bool
value
=
true
;
};
struct
EnableGridGeometryCache
<
TypeTag
,
TTag
::
IncompressibleTest
>
{
static
constexpr
bool
value
=
true
;
};
//The cache stores values that were already calculated for later usage. This makes the simulation faster.
// We leave the namespace Properties.
}
...
...
examples/1ptracer/problem_tracer.hh
View file @
8d099610
...
...
@@ -59,7 +59,7 @@ struct EnableGridVolumeVariablesCache<TypeTag, TTag::TracerTest> { static conste
template
<
class
TypeTag
>
struct
EnableGridFluxVariablesCache
<
TypeTag
,
TTag
::
TracerTest
>
{
static
constexpr
bool
value
=
true
;
};
template
<
class
TypeTag
>
struct
Enable
FV
GridGeometryCache
<
TypeTag
,
TTag
::
TracerTest
>
{
static
constexpr
bool
value
=
true
;
};
struct
EnableGridGeometryCache
<
TypeTag
,
TTag
::
TracerTest
>
{
static
constexpr
bool
value
=
true
;
};
// We use the same grid as in the stationary one-phase model, a structured 2D grid:
template
<
class
TypeTag
>
...
...
examples/2pinfiltration/README.md
View file @
8d099610
...
...
@@ -321,7 +321,7 @@ stores values that were already calculated for later usage. This makes the simul
template
<
class
TypeTag
>
struct
EnableGridFluxVariablesCache
<
TypeTag
,
TTag
::
PointSourceExample
>
{
static
constexpr
bool
value
=
false
;
};
template
<
class
TypeTag
>
struct
Enable
FV
GridGeometryCache
<
TypeTag
,
TTag
::
PointSourceExample
>
{
static
constexpr
bool
value
=
false
;
};
struct
EnableGridGeometryCache
<
TypeTag
,
TTag
::
PointSourceExample
>
{
static
constexpr
bool
value
=
false
;
};
```
We leave the namespace Properties.
```
cpp
...
...
examples/2pinfiltration/problem.hh
View file @
8d099610
...
...
@@ -120,7 +120,7 @@ namespace Dumux {
template
<
class
TypeTag
>
struct
EnableGridFluxVariablesCache
<
TypeTag
,
TTag
::
PointSourceExample
>
{
static
constexpr
bool
value
=
false
;
};
template
<
class
TypeTag
>
struct
Enable
FV
GridGeometryCache
<
TypeTag
,
TTag
::
PointSourceExample
>
{
static
constexpr
bool
value
=
false
;
};
struct
EnableGridGeometryCache
<
TypeTag
,
TTag
::
PointSourceExample
>
{
static
constexpr
bool
value
=
false
;
};
//We leave the namespace Properties.
}
...
...
examples/shallowwaterfriction/README.md
View file @
8d099610
...
...
@@ -269,7 +269,7 @@ We enable caching for the FV grid geometry and the grid volume variables. The ca
stores values that were already calculated for later usage. This makes the simulation faster.
```cpp
template<class TypeTag>
struct Enable
FV
GridGeometryCache<TypeTag, TTag::RoughChannel>
struct EnableGridGeometryCache<TypeTag, TTag::RoughChannel>
{ static constexpr bool value = true; };
template<class TypeTag>
...
...
examples/shallowwaterfriction/problem.hh
View file @
8d099610
...
...
@@ -81,7 +81,7 @@ public:
// We enable caching for the FV grid geometry and the grid volume variables. The cache
// stores values that were already calculated for later usage. This makes the simulation faster.
template
<
class
TypeTag
>
struct
Enable
FV
GridGeometryCache
<
TypeTag
,
TTag
::
RoughChannel
>
struct
EnableGridGeometryCache
<
TypeTag
,
TTag
::
RoughChannel
>
{
static
constexpr
bool
value
=
true
;
};
template
<
class
TypeTag
>
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment