Apply bc to ghost node

This commit is contained in:
Max Luebke 2022-04-20 11:27:30 +02:00
parent 0ef5568e10
commit b251204bf5

View File

@ -28,7 +28,7 @@ int main(int argc, char *argv[]) {
diffu.setXDimensions(1, n);
// set the boundary condition for the left ghost cell to dirichlet
bc[1] = {Diffusion::BC_CONSTANT, 5 * std::pow(10, -6)};
bc[0] = {Diffusion::BC_CONSTANT, 5 * std::pow(10, -6)};
// diffu.setBoundaryCondition(1, 0, BTCSDiffusion::BC_CONSTANT,
// 5. * std::pow(10, -6));