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
be57e28e
Commit
be57e28e
authored
Feb 21, 2020
by
niklas-baumgarten
Browse files
worked on notebook
parent
ed09c631
Pipeline
#71451
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
notebooks/Experiments.ipynb
View file @
be57e28e
%% Cell type:markdown id: tags:
## MLMC Experiments
%% Cell type:markdown id: tags:
### Elliptic PDEs
%% Cell type:code id: tags:
```
python
import
sys
sys
.
path
.
append
(
'..'
)
from
python.mlmc_mppy
import
mlmc_mpp
as
mpp
from
python.mlmc_mppy
import
mpp
```
%% Cell type:code id: tags:
```
python
mpp
.
clean_build
()
mpp
.
kill
()
mpp
.
build
()
```
%% Cell type:markdown id: tags:
#### Convergence tests
%% Cell type:code id: tags:
```
python
mpp
.
run
(
4
,
[
"mlmc_elliptic"
,
"initLevels=3,4,5"
])
```
%% Cell type:code id: tags:
```
python
mpp
.
show_convergence_table
()
```
%% Cell type:code id: tags:
```
python
mpp
.
show_mlmc_table
()
```
%% Cell type:code id: tags:
```
python
Experiment
=
ConvergenceTest
initLevels
=
[
3
,
4
,
5
,
6
,
7
,
8
,
9
]
alphas
=
[
1.0
,
1.4
,
1.8
]
sigmas
=
[
1.0
,
1.5
,
2.0
]
lambdas
=
[
0.05
,
0.10
,
0.15
]
cores
=
32
```
%% Cell type:code id: tags:
```
python
mpp
.
run
(
4
,
[
"mlmc_elliptic"
,
"Experiment=ConvergenceTest"
])
```
%% Cell type:code id: tags:
```
python
Experiment
=
MLMCOverEpsilon
initLevels
=
[
3
,
4
,
5
]
alphas
=
[
1.4
,
1.8
]
sigmas
=
[
1.0
]
lambdas
=
[
0.15
]
cores
=
32
epsilonList
=
[
0.01
,
0.005
,
0.001
]
```
%% Cell type:markdown id: tags:
### Hyperbolic Transport
%% Cell type:code id: tags:
```
python
import
sys
sys
.
path
.
append
(
'..'
)
from
python.mlmc_mppy
import
mpp
```
%% Cell type:code id: tags:
```
python
mpp
.
build
()
```
%%%% Output: stream
================ build sprng5 ================
================ running cmake ================
-- Compiler option -Ofast
-- A library with BLAS API found.
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Using SuperLU 4.0
-- Time dependent problem
-- 3 dimensional problem
-- General transformations
-- Configuring done
-- Generating done
-- Build files have been written to: /home2/baumgarten/Projects/mlmc/build
================ running make ================
[ 5%] Built target gtest
[ 5%] Built target LIB_PS
[ 7%] Built target gtest_main
[ 10%] Built target gmock
[ 26%] Built target MLMC
[ 46%] Built target gmock_main
[ 98%] Built target SRC
[100%] Built target MLMC-M++
%% Cell type:code id: tags:
```
python
mpp
.
run
(
32
,
[
"mlmc_transport"
,
"Experiment=MLMCOverEpsilon"
])
```
%%%% Output: stream
-------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code.. Per user-direction, the job has been aborted.
-------------------------------------------------------
%% Cell type:code id: tags:
```
python
```
...
...
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