Commit be57e28e authored by niklas-baumgarten's avatar niklas-baumgarten
Browse files

worked on notebook

parent ed09c631
Pipeline #71451 failed with stage
%% 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
```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment