Skip to content

Commit

Permalink
Fix indexing in getting area elements
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarusz committed Nov 24, 2023
1 parent 3950ac7 commit 255c920
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dynamics/spam/src/models/extrudedmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -1329,10 +1329,10 @@ class ModelTendencies : public ExtrudedTendencies {
dens0 -= refdens(dens_id, k + dks, n);
}
dens0 /= total_dens;
//if (subtract_refstate) {
// //dens0 -= q_di(dens_id, k + dks, n);
// dens0 -= q_pi(dens_id, k + pks, n);
//}
// if (subtract_refstate) {
// //dens0 -= q_di(dens_id, k + dks, n);
// dens0 -= q_pi(dens_id, k + pks, n);
// }
dens0var(d, k + pks, j + pjs, i + pis, n) = dens0;
}
});
Expand Down

0 comments on commit 255c920

Please sign in to comment.