/[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 2049 by phornby, Mon Nov 17 08:54:33 2008 UTC revision 2066 by jfenwick, Thu Nov 20 05:31:33 2008 UTC
# Line 2512  escript::C_GeneralTensorProduct(Data& ar Line 2512  escript::C_GeneralTensorProduct(Data& ar
2512    // SM is the product of the last axis_offset entries in arg_0.getShape().    // SM is the product of the last axis_offset entries in arg_0.getShape().
2513    
2514    // deal with any lazy data    // deal with any lazy data
2515    if (arg_0.isLazy()) {arg_0.resolve();}  //   if (arg_0.isLazy()) {arg_0.resolve();}
2516    if (arg_1.isLazy()) {arg_1.resolve();}  //   if (arg_1.isLazy()) {arg_1.resolve();}
2517      if (arg_0.isLazy() || arg_1.isLazy())
2518      {
2519        DataLazy* c=new DataLazy(arg_0.borrowDataPtr(), arg_1.borrowDataPtr(), PROD, axis_offset,transpose);
2520        return Data(c);
2521      }
2522    
2523    // Interpolate if necessary and find an appropriate function space    // Interpolate if necessary and find an appropriate function space
2524    Data arg_0_Z, arg_1_Z;    Data arg_0_Z, arg_1_Z;
# Line 2923  Data::borrowReadyPtr() const Line 2928  Data::borrowReadyPtr() const
2928  std::string  std::string
2929  Data::toString() const  Data::toString() const
2930  {  {
2931      if (!m_data->isEmpty() &&      if (!m_data->isEmpty() &&
2932      getNumDataPoints()*getDataPointSize()>escriptParams.getInt("TOO_MANY_LINES"))      !m_data->isLazy() &&
2933        getLength()>escriptParams.getInt("TOO_MANY_LINES"))
2934      {      {
2935      stringstream temp;      stringstream temp;
2936      temp << "Summary: inf="<< inf_const() << " sup=" << sup_const() << " data points=" << getNumDataPoints();      temp << "Summary: inf="<< inf_const() << " sup=" << sup_const() << " data points=" << getNumDataPoints();

Legend:
Removed from v.2049  
changed lines
  Added in v.2066

  ViewVC Help
Powered by ViewVC 1.1.26