Skip to content

Commit

Permalink
update proper loop variables (#2066)
Browse files Browse the repository at this point in the history
  • Loading branch information
smartalecH authored May 12, 2022
1 parent 2f46698 commit 5275f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meepgeom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3022,7 +3022,7 @@ void material_grids_addgradient(double *v, size_t ng, size_t nf, std::vector<mee

// clear all the dft data structures
for (int i=0;i<3;i++){
for (int ii=0;i<adjoint_dft_chunks[i].size();i++){
for (int ii=0;ii<adjoint_dft_chunks[i].size();ii++){
delete adjoint_dft_chunks[i][ii];
delete forward_dft_chunks[i][ii];
}
Expand Down

0 comments on commit 5275f43

Please sign in to comment.