| 101 | /////////////////////////////// PUBLIC /////////////////////////////////////// |
| 102 | |
| 103 | Pointer<PoissonSolver> |
| 104 | CCPoissonSolverManager::allocateSolver(const std::string& solver_type, |
| 105 | const std::string& solver_object_name, |
| 106 | Pointer<Database> solver_input_db, |
| 107 | const std::string& solver_default_options_prefix) const |
| 108 | { |
| 109 | auto it = d_solver_maker_map.find(solver_type); |
| 110 | if (it == d_solver_maker_map.end()) |
| 111 | { |
| 112 | TBOX_ERROR("CCPoissonSolverManager::allocateSolver():\n" |
| 113 | << " unrecognized solver type: " << solver_type << "\n"); |
| 114 | } |
| 115 | return (it->second)(solver_object_name, solver_input_db, solver_default_options_prefix); |
| 116 | } // allocateSolver |
| 117 | |
| 118 | Pointer<PoissonSolver> |
| 119 | CCPoissonSolverManager::allocateSolver(const std::string& solver_type, |
no test coverage detected