{
"cells": [
{
"cell_type": "markdown",
"id": "2133c064",
"metadata": {},
"source": [
"
\n",
"\n",
"### Programming large-scale parallel systems\n",
"### Lectures on Julia for HPC\n",
"\n",
"\n",
"# Distributed Jacobi (SOR) method\n",
"\n",
"by Francesc Verdugo (VU Amsterdam)\n",
"\n",
"Version fall 2022"
]
},
{
"cell_type": "markdown",
"id": "a7b64d5a",
"metadata": {},
"source": [
"## Contents\n",
"\n",
"- How to parallelize the Jacobi method in Julia"
]
},
{
"cell_type": "markdown",
"id": "8bfa86d6",
"metadata": {},
"source": [
"## Mathematical background\n",
"\n",
"\n",
"### 1D Laplace equation\n",
"\n",
"\n",
"Find a function $u(x)$ such that\n",
"\n",
"\n",
"$u''(x) = 0 $ for $x\\in(0,L)$\n",
"\n",
"$u(0) = -1$\n",
"\n",
"$u(L) = 1$\n",
"\n"
]
},
{
"cell_type": "markdown",
"id": "de45f04c",
"metadata": {},
"source": [
"### Analytical solution\n",
"\n",
"$u(x) = (x-L)/L$"
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "bba2fb43",
"metadata": {},
"source": [
"\n",
"