9 #ifndef Tempus_PhysicsStateCounter_hpp
10 #define Tempus_PhysicsStateCounter_hpp
12 #include "Teuchos_VerboseObject.hpp"
13 #include "Teuchos_Describable.hpp"
15 #include "Tempus_PhysicsState.hpp"
18 namespace Tempus_Test {
20 template<
class Scalar>
31 std::string pN =
"Tempus::PhysicsStateCounter",
int pI = 0)
39 virtual Teuchos::RCP<Tempus::PhysicsState<Scalar> >
clone()
const
41 Teuchos::RCP<PhysicsStateCounter<Scalar> > pSC = Teuchos::rcp(
51 Teuchos::RCP<const PhysicsStateCounter<Scalar> > pSC =
66 virtual void describe(Teuchos::FancyOStream & out,
67 const Teuchos::EVerbosityLevel verbLevel)
const
69 out << this->
description() <<
"::describe" << std::endl
81 #endif // Tempus_PhysicsStateCounter_hpp
PhysicsState is a simple class to hold information about the physics.
virtual ~PhysicsStateCounter()
Destructor.
virtual int getCounter() const
Return counter of PhysicsStateCounter.
PhysicsStateCounter(std::string pN="Tempus::PhysicsStateCounter", int pI=0)
Constructor.
PhysicsState(std::string pN="Tempus::PhysicsState")
Constructor.
virtual void copy(const Teuchos::RCP< const Tempus::PhysicsState< Scalar > > &pS)
This is a deep copy.
virtual void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
PhysicsStateCounter is a simple PhysicsState that counts steps.
int physicsCounter_
Counter for steps.
virtual std::string description() const
std::string physicsName_
Name of the creating Physics.
virtual Teuchos::RCP< Tempus::PhysicsState< Scalar > > clone() const
Clone constructor.
virtual void setCounter(int counter)
Set counter of PhysicsStateCounter.