| 400 | } // getRestartDatabase |
| 401 | |
| 402 | Pointer<Database> |
| 403 | AppInitializer::getComponentDatabase(const std::string& component_name, const bool suppress_warning) |
| 404 | { |
| 405 | const bool db_exists = d_input_db->isDatabase(component_name); |
| 406 | if (!db_exists && !suppress_warning) |
| 407 | { |
| 408 | pout << "WARNING: AppInitializer::getComponentDatabase(): Database corresponding to " |
| 409 | "component `" |
| 410 | << component_name << "' not found in input\n"; |
| 411 | return new NullDatabase(); |
| 412 | } |
| 413 | else |
| 414 | { |
| 415 | return d_input_db->getDatabase(component_name); |
| 416 | } |
| 417 | } // getComponentDatabase |
| 418 | |
| 419 | bool |
| 420 | AppInitializer::dumpVizData() const |