diff --git a/src/reference/PointWiseMapping.cpp b/src/reference/PointWiseMapping.cpp index a7714422ff4cf2fcc0f85df22f743df775bba4df..a24a2e7ad25dbd13889e0a527269451066babcdb 100644 --- a/src/reference/PointWiseMapping.cpp +++ b/src/reference/PointWiseMapping.cpp @@ -90,7 +90,7 @@ unsigned PointWiseMapping::getPropertyIndex( const std::string& name ) const { return 0; } -void PointWiseMapping::print( const std::string& method, double time, OFile& afile, const std::string& fmt ){ +void PointWiseMapping::print( const std::string& method, const double & time, OFile& afile, const std::string& fmt ){ std::string descr2, descr="DESCRIPTION: results from %s analysis performed at time " + fmt +"\n"; afile.printf(descr.c_str(), method.c_str(), time ); if(fmt.find("-")!=std::string::npos){ diff --git a/src/reference/PointWiseMapping.h b/src/reference/PointWiseMapping.h index b322e410521aa2cc8bb825e2a96eb18afa2e8863..446401355703bb0fc20ba035b0322a6c53a861c1 100644 --- a/src/reference/PointWiseMapping.h +++ b/src/reference/PointWiseMapping.h @@ -75,7 +75,7 @@ public: /// Get a pointer to the matrix of pairwise distances Matrix<double>& modifyDmat(); /// Print out the low dimensional mapping - void print( const std::string& method, double time, OFile& afile, const std::string& fmt ); + void print( const std::string& method, const double & time, OFile& afile, const std::string& fmt ); /// Get the low dimensional embedding coordinate double getProjectionCoordinate( const unsigned& iframe, const unsigned& jcoord ) const ; /// Set the value of the projection coordinate