/[escript]
ViewVC logotype

Revision 1803


Jump to revision: Previous Next
Author: jfenwick
Date: Wed Sep 24 06:20:29 2008 UTC (10 years, 9 months ago)
Changed paths: 7
Log Message:
All about making DataEmpty instances throw.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Exposed getDim from AbstractDomain to python to fix bug.

Added isEmpty member to DataAbstract to allow it to throw is queries are 
made about a DataEmpty instance.


Added exceptions to DataAbstract, DataEmpty and Data to prevent calls 
being made against DataEmpty objects.
The following still work as expected on DataEmpty instances

copy, getDomain, getFunctionSpace, isEmpty, isExpanded, isProtected, 
isTagged, setprotection.

You can also call interpolate, however it should throw if you try to 
change FunctionSpaces.



Changed paths

Path Details
Directorytrunk/escript/src/Data.cpp modified , text changed
Directorytrunk/escript/src/Data.h modified , text changed
Directorytrunk/escript/src/DataAbstract.cpp modified , text changed
Directorytrunk/escript/src/DataAbstract.h modified , text changed
Directorytrunk/escript/src/DataEmpty.cpp modified , text changed
Directorytrunk/escript/src/DataEmpty.h modified , text changed
Directorytrunk/escript/src/escriptcpp.cpp modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.26