Skip to content

Commit

Permalink
Re-enable KBC in the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
massimim committed Dec 20, 2023
1 parent 1356ef9 commit 48acb7f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions benchmarks/lbm/src/RunCavityTwoPop.cu
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,18 @@ auto runFilterCollision(Config& config,
testCode << "_bgk";
return runFilterMethod<Collision::bgk, Lattice, Grid, Storage, Compute>(config, report, testCode);
}
// if (config.collisionCli.getOption() == Collision::kbc) {
// if (config.lattice != "d3q27" && config.lattice != "D3Q27") {
// Neon::NeonException e("runFilterCollision");
// e << "LBM kbc collision model only supports d3q27 lattice";
// NEON_THROW(e);
// }
// testCode << "_kbc";
// using L = D3Q27<Precision<Storage, Compute>>;
// if constexpr (std::is_same_v<Lattice, L>) {
// return runFilterMethod<Collision::kbc, Lattice, Grid, Storage, Compute>(config, report, testCode);
// }
// }
if (config.collisionCli.getOption() == Collision::kbc) {
if (config.lattice != "d3q27" && config.lattice != "D3Q27") {
Neon::NeonException e("runFilterCollision");
e << "LBM kbc collision model only supports d3q27 lattice";
NEON_THROW(e);
}
testCode << "_kbc";
using L = D3Q27<Precision<Storage, Compute>>;
if constexpr (std::is_same_v<Lattice, L>) {
return runFilterMethod<Collision::kbc, Lattice, Grid, Storage, Compute>(config, report, testCode);
}
}
NEON_DEV_UNDER_CONSTRUCTION("");
}

Expand Down

0 comments on commit 48acb7f

Please sign in to comment.