|
|
|
@ -29,11 +29,11 @@ public: |
|
|
|
|
_nx{nx}, _ny{ny}, |
|
|
|
|
_xmin{xmin}, _xmax{xmax}, |
|
|
|
|
_ymin{ymin}, _ymax{ymax}, |
|
|
|
|
_stencil{ 4.0 / (h * h) + 4.0 * k * k, /* Center */ |
|
|
|
|
-1.0 / (h * h), /* Bottom */ |
|
|
|
|
-1.0 / (h * h), /* Left */ |
|
|
|
|
-1.0 / (h * h), /* Up */ |
|
|
|
|
-1.0 / (h * h)}, /* Right */ |
|
|
|
|
_stencil{ 4.0 / (h * h) + k * k, /* Center */ |
|
|
|
|
-1.0 / (h * h), /* Bottom */ |
|
|
|
|
-1.0 / (h * h), /* Left */ |
|
|
|
|
-1.0 / (h * h), /* Up */ |
|
|
|
|
-1.0 / (h * h)}, /* Right */ |
|
|
|
|
_rhs(nx, ny, 0.), |
|
|
|
|
_sol(nx, ny, 0.), |
|
|
|
|
_tmp(nx, ny, 0.) |
|
|
|
|