evaluates a single option from a "block" line
| 332 | |
| 333 | // evaluates a single option from a "block" line |
| 334 | void evaluateOption(const std::string& option, GridOptions& opts) |
| 335 | { |
| 336 | if (option == "block") |
| 337 | { |
| 338 | // if nothing else is specified after "block", curvilinear is default |
| 339 | // if it is specified, it will get updated on a future call |
| 340 | opts.Type = GridType::Curvilinear; |
| 341 | } |
| 342 | else if (option == "coordinates") |
| 343 | { |
| 344 | opts.Type = GridType::Unstructured; |
| 345 | } |
| 346 | else if (option == "curvilinear") |
| 347 | { |
| 348 | opts.Type = GridType::Curvilinear; |
| 349 | } |
| 350 | else if (option == "rectilinear") |
| 351 | { |
| 352 | opts.Type = GridType::Rectilinear; |
| 353 | } |
| 354 | else if (option == "uniform") |
| 355 | { |
| 356 | opts.Type = GridType::Uniform; |
| 357 | } |
| 358 | else if (option == "iblanked") |
| 359 | { |
| 360 | opts.IBlanked = true; |
| 361 | } |
| 362 | else if (option == "with_ghost") |
| 363 | { |
| 364 | opts.WithGhost = true; |
| 365 | } |
| 366 | else if (option == "range") |
| 367 | { |
| 368 | opts.HasRange = true; |
| 369 | } |
| 370 | } |
| 371 | |
| 372 | // parse a "block" line to determine relevant options |
| 373 | GridOptions getGridOptions(std::string line) |