Commit bb034a68 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

convergence test

parent f2973ad2
Pipeline #147232 passed with stages
in 58 minutes and 42 seconds
......@@ -344,13 +344,13 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 22,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "556da193419043bab7cfa12697b76d80",
"model_id": "d36f279e4231454d82842c3e0ec27cbf",
"version_major": 2,
"version_minor": 0
},
......@@ -384,12 +384,54 @@
" p.add_vtu(\"Pressure.6.1.{}.vtu\".format(n), ax=p.ax4) "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Convergence tests"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"source": [
"test_case = True\n",
"if test_case:\n",
" mpp.kernels = 4\n",
" mpp.mute = False\n",
" kwargs = {\"epsilon\": 0.0,\n",
" \"initLevels\": [3, 4, 5, 6, 7],\n",
" \"initSampleAmount\": [100, 100, 100, 100, 100],\n",
" \"Problem\": \"StochasticLaplace2DTest\"}\n",
" epsilons = [0.1, 0.03, 0.01, 0.003]\n",
"else:\n",
" mpp.kernels = 32\n",
" mpp.mute = True\n",
" kwargs = {\"epsilon\": 0.0,\n",
" \"initLevels\": [3, 4, 5, 6, 7, 8, 9],\n",
" \"initSampleAmount\": [500, 500, 500, 500, 500, 500, 500],\n",
" \"Problem\": \"StochasticLaplace2DTest\"}\n",
" epsilons = [0.1, 0.03, 0.01, 0.003, 0.001, 0.0003]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"outputs": [],
"source": [
"mpp.clean_data()\n",
"mpp.reset_data()\n",
"\n",
"mpp.run(config=\"mlmc_elliptic\", kwargs=kwargs)\n",
"mpp.parse_log()\n",
"\n",
"convergence_plot(mpp)"
]
}
],
"metadata": {
......
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