Skip to content

Commit

Permalink
found and corrected error in how foam version is set for windows buil…
Browse files Browse the repository at this point in the history
…ds. Related to issue #458
  • Loading branch information
latwood committed Aug 5, 2024
1 parent 67506be commit bfea2e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ninja/ninjafoam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ double NinjaFoam::get_meshResolution()

bool NinjaFoam::simulate_wind()
{
#ifdef WIN32
foamVersion = "2.2.0";
#else
foamVersion = CPLGetConfigOption("WM_PROJECT_VERSION", "");
#endif
CPLDebug("NINJAFOAM", CPLSPrintf("foamVersion = \"%s\"",foamVersion.c_str()));

if(CSLTestBoolean(CPLGetConfigOption("WRITE_TURBULENCE", "FALSE")))
Expand Down

0 comments on commit bfea2e8

Please sign in to comment.