Skip to content

Commit

Permalink
patch: gas mixing deltas sign error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
giganano committed Dec 17, 2024
1 parent 0e6d6a1 commit bf2ec96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vice/src/multizone/migration.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ extern double *migration_gas_changes_by_zone(MULTIZONE mz) {
deltas[i] = 0;
unsigned int j;
/* changes[i][i] = 0 for all i's (see get_changes below). */
for (j = 0u; j < (*mz.mig).n_zones; j++) deltas[i] += changes[i][j];
for (j = 0u; j < (*mz.mig).n_zones; j++) deltas[i] -= changes[j][i];
for (j = 0u; j < (*mz.mig).n_zones; j++) deltas[i] += changes[j][i];
for (j = 0u; j < (*mz.mig).n_zones; j++) deltas[i] -= changes[i][j];
}

return deltas;
Expand Down

0 comments on commit bf2ec96

Please sign in to comment.