Skip to content
GitLab
Menu
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
bbb0d78e
Commit
bbb0d78e
authored
Jan 08, 2016
by
Thomas Fetzer
Browse files
[implicit] Correct the calculation of the cornerpoints of grid to work for all dim.
parent
c2a91f7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/implicit/common/implicitproblem.hh
View file @
bbb0d78e
...
...
@@ -689,10 +689,13 @@ public:
*/
bool
isCornerPoint
(
const
GlobalPosition
&
globalPos
,
Scalar
eps
=
1e-8
)
{
return
((
globalPos
[
0
]
<
asImp_
().
bBoxMin
()[
0
]
+
eps
&&
globalPos
[
1
]
<
asImp_
().
bBoxMin
()[
1
]
+
eps
)
||
(
globalPos
[
0
]
<
asImp_
().
bBoxMin
()[
0
]
+
eps
&&
globalPos
[
1
]
>
asImp_
().
bBoxMax
()[
1
]
-
eps
)
||
(
globalPos
[
0
]
>
asImp_
().
bBoxMax
()[
0
]
-
eps
&&
globalPos
[
1
]
<
asImp_
().
bBoxMin
()[
1
]
+
eps
)
||
(
globalPos
[
0
]
>
asImp_
().
bBoxMax
()[
0
]
-
eps
&&
globalPos
[
1
]
>
asImp_
().
bBoxMax
()[
1
]
-
eps
));
for
(
unsigned
int
dimIdx
=
0
;
dimIdx
<
dimWorld
;
dimIdx
++
)
{
if
(
!
(
globalPos
[
dimIdx
]
<
asImp_
().
bBoxMin
()[
dimIdx
]
+
eps
||
globalPos
[
dimIdx
]
>
asImp_
().
bBoxMax
()[
dimIdx
]
-
eps
))
return
false
;
}
return
true
;
}
/*!
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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