/[escript]/branches/arrayview_from_1695_trunk/escript/src/DataConstant.cpp
ViewVC logotype

Diff of /branches/arrayview_from_1695_trunk/escript/src/DataConstant.cpp

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

revision 1751 by jfenwick, Wed Sep 3 04:56:50 2008 UTC revision 1752 by jfenwick, Fri Sep 5 06:26:29 2008 UTC
# Line 172  DataConstant::setSlice(const DataAbstrac Line 172  DataConstant::setSlice(const DataAbstrac
172    if (getRank()!=region.size()) {    if (getRank()!=region.size()) {
173      throw DataException("Error - Invalid slice region.");      throw DataException("Error - Invalid slice region.");
174    }    }
175    if (getRank()>0 && !DataTypes::checkShape(getShape(),value->getShape())) {    if (getRank()>0 && !DataTypes::checkShape(value->getShape(),shape)) {
176      throw DataException (DataTypes::createShapeErrorMessage(      throw DataException (DataTypes::createShapeErrorMessage(
177                  "Error - Couldn't copy slice due to shape mismatch.",shape,value->getShape()));                  "Error - Couldn't copy slice due to shape mismatch.",shape,value->getShape()));
178    }    }

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

  ViewVC Help
Powered by ViewVC 1.1.26