mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-16 12:54:50 +01:00
fix: differentiate between 1D and 2D boundary condition
This commit is contained in:
parent
34a4f1eaf2
commit
5a0749f06e
@ -148,7 +148,13 @@ void DiffusionModule::initialize(poet::DiffusionParams args) {
|
||||
if (vecinj_i[j] == 0) {
|
||||
continue;
|
||||
}
|
||||
curr_bc(side, j) = {tug::bc::BC_TYPE_CONSTANT, bc_vec[vecinj_i[j] - 1]};
|
||||
if (this->dim == this->DIM_2D) {
|
||||
curr_bc(side, j) = {tug::bc::BC_TYPE_CONSTANT,
|
||||
bc_vec[vecinj_i[j] - 1]};
|
||||
}
|
||||
if (this->dim == this->DIM_1D) {
|
||||
curr_bc(side) = {tug::bc::BC_TYPE_CONSTANT, bc_vec[vecinj_i[j] - 1]};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user