Commit 4c542884 authored by Leon Merten Lohse's avatar Leon Merten Lohse
Browse files

format c++ source

parent 09b62083
Pipeline #175057 failed with stages
in 23 seconds
......@@ -110,7 +110,7 @@ namespace finite_differences {
return u_new;
}
const array_1D step1d_AAF_sym(const complex rz,
const complex rxx,
const complex rx,
......@@ -129,9 +129,8 @@ namespace finite_differences {
array_1D r = array_1D::Zero(n, 1);
for (size_t i = 1; i < n; ++i) {
complex rhix = rx / static_cast<complex>(i) / 2.0;
m(0, i) = -rxx + rhix; // lower
m(1, i) = rz + 2. * rxx - f(i); // diagonal
m(2, i) = -rxx - rhix; // upper;
......@@ -139,7 +138,7 @@ namespace finite_differences {
+ (rxx - rhix) * up(i-1)
+ (rxx + rhix) * up(i+1);
}
// left boundary
m(0, 0) = 0; // lower
m(1, 0) = rz + 2. * rxx + 2. * rx - f(0); // diagonal
......
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