Skip to content

Commit

Permalink
correct E field advance in 1D
Browse files Browse the repository at this point in the history
  • Loading branch information
sgatto committed Mar 16, 2015
1 parent f3b5a9f commit d4d23d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions em_field.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,7 @@ void EM_FIELD::new_advance_E(CURRENT *current)
EY = &val[my_indice(edge,YGrid_factor, ZGrid_factor, 1, i, j, k, N_grid[0], N_grid[1], N_grid[2], Ncomp)];
EZ = &val[my_indice(edge,YGrid_factor, ZGrid_factor, 2, i, j, k, N_grid[0], N_grid[1], N_grid[2], Ncomp)];

*EX += dt*( - mygrid->den_factor*current->Jx(i, j, k) );
*EY += dt*( - dxi*(BZ - BZ_XM) - mygrid->den_factor*current->Jy(i, j, k) );
*EZ += dt*( dxi*(BY - BY_XM) - mygrid->den_factor*current->Jz(i, j, k) );
#else
Expand Down

0 comments on commit d4d23d6

Please sign in to comment.