Skip to content

Commit

Permalink
ensure the isLcp flag is set in the CLI, fixes #486
Browse files Browse the repository at this point in the history
  • Loading branch information
nwagenbrenner committed Apr 20, 2023
1 parent dc0189a commit 2533d6b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ninja/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,7 @@ int windNinjaCLI(int argc, char* argv[])
}

//check if lcp to determine if surface veg needs to be set or not
bool isLcp;
bool isLcp = false;
GDALDataset *poDS = (GDALDataset*)GDALOpen(elevation_file->c_str(),
GA_ReadOnly);
if(poDS == NULL) {
Expand Down Expand Up @@ -1722,8 +1722,6 @@ int windNinjaCLI(int argc, char* argv[])
isLcp = true;
}
}
else
isLcp = false;

GDALClose((GDALDatasetH)poDS);

Expand Down

0 comments on commit 2533d6b

Please sign in to comment.