Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mpp
MLUQ
Commits
e3cadfaa
Commit
e3cadfaa
authored
Jan 23, 2020
by
niklas.baumgarten
Browse files
leftover commit
parent
68df0e94
Changes
2
Hide whitespace changes
Inline
Side-by-side
mlmc/conf/mlmc.conf
View file @
e3cadfaa
...
...
@@ -15,9 +15,9 @@ flux_alpha = 1 #Upwind: 1, Central: 0
#Problem = StochasticLaplace2D
#Problem = StochasticPollution2D
#Problem = DeterministicPollution2D
#
Problem = StochasticPollutionCosHat2D
Problem
=
StochasticPollutionCosHat2D
#Problem = DeterministicPollutionCosHat2D
Problem
=
DeterministicPollutionCosHatSquare500
#
Problem = DeterministicPollutionCosHatSquare500
StochasticField
=
LogNormal
#StochasticField = Gaussian
...
...
@@ -26,14 +26,14 @@ StochasticField = LogNormal
Experiment
=
MLMCExperiment
#Experiment = MLMCOverEpsilon
initLevels
=
2
,
3
initSampleAmount
=
1
,
0
initLevels
=
4
,
5
,
6
initSampleAmount
=
0
,
0
,
1
epsilon
=
0
.
01
mcOnly
=
true
epsilon_lst
=
0
.
05
,
0
.
01
,
0
.
005
maxLevel
=
4
maxLevel
=
6
plevel
=
1
degree
=
2
...
...
@@ -87,7 +87,7 @@ NewtonVerbose = -1
DebugLevel
= -
1
#Transport
scaling
=
16
scaling
=
8
TimeSeries
=
uniform
startTime
=
0
.
0
endTime
=
1
.
0
...
...
tools/plot_mlmc.py
View file @
e3cadfaa
...
...
@@ -15,7 +15,7 @@ L2 = "--------------------------------------------------------------------------
plt
.
rcParams
.
update
({
'font.size'
:
14
})
def
read_log
(
_file_name_
):
def
read_log
(
_file_name_
=
None
):
log_file
=
'../build/log/log'
if
_file_name_
is
None
else
_file_name_
with
open
(
log_file
)
as
file
:
content
=
file
.
readlines
()
...
...
@@ -113,15 +113,5 @@ def plot_statistics(dfs, labels, plot_name=None):
if
__name__
==
"__main__"
:
argv
=
sys
.
argv
argv1
=
argv
[
1
]
if
len
(
argv
)
==
2
else
None
# results14 = read_log('../results/mlmc_alpha/14')
# plot_statistics(results14, None, argv1)
# results18 = read_log('../results/mlmc_alpha/18')
# plot_statistics(results18, None, argv1)
resultslin
=
read_log
(
'../results/mlmc_disc/LinearFEM'
)
resultsquad
=
read_log
(
'../results/mlmc_disc/QuadraticFEM'
)
resultshybr
=
read_log
(
'../results/mlmc_disc/HybridFEM'
)
results
=
[
resultslin
,
resultsquad
,
resultshybr
]
labels
=
[
'Linear FEM'
,
'Quadratic FEM'
,
'Hybrid FEM'
]
plot_statistics
(
results
,
labels
,
argv1
)
results
=
read_log
()
plot_content
(
results
)
Write
Preview
Markdown
is supported
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