[Trilinos-Users] [12.2.1] ifpack patch ( endl -> std::endl )
Denis Davydov
davydden at gmail.com
Sat Sep 5 08:15:47 EDT 2015
Dear developers,
Please apply the patches below to fix compiler errors.
p.s. perhaps one could catch those errors before release by simply compiling
Trilinos with as much as possible enabled (TPL & packages).
Kind regards,
Denis
diff --git a/packages/ifpack/src/Ifpack_Hypre.cpp b/packages/ifpack/src/Ifpack_Hypre.cpp
index ea6ba35..1a152ad 100644
--- a/packages/ifpack/src/Ifpack_Hypre.cpp
+++ b/packages/ifpack/src/Ifpack_Hypre.cpp
@@ -401,35 +401,35 @@ int Ifpack_Hypre::Multiply(bool TransA, const Epetra_MultiVector& X, Epetra_Mult
//==============================================================================
std::ostream& Ifpack_Hypre::Print(std::ostream& os) const{
if (!Comm().MyPID()) {
- os << endl;
- os << "================================================================================" << endl;
- os << "Ifpack_Hypre: " << Label () << endl << endl;
- os << "Using " << Comm().NumProc() << " processors." << endl;
- os << "Global number of rows = " << A_->NumGlobalRows() << endl;
- os << "Global number of nonzeros = " << A_->NumGlobalNonzeros() << endl;
- os << "Condition number estimate = " << Condest() << endl;
- os << endl;
- os << "Phase # calls Total Time (s) Total MFlops MFlops/s" << endl;
- os << "----- ------- -------------- ------------ --------" << endl;
+ os << std::endl;
+ os << "================================================================================" << std::endl;
+ os << "Ifpack_Hypre: " << Label () << std::endl << std::endl;
+ os << "Using " << Comm().NumProc() << " processors." << std::endl;
+ os << "Global number of rows = " << A_->NumGlobalRows() << std::endl;
+ os << "Global number of nonzeros = " << A_->NumGlobalNonzeros() << std::endl;
+ os << "Condition number estimate = " << Condest() << std::endl;
+ os << std::endl;
+ os << "Phase # calls Total Time (s) Total MFlops MFlops/s" << std::endl;
+ os << "----- ------- -------------- ------------ --------" << std::endl;
os << "Initialize() " << std::setw(5) << NumInitialize_
<< " " << std::setw(15) << InitializeTime_
- << " 0.0 0.0" << endl;
+ << " 0.0 0.0" << std::endl;
os << "Compute() " << std::setw(5) << NumCompute_
<< " " << std::setw(15) << ComputeTime_
<< " " << std::setw(15) << 1.0e-6 * ComputeFlops_;
if (ComputeTime_ != 0.0)
- os << " " << std::setw(15) << 1.0e-6 * ComputeFlops_ / ComputeTime_ << endl;
+ os << " " << std::setw(15) << 1.0e-6 * ComputeFlops_ / ComputeTime_ << std::endl;
else
- os << " " << std::setw(15) << 0.0 << endl;
+ os << " " << std::setw(15) << 0.0 << std::endl;
os << "ApplyInverse() " << std::setw(5) << NumApplyInverse_
<< " " << std::setw(15) << ApplyInverseTime_
<< " " << std::setw(15) << 1.0e-6 * ApplyInverseFlops_;
if (ApplyInverseTime_ != 0.0)
- os << " " << std::setw(15) << 1.0e-6 * ApplyInverseFlops_ / ApplyInverseTime_ << endl;
+ os << " " << std::setw(15) << 1.0e-6 * ApplyInverseFlops_ / ApplyInverseTime_ << std::endl;
else
- os << " " << std::setw(15) << 0.0 << endl;
- os << "================================================================================" << endl;
- os << endl;
+ os << " " << std::setw(15) << 0.0 << std::endl;
+ os << "================================================================================" << std::endl;
+ os << std::endl;
}
return os;
} //Print()
More information about the Trilinos-Users
mailing list