Skip to content

Commit

Permalink
repaired bug reported by Peng G2
Browse files Browse the repository at this point in the history
  • Loading branch information
scheres committed Sep 23, 2022
1 parent 9337f68 commit 2a725d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/acc/acc_ml_optimiser.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Indices
void fineIndexToFineIndices(SamplingParameters sp) // converts an "ihidden_over" (finely sampled) index to partial indices (and coarse index)
{
int oversamples = sp.nr_oversampled_rot*sp.nr_oversampled_trans;
int t_idx = fineIdx;
size_t t_idx = fineIdx;
iclass = floor( t_idx / ( sp.nr_dir * sp.nr_psi * sp.nr_trans * oversamples ));
t_idx -= iclass * ( sp.nr_dir * sp.nr_psi * sp.nr_trans * oversamples );
idir = floor( t_idx / ( sp.nr_psi * sp.nr_trans * oversamples ));
Expand Down

0 comments on commit 2a725d6

Please sign in to comment.