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

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

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

revision 1751 by jfenwick, Fri Sep 5 06:16:34 2008 UTC revision 1773 by jfenwick, Tue Sep 9 02:52:26 2008 UTC
# Line 464  namespace DataTypes Line 464  namespace DataTypes
464     pointToString(const ValueType& data,const ShapeType& shape, int offset, const std::string& suffix)     pointToString(const ValueType& data,const ShapeType& shape, int offset, const std::string& suffix)
465     {     {
466        using namespace std;        using namespace std;
467        EsysAssert(data.size()>0,"Error - View is empty.");        EsysAssert(data.size()>0,"Error - Data object is empty.");
468        stringstream temp;        stringstream temp;
469        string finalSuffix=suffix;        string finalSuffix=suffix;
470        if (suffix.length() > 0) {        if (suffix.length() > 0) {
# Line 476  namespace DataTypes Line 476  namespace DataTypes
476           break;           break;
477        case 1:        case 1:
478           for (int i=0;i<shape[0];i++) {           for (int i=0;i<shape[0];i++) {
479              temp << finalSuffix << "(" << i << ") " << data[i];              temp << finalSuffix << "(" << i <<  ") " << data[i+offset];
480              if (i!=(shape[0]-1)) {              if (i!=(shape[0]-1)) {
481                 temp << endl;                 temp << endl;
482              }              }

Legend:
Removed from v.1751  
changed lines
  Added in v.1773

  ViewVC Help
Powered by ViewVC 1.1.26