/[escript]/trunk/escript/src/Data.cpp
ViewVC logotype

Diff of /trunk/escript/src/Data.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1455 by phornby, Thu Feb 28 17:19:44 2008 UTC revision 1693 by jfenwick, Fri Aug 8 04:22:58 2008 UTC
# Line 2522  Data::borrowData() const Line 2522  Data::borrowData() const
2522    return m_data.get();    return m_data.get();
2523  }  }
2524    
2525    
2526    std::string
2527    Data::toString() const
2528    {
2529        static const DataArrayView::ValueType::size_type TOO_MANY_POINTS=80;
2530        if (getNumDataPoints()*getDataPointSize()>TOO_MANY_POINTS)
2531        {
2532        stringstream temp;
2533        temp << "Summary: inf="<< inf() << " sup=" << sup() << " data points=" << getNumDataPoints();
2534        return  temp.str();
2535        }
2536        return m_data->toString();
2537    }
2538    
2539    
2540  /* Member functions specific to the MPI implementation */  /* Member functions specific to the MPI implementation */
2541    
2542  void  void
# Line 2587  Data::get_MPIComm() const Line 2602  Data::get_MPIComm() const
2602  #endif  #endif
2603  }  }
2604    
2605    

Legend:
Removed from v.1455  
changed lines
  Added in v.1693

  ViewVC Help
Powered by ViewVC 1.1.26