44 #ifndef EPETRA_COMPOBJECT_H
45 #define EPETRA_COMPOBJECT_H
89 void ResetFlops()
const {
if (FlopCounter_!=0) FlopCounter_->
ResetFlops();
return;}
93 double Flops()
const {
if (FlopCounter_!=0)
return(FlopCounter_->Flops());
else return(0.0);}
98 void UpdateFlops(
int Flops_in)
const {
if (FlopCounter_!=0) FlopCounter_->UpdateFlops(Flops_in);
return;}
102 void UpdateFlops(
long int Flops_in)
const {
if (FlopCounter_!=0) FlopCounter_->UpdateFlops(Flops_in);
return;}
105 void UpdateFlops(
long long Flops_in)
const {
if (FlopCounter_!=0) FlopCounter_->UpdateFlops(Flops_in);
return;}
108 void UpdateFlops(
double Flops_in)
const {
if (FlopCounter_!=0) FlopCounter_->UpdateFlops(Flops_in);
return;}
111 void UpdateFlops(
float Flops_in)
const {
if (FlopCounter_!=0) FlopCounter_->UpdateFlops(Flops_in);
return;}
129 #if defined(Epetra_SHOW_DEPRECATED_WARNINGS)
131 #warning "The Epetra package is deprecated"
void UpdateFlops(double Flops_in) const
Increment Flop count for this object.
void SetFlopCounter(const Epetra_CompObject &CompObject)
Set the internal Epetra_Flops() pointer to the flop counter of another Epetra_CompObject.
Epetra_CompObject & operator=(const Epetra_CompObject &src)
Epetra_Flops * FlopCounter_
void UpdateFlops(long long Flops_in) const
Increment Flop count for this object.
Epetra_CompObject: Functionality and data that is common to all computational classes.
void ResetFlops()
Resets the number of floating point operations to zero for this multi-vector.
Epetra_Flops: The Epetra Floating Point Operations Class.
void UpdateFlops(long int Flops_in) const
Increment Flop count for this object.
void UnsetFlopCounter()
Set the internal Epetra_Flops() pointer to 0 (no flops counted).
double Flops() const
Returns the number of floating point operations with this multi-vector.
void UpdateFlops(float Flops_in) const
Increment Flop count for this object.
Epetra_Flops * GetFlopCounter() const
Get the pointer to the Epetra_Flops() object associated with this object, returns 0 if none...