Skip to content

Commit

Permalink
[1D] Fix upstream boundary condition for IonFlow
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Aug 10, 2020
1 parent f735154 commit 14ba5f2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/oneD/IonFlow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,6 @@ void IonFlow::evalResidual(double* x, double* rsd, int* diag,

for (size_t j = jmin; j <= jmax; j++) {
if (j == 0) {
// enforcing the flux for charged species is difficult
// since charged species are also affected by electric
// force, so Neumann boundary condition is used.
for (size_t k : m_kCharge) {
rsd[index(c_offset_Y + k, 0)] = Y(x,k,0) - Y(x,k,1);
}
rsd[index(c_offset_E, j)] = E(x,0);
diag[index(c_offset_E, j)] = 0;
} else if (j == m_points - 1) {
Expand Down

0 comments on commit 14ba5f2

Please sign in to comment.