From 14ba5f268c788d530bfd0326dd2ed551957cb7c6 Mon Sep 17 00:00:00 2001 From: Ingmar Schoegl Date: Mon, 10 Aug 2020 08:45:41 -0500 Subject: [PATCH] [1D] Fix upstream boundary condition for IonFlow --- src/oneD/IonFlow.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/oneD/IonFlow.cpp b/src/oneD/IonFlow.cpp index 0f894eb17cd..9cf30f5b5ad 100644 --- a/src/oneD/IonFlow.cpp +++ b/src/oneD/IonFlow.cpp @@ -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) {