44 #ifndef EPETRA_COMPOBJECT_H
45 #define EPETRA_COMPOBJECT_H
47 #if defined(Epetra_SHOW_DEPRECATED_WARNINGS)
49 #warning "The Epetra package is deprecated"
97 void ResetFlops()
const {
if (FlopCounter_!=0) FlopCounter_->
ResetFlops();
return;}
101 double Flops()
const {
if (FlopCounter_!=0)
return(FlopCounter_->Flops());
else return(0.0);}
106 void UpdateFlops(
int Flops_in)
const {
if (FlopCounter_!=0) FlopCounter_->UpdateFlops(Flops_in);
return;}
110 void UpdateFlops(
long int Flops_in)
const {
if (FlopCounter_!=0) FlopCounter_->UpdateFlops(Flops_in);
return;}
113 void UpdateFlops(
long long Flops_in)
const {
if (FlopCounter_!=0) FlopCounter_->UpdateFlops(Flops_in);
return;}
116 void UpdateFlops(
double Flops_in)
const {
if (FlopCounter_!=0) FlopCounter_->UpdateFlops(Flops_in);
return;}
119 void UpdateFlops(
float Flops_in)
const {
if (FlopCounter_!=0) FlopCounter_->UpdateFlops(Flops_in);
return;}
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...