/[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 2271 by jfenwick, Mon Feb 16 05:08:29 2009 UTC revision 2282 by jfenwick, Thu Feb 19 06:30:19 2009 UTC
# Line 2275  Data::typeMatchRight(const Data& right) Line 2275  Data::typeMatchRight(const Data& right)
2275    }    }
2276  }  }
2277    
2278    // The normal TaggedValue adds the tag if it is not already present
2279    // This form does not. It throws instead.
2280    // This is because the names are maintained by the domain and cannot be added
2281    // without knowing the tag number to map it to.
2282  void  void
2283  Data::setTaggedValueByName(std::string name,  Data::setTaggedValueByName(std::string name,
2284                             const boost::python::object& value)                             const boost::python::object& value)
# Line 2285  Data::setTaggedValueByName(std::string n Line 2289  Data::setTaggedValueByName(std::string n
2289          int tagKey=getFunctionSpace().getDomain()->getTag(name);          int tagKey=getFunctionSpace().getDomain()->getTag(name);
2290          setTaggedValue(tagKey,value);          setTaggedValue(tagKey,value);
2291       }       }
2292         else
2293         {                  // The
2294        throw DataException("Error - unknown tag in setTaggedValueByName.");
2295         }
2296  }  }
2297    
2298  void  void

Legend:
Removed from v.2271  
changed lines
  Added in v.2282

  ViewVC Help
Powered by ViewVC 1.1.26