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
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
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
podlesny
dune-tectonic
Commits
6fd3118d
Commit
6fd3118d
authored
10 years ago
by
Elias Pipping
Browse files
Options
Downloads
Patches
Plain Diff
[Cleanup] Improve readability
parent
fce4905d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sand-wedge-data/twopiece.hh
+3
-7
3 additions, 7 deletions
src/sand-wedge-data/twopiece.hh
with
3 additions
and
7 deletions
src/sand-wedge-data/twopiece.hh
+
3
−
7
View file @
6fd3118d
...
...
@@ -14,21 +14,17 @@ class TwoPieceFunction
bool
liesBelow
(
Dune
::
FieldVector
<
double
,
MY_DIM
>
const
&
x
,
Dune
::
FieldVector
<
double
,
MY_DIM
>
const
&
y
,
Dune
::
FieldVector
<
double
,
MY_DIM
>
const
&
z
)
const
{
return
(
z
[
0
]
-
x
[
0
])
*
(
y
[
1
]
-
x
[
1
])
/
(
y
[
0
]
-
x
[
0
])
>=
z
[
1
]
-
x
[
1
]
;
return
x
[
1
]
+
(
z
[
0
]
-
x
[
0
])
*
(
y
[
1
]
-
x
[
1
])
/
(
y
[
0
]
-
x
[
0
])
>=
z
[
1
];
};
bool
insideRegion2
(
Dune
::
FieldVector
<
double
,
MY_DIM
>
const
&
z
)
const
{
return
liesBelow
(
_K
,
_
M
,
z
);
return
liesBelow
(
MyGeometry
::
K
,
MyGeometry
::
M
,
z
);
};
Dune
::
FieldVector
<
double
,
MY_DIM
>
const
&
_K
;
Dune
::
FieldVector
<
double
,
MY_DIM
>
const
&
_M
;
double
const
_v1
;
double
const
_v2
;
public
:
TwoPieceFunction
(
double
v1
,
double
v2
)
:
_K
(
MyGeometry
::
K
),
_M
(
MyGeometry
::
M
),
_v1
(
v1
),
_v2
(
v2
)
{}
TwoPieceFunction
(
double
v1
,
double
v2
)
:
_v1
(
v1
),
_v2
(
v2
)
{}
void
evaluate
(
Dune
::
FieldVector
<
double
,
MY_DIM
>
const
&
x
,
Dune
::
FieldVector
<
double
,
1
>
&
y
)
const
{
...
...
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