26 #ifndef GRINS_PHYSICS_FACTORY_H
27 #define GRINS_PHYSICS_FACTORY_H
69 const std::string& physics_to_add,
82 const std::string physics_required )
const;
88 #endif // GRINS_PHYSICS_FACTORY_H
void physics_consistency_error(const std::string physics_checked, const std::string physics_required) const
Utility function.
std::map< std::string, std::tr1::shared_ptr< GRINS::Physics > > PhysicsList
Container for GRINS::Physics object pointers.
std::pair< std::string, PhysicsPtr > PhysicsPair
virtual ~PhysicsFactory()
Destructor does not need to delete std::tr1::shared_ptr's.
Object for constructing list of physics for simulation.
virtual void check_physics_consistency(const GRINS::PhysicsList &physics_list)
Make sure the requested GRINS::Physics classes are consistent.
std::tr1::shared_ptr< Physics > PhysicsPtr
GRINS::PhysicsList build(const GetPot &input)
Builds PhysicsList. This is the primary function of this class.
virtual void add_physics(const GetPot &input, const std::string &physics_to_add, GRINS::PhysicsList &physics_list)
Figures out which GRINS::Physics pointer to create.