Clarifying cases where output detail can be unspecified

This commit is contained in:
Erica Fischer
2024-11-07 10:47:28 -08:00
parent 6b90284081
commit a3c8ed17b3
3 changed files with 31 additions and 17 deletions
+5 -1
View File
@@ -221,7 +221,11 @@ int main(int argc, char **argv) {
exit(EXIT_OPEN);
}
bins = parse_layers(f, nz, nx, ny, 1LL << detail, true);
int det = detail;
if (det < 0) {
det = 12;
}
bins = parse_layers(f, nz, nx, ny, 1LL << det, true);
fclose(f);
}