fix arg parsing

This commit is contained in:
papush! 2022-03-29 18:13:58 +02:00
parent 44bd8f3b0a
commit 85b21c8436
1 changed files with 2 additions and 2 deletions

View File

@ -86,10 +86,10 @@ int main(int argc, char **argv) {
double radiusScale = 2.;
int iterCount = 1;
if(argc > 4) {
radiusScale = std::stod(argv[3]);
radiusScale = std::stod(argv[4]);
}
if (argc > 5) {
iterCount = std::stoi(argv[4]);
iterCount = std::stoi(argv[5]);
}
auto tetMeshReader = readerFromFileName(argv[2]);