Skip to content

Commit

Permalink
Fixing CLI for lbm unitoform.
Browse files Browse the repository at this point in the history
  • Loading branch information
massimim committed Oct 10, 2023
1 parent 4e690c6 commit 2e533ab
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion benchmarks/lbm/src/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct Config

Neon::skeleton::OccUtils::Cli occCli{Neon::skeleton::Occ::none}; // Neon OCC type
Neon::set::TransferModeUtils::Cli transferModeCli{Neon::set::TransferMode::get}; // Neon transfer mode for halo update
Neon::set::StencilSemanticUtils::Cli stencilSemanticCli{Neon::set::StencilSemantic::streaming};
Neon::set::StencilSemanticUtils::Cli stencilSemanticCli{Neon::set::StencilSemantic::lattice};
Neon::domain::tool::spaceCurves::EncoderTypeUtil::Cli spaceCurveCli{Neon::domain::tool::spaceCurves::EncoderType::sweep};
CollisionUtils::Cli collisionCli{Collision::bgk};
int vti = 0; // Export vti file
Expand Down
2 changes: 1 addition & 1 deletion libNeonSet/include/Neon/set/StencilSemantic.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Neon::set {
enum struct StencilSemantic
{
standard = 0 /*< Transfer for halo update on grid structure */,
streaming = 1 /*< Transfer for halo update on lattice structure */
lattice = 1 /*< Transfer for halo update on lattice structure */
};


Expand Down
2 changes: 1 addition & 1 deletion libNeonSet/include/Neon/set/container/Loader_imp.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ auto Loader::

if (compute == Neon::Pattern::STENCIL &&
(stencilSemantic == StencilSemantic::standard ||
stencilSemantic == StencilSemantic::streaming)) {
stencilSemantic == StencilSemantic::lattice)) {
Neon::NeonException exp("Loader");
exp << "Loading a non const field for a stencil operation is not supported in Neon";
NEON_THROW(exp);
Expand Down
10 changes: 5 additions & 5 deletions libNeonSet/src/set/StencilSemantic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ namespace Neon::set {
auto StencilSemanticUtils::toString(StencilSemantic option) -> std::string
{
switch (option) {
case StencilSemantic::streaming: {
return "streaming";
case StencilSemantic::lattice: {
return "lattice";
}
case StencilSemantic::standard: {
return "grid";
return "standard";
}
}
NEON_THROW_UNSUPPORTED_OPTION("");
}

auto StencilSemanticUtils::fromString(const std::string& occ) -> StencilSemantic
{
std::array<StencilSemantic, 2> opts{StencilSemantic::standard, StencilSemantic::streaming};
std::array<StencilSemantic, 2> opts{StencilSemantic::standard, StencilSemantic::lattice};
for (auto a : opts) {
if (toString(a) == occ) {
return a;
Expand All @@ -28,7 +28,7 @@ auto StencilSemanticUtils::fromString(const std::string& occ) -> StencilSemantic

auto StencilSemanticUtils::getOptions() -> std::array<StencilSemantic, nOptions>
{
std::array<StencilSemantic, nOptions> opts = {StencilSemantic::standard, StencilSemantic::streaming};
std::array<StencilSemantic, nOptions> opts = {StencilSemantic::standard, StencilSemantic::lattice};
return opts;
}

Expand Down

0 comments on commit 2e533ab

Please sign in to comment.