Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mpp
MLUQ
Commits
207aba03
Commit
207aba03
authored
Sep 22, 2020
by
niklas.baumgarten
Browse files
worked on problem
parent
41e898fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
mlmc/src/problem/StochasticEllipticProblem.cpp
View file @
207aba03
...
...
@@ -3,12 +3,20 @@
template
<
>
Tensor
StochasticLaplace1DT
<
Vector
>::
Permeability
(
const
cell
&
c
)
const
{
mout
<<
*
this
->
fineSample
<<
endl
;
mout
<<
this
->
fineSample
->
size
()
<<
endl
;
return
this
->
fineSample
->
operator
()(
c
(),
0
)
*
One
;
if
(
fineSample
&&
!
coarseSample
)
return
this
->
fineSample
->
operator
()(
c
(),
0
)
*
One
;
else
if
(
coarseSample
&&
!
fineSample
)
return
this
->
coarseSample
->
operator
()(
c
(),
0
)
*
One
;
else
Exit
(
"Check generators"
)
}
template
<
>
Tensor
StochasticLaplace2DT
<
Vector
>::
Permeability
(
const
cell
&
c
)
const
{
return
this
->
fineSample
->
operator
()(
c
(),
0
)
*
One
;
if
(
fineSample
&&
!
coarseSample
)
return
this
->
fineSample
->
operator
()(
c
(),
0
)
*
One
;
else
if
(
coarseSample
&&
!
fineSample
)
return
this
->
coarseSample
->
operator
()(
c
(),
0
)
*
One
;
else
Exit
(
"Check generators"
)
}
\ No newline at end of file
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