binary:: fixed incorrectly computed use_direct

This commit is contained in:
Zeno Rogue 2019-07-25 12:10:06 +02:00
parent dd5d317cb3
commit d6c53f933f
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,7 @@ namespace binary {
void build_tmatrix() {
if(among(geometry, gBinaryTiling, gSol)) return; // unused
use_direct = (1 << S7) - 1;
use_direct = (1 << (S7-1)) - 1;
if(geometry == gBinary4) {
use_direct = 3;
direct_tmatrix[0] = xpush(-log(2)) * parabolic(-0.5);