4 #if defined(Amesos_SHOW_DEPRECATED_WARNINGS) 
    6 #warning "The Amesos package is deprecated" 
   75     for (
int i = 0 ; i < 
size_ ; ++i)
 
   82     time_[timerID]->ResetStartTime();
 
   86   inline int AddTime(
const std::string what, 
int dataID, 
const int timerID = 0)
 
   97       timerID >=  (
int)(
data_.
size()), std::logic_error,
 
   98       "Amesos_Time::AddTime(...): Error, dataID="<<dataID
 
   99       <<
" is >= data_.size()="<<
data_.
size() <<
" for dataName=\""<<what<<
"\"!" 
  103     data_[dataID].timeVal_ += 
time_[timerID]->ElapsedTime();
 
  108   inline double GetTime(
const std::string what)
 const 
  111     for (
int i=0; i<dataSize; ++i) {
 
  112       if ( 
data_[i].timeName_ == what ) {
 
  113         return data_[i].timeVal_;
 
  123     if ( dataID < 0 || dataID >= (
int)(
data_.
size()) ) {
 
  126     return data_[dataID].timeVal_;
 
  133     for (
int i=0; i<dataSize; ++i) {
 
double timeVal_
Current timing data. 
double GetTime(const int dataID) const 
Gets the cumulative time using the dataID. 
std::string timeName_
Character string identifying this timing data. 
Amesos_Time_Data(std::string timeName, double timeVal)
Constructor. 
Array< Amesos_Time_Data > data_
Fast accessable container for timing data. 
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Amesos_Time_Data: Simple struct for storing associated data for Amesos_Time. 
ParameterList & set(std::string const &name, T &&value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
void CreateTimer(const Epetra_Comm &Comm, int size=1)
Initializes the Time object. 
virtual ~Amesos_Time()
Default destructor. 
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
void GetTiming(Teuchos::ParameterList &list) const 
Load up the current timing information into the parameter list. 
int size_
Number of Epetra_Time objects allocated in this object. 
void resize(size_type new_size, const value_type &x=value_type())
Amesos_Time: Container for timing information. 
int AddTime(const std::string what, int dataID, const int timerID=0)
Adds to field what the time elapsed since last call to ResetTimer(). 
void push_back(const value_type &x)
Amesos_Time()
Default constructor to create size timers. 
virtual ~Amesos_Time_Data()
Destructor. 
Array< RCP< Epetra_Time > > time_
Time object. 
void ResetTimer(const int timerID=0)
Resets the internally stored time object. 
double GetTime(const std::string what) const 
Gets the cumulative time using the string.