/[escript]/trunk/escript/test/python/test_objects.py
ViewVC logotype

Diff of /trunk/escript/test/python/test_objects.py

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

revision 1022 by gross, Tue Feb 20 02:49:08 2007 UTC revision 1023 by gross, Tue Mar 13 05:43:36 2007 UTC
# Line 59  class Test_Dump(unittest.TestCase): Line 59  class Test_Dump(unittest.TestCase):
59    
60     #===========================================================================     #===========================================================================
61     def test_DumpAndLoad_Constant_Solution_Rank0(self):     def test_DumpAndLoad_Constant_Solution_Rank0(self):
62         file=os.path.join(self.filebase,"constant_solution_rank0.nc")         if loadIsConfigured():
63         d=Data(self.arg0,Solution(self.domain))            file=os.path.join(self.filebase,"constant_solution_rank0.nc")
64         self._diffDataObjects(d,file)            d=Data(self.arg0,Solution(self.domain))
65              self._diffDataObjects(d,file)
66    
67     def test_DumpAndLoad_Constant_Solution_Rank1(self):     def test_DumpAndLoad_Constant_Solution_Rank1(self):
68         file=os.path.join(self.filebase,"constant_solution_rank1.nc")         if loadIsConfigured():
69         d=Data(self.arg1,Solution(self.domain))            file=os.path.join(self.filebase,"constant_solution_rank1.nc")
70         self._diffDataObjects(d,file)            d=Data(self.arg1,Solution(self.domain))
71              self._diffDataObjects(d,file)
72    
73     def test_DumpAndLoad_Constant_Solution_Rank2(self):     def test_DumpAndLoad_Constant_Solution_Rank2(self):
74         file=os.path.join(self.filebase,"constant_solution_rank2.nc")         if loadIsConfigured():
75         d=Data(self.arg2,Solution(self.domain))            file=os.path.join(self.filebase,"constant_solution_rank2.nc")
76         self._diffDataObjects(d,file)            d=Data(self.arg2,Solution(self.domain))
77              self._diffDataObjects(d,file)
78    
79     def test_DumpAndLoad_Constant_Solution_Rank3(self):     def test_DumpAndLoad_Constant_Solution_Rank3(self):
80         file=os.path.join(self.filebase,"constant_solution_rank3.nc")         if loadIsConfigured():
81         d=Data(self.arg3,Solution(self.domain))            file=os.path.join(self.filebase,"constant_solution_rank3.nc")
82         self._diffDataObjects(d,file)            d=Data(self.arg3,Solution(self.domain))
83              self._diffDataObjects(d,file)
84    
85     def test_DumpAndLoad_Constant_Solution_Rank4(self):     def test_DumpAndLoad_Constant_Solution_Rank4(self):
86         file=os.path.join(self.filebase,"constant_solution_rank4.nc")         if loadIsConfigured():
87         d=Data(self.arg4,Solution(self.domain))            file=os.path.join(self.filebase,"constant_solution_rank4.nc")
88         self._diffDataObjects(d,file)            d=Data(self.arg4,Solution(self.domain))
89              self._diffDataObjects(d,file)
90     #===========================================================================     #===========================================================================
91     def test_DumpAndLoad_Constant_ReducedSolution_Rank0(self):     def test_DumpAndLoad_Constant_ReducedSolution_Rank0(self):
92         file=os.path.join(self.filebase,"constant_reduced_solution_rank0.nc")         if loadIsConfigured():
93         d=Data(self.arg0,ReducedSolution(self.domain))            file=os.path.join(self.filebase,"constant_reduced_solution_rank0.nc")
94         self._diffDataObjects(d,file)            d=Data(self.arg0,ReducedSolution(self.domain))
95              self._diffDataObjects(d,file)
96    
97     def test_DumpAndLoad_Constant_ReducedSolution_Rank1(self):     def test_DumpAndLoad_Constant_ReducedSolution_Rank1(self):
98         file=os.path.join(self.filebase,"constant_reduced_solution_rank1.nc")         if loadIsConfigured():
99         d=Data(self.arg1,ReducedSolution(self.domain))            file=os.path.join(self.filebase,"constant_reduced_solution_rank1.nc")
100         self._diffDataObjects(d,file)            d=Data(self.arg1,ReducedSolution(self.domain))
101              self._diffDataObjects(d,file)
102    
103     def test_DumpAndLoad_Constant_ReducedSolution_Rank2(self):     def test_DumpAndLoad_Constant_ReducedSolution_Rank2(self):
104         file=os.path.join(self.filebase,"constant_reduced_solution_rank2.nc")         if loadIsConfigured():
105         d=Data(self.arg2,ReducedSolution(self.domain))            file=os.path.join(self.filebase,"constant_reduced_solution_rank2.nc")
106         self._diffDataObjects(d,file)            d=Data(self.arg2,ReducedSolution(self.domain))
107              self._diffDataObjects(d,file)
108    
109     def test_DumpAndLoad_Constant_ReducedSolution_Rank3(self):     def test_DumpAndLoad_Constant_ReducedSolution_Rank3(self):
110         file=os.path.join(self.filebase,"constant_reduced_solution_rank3.nc")         if loadIsConfigured():
111         d=Data(self.arg3,ReducedSolution(self.domain))            file=os.path.join(self.filebase,"constant_reduced_solution_rank3.nc")
112         self._diffDataObjects(d,file)            d=Data(self.arg3,ReducedSolution(self.domain))
113              self._diffDataObjects(d,file)
114    
115     def test_DumpAndLoad_Constant_ReducedSolution_Rank4(self):     def test_DumpAndLoad_Constant_ReducedSolution_Rank4(self):
116         file=os.path.join(self.filebase,"constant_reduced_solution_rank4.nc")         if loadIsConfigured():
117         d=Data(self.arg4,ReducedSolution(self.domain))            file=os.path.join(self.filebase,"constant_reduced_solution_rank4.nc")
118         self._diffDataObjects(d,file)            d=Data(self.arg4,ReducedSolution(self.domain))
119              self._diffDataObjects(d,file)
120     #===========================================================================     #===========================================================================
121     def test_DumpAndLoad_Constant_ContinuousFunction_Rank0(self):     def test_DumpAndLoad_Constant_ContinuousFunction_Rank0(self):
122         file=os.path.join(self.filebase,"constant_continuous_function_rank0.nc")         if loadIsConfigured():
123         d=Data(self.arg0,ContinuousFunction(self.domain))            file=os.path.join(self.filebase,"constant_continuous_function_rank0.nc")
124         self._diffDataObjects(d,file)            d=Data(self.arg0,ContinuousFunction(self.domain))
125              self._diffDataObjects(d,file)
126    
127     def test_DumpAndLoad_Constant_ContinuousFunction_Rank1(self):     def test_DumpAndLoad_Constant_ContinuousFunction_Rank1(self):
128         file=os.path.join(self.filebase,"constant_continuous_function_rank1.nc")         if loadIsConfigured():
129         d=Data(self.arg1,ContinuousFunction(self.domain))            file=os.path.join(self.filebase,"constant_continuous_function_rank1.nc")
130         self._diffDataObjects(d,file)            d=Data(self.arg1,ContinuousFunction(self.domain))
131              self._diffDataObjects(d,file)
132    
133     def test_DumpAndLoad_Constant_ContinuousFunction_Rank2(self):     def test_DumpAndLoad_Constant_ContinuousFunction_Rank2(self):
134         file=os.path.join(self.filebase,"constant_continuous_function_rank2.nc")         if loadIsConfigured():
135         d=Data(self.arg2,ContinuousFunction(self.domain))            file=os.path.join(self.filebase,"constant_continuous_function_rank2.nc")
136         self._diffDataObjects(d,file)            d=Data(self.arg2,ContinuousFunction(self.domain))
137              self._diffDataObjects(d,file)
138    
139     def test_DumpAndLoad_Constant_ContinuousFunction_Rank3(self):     def test_DumpAndLoad_Constant_ContinuousFunction_Rank3(self):
140         file=os.path.join(self.filebase,"constant_continuous_function_rank3.nc")         if loadIsConfigured():
141         d=Data(self.arg3,ContinuousFunction(self.domain))            file=os.path.join(self.filebase,"constant_continuous_function_rank3.nc")
142         self._diffDataObjects(d,file)            d=Data(self.arg3,ContinuousFunction(self.domain))
143              self._diffDataObjects(d,file)
144    
145     def test_DumpAndLoad_Constant_ContinuousFunction_Rank4(self):     def test_DumpAndLoad_Constant_ContinuousFunction_Rank4(self):
146         file=os.path.join(self.filebase,"constant_continuous_function_rank4.nc")         if loadIsConfigured():
147         d=Data(self.arg4,ContinuousFunction(self.domain))            file=os.path.join(self.filebase,"constant_continuous_function_rank4.nc")
148         self._diffDataObjects(d,file)            d=Data(self.arg4,ContinuousFunction(self.domain))
149              self._diffDataObjects(d,file)
150    
151     #===========================================================================     #===========================================================================
152     def test_DumpAndLoad_Constant_Function_Rank0(self):     def test_DumpAndLoad_Constant_Function_Rank0(self):
153         file=os.path.join(self.filebase,"constant_function_rank0.nc")         if loadIsConfigured():
154         d=Data(self.arg0,Function(self.domain))            file=os.path.join(self.filebase,"constant_function_rank0.nc")
155         self._diffDataObjects(d,file)            d=Data(self.arg0,Function(self.domain))
156              self._diffDataObjects(d,file)
157    
158     def test_DumpAndLoad_Constant_Function_Rank1(self):     def test_DumpAndLoad_Constant_Function_Rank1(self):
159         file=os.path.join(self.filebase,"constant_function_rank1.nc")         if loadIsConfigured():
160         d=Data(self.arg1,Function(self.domain))            file=os.path.join(self.filebase,"constant_function_rank1.nc")
161         self._diffDataObjects(d,file)            d=Data(self.arg1,Function(self.domain))
162              self._diffDataObjects(d,file)
163    
164     def test_DumpAndLoad_Constant_Function_Rank2(self):     def test_DumpAndLoad_Constant_Function_Rank2(self):
165         file=os.path.join(self.filebase,"constant_function_rank2.nc")         if loadIsConfigured():
166         d=Data(self.arg2,Function(self.domain))            file=os.path.join(self.filebase,"constant_function_rank2.nc")
167         self._diffDataObjects(d,file)            d=Data(self.arg2,Function(self.domain))
168              self._diffDataObjects(d,file)
169    
170     def test_DumpAndLoad_Constant_Function_Rank3(self):     def test_DumpAndLoad_Constant_Function_Rank3(self):
171         file=os.path.join(self.filebase,"constant_function_rank3.nc")         if loadIsConfigured():
172         d=Data(self.arg3,Function(self.domain))            file=os.path.join(self.filebase,"constant_function_rank3.nc")
173         self._diffDataObjects(d,file)            d=Data(self.arg3,Function(self.domain))
174              self._diffDataObjects(d,file)
175    
176     def test_DumpAndLoad_Constant_Function_Rank4(self):     def test_DumpAndLoad_Constant_Function_Rank4(self):
177         file=os.path.join(self.filebase,"constant_function_rank4.nc")         if loadIsConfigured():
178         d=Data(self.arg4,Function(self.domain))            file=os.path.join(self.filebase,"constant_function_rank4.nc")
179         self._diffDataObjects(d,file)            d=Data(self.arg4,Function(self.domain))
180              self._diffDataObjects(d,file)
181    
182     #===========================================================================     #===========================================================================
183     def test_DumpAndLoad_Constant_FunctionOnBoundary_Rank0(self):     def test_DumpAndLoad_Constant_FunctionOnBoundary_Rank0(self):
184         file=os.path.join(self.filebase,"constant_function_on_boundary_rank0.nc")         if loadIsConfigured():
185         d=Data(self.arg0,FunctionOnBoundary(self.domain))            file=os.path.join(self.filebase,"constant_function_on_boundary_rank0.nc")
186         self._diffDataObjects(d,file)            d=Data(self.arg0,FunctionOnBoundary(self.domain))
187              self._diffDataObjects(d,file)
188    
189     def test_DumpAndLoad_Constant_FunctionOnBoundary_Rank1(self):     def test_DumpAndLoad_Constant_FunctionOnBoundary_Rank1(self):
190         file=os.path.join(self.filebase,"constant_function_on_boundary_rank1.nc")         if loadIsConfigured():
191         d=Data(self.arg1,FunctionOnBoundary(self.domain))            file=os.path.join(self.filebase,"constant_function_on_boundary_rank1.nc")
192         self._diffDataObjects(d,file)            d=Data(self.arg1,FunctionOnBoundary(self.domain))
193              self._diffDataObjects(d,file)
194    
195     def test_DumpAndLoad_Constant_FunctionOnBoundary_Rank2(self):     def test_DumpAndLoad_Constant_FunctionOnBoundary_Rank2(self):
196         file=os.path.join(self.filebase,"constant_function_on_boundary_rank2.nc")         if loadIsConfigured():
197         d=Data(self.arg2,FunctionOnBoundary(self.domain))            file=os.path.join(self.filebase,"constant_function_on_boundary_rank2.nc")
198         self._diffDataObjects(d,file)            d=Data(self.arg2,FunctionOnBoundary(self.domain))
199              self._diffDataObjects(d,file)
200    
201     def test_DumpAndLoad_Constant_FunctionOnBoundary_Rank3(self):     def test_DumpAndLoad_Constant_FunctionOnBoundary_Rank3(self):
202         file=os.path.join(self.filebase,"constant_function_on_boundary_rank3.nc")         if loadIsConfigured():
203         d=Data(self.arg3,FunctionOnBoundary(self.domain))            file=os.path.join(self.filebase,"constant_function_on_boundary_rank3.nc")
204         self._diffDataObjects(d,file)            d=Data(self.arg3,FunctionOnBoundary(self.domain))
205              self._diffDataObjects(d,file)
206    
207     def test_DumpAndLoad_Constant_FunctionOnBoundary_Rank4(self):     def test_DumpAndLoad_Constant_FunctionOnBoundary_Rank4(self):
208         file=os.path.join(self.filebase,"constant_function_on_boundary_rank4.nc")         if loadIsConfigured():
209         d=Data(self.arg4,FunctionOnBoundary(self.domain))            file=os.path.join(self.filebase,"constant_function_on_boundary_rank4.nc")
210         self._diffDataObjects(d,file)            d=Data(self.arg4,FunctionOnBoundary(self.domain))
211              self._diffDataObjects(d,file)
212    
213     #===========================================================================     #===========================================================================
214     def test_DumpAndLoad_Expanded_Solution_Rank0(self):     def test_DumpAndLoad_Expanded_Solution_Rank0(self):
215         file=os.path.join(self.filebase,"expanded_solution_rank0.nc")         if loadIsConfigured():
216         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_solution_rank0.nc")
217         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
218         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
219         d=Data(length(Solution(self.domain).getX())*self.arg0,Solution(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
220         self._diffDataObjects(d,file)            d=Data(length(Solution(self.domain).getX())*self.arg0,Solution(self.domain))
221              self._diffDataObjects(d,file)
222    
223     def test_DumpAndLoad_Expanded_Solution_Rank1(self):     def test_DumpAndLoad_Expanded_Solution_Rank1(self):
224         file=os.path.join(self.filebase,"expanded_solution_rank1.nc")         if loadIsConfigured():
225         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_solution_rank1.nc")
226         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
227         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
228         d=Data(length(Solution(self.domain).getX())*self.arg1,Solution(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
229         self._diffDataObjects(d,file)            d=Data(length(Solution(self.domain).getX())*self.arg1,Solution(self.domain))
230              self._diffDataObjects(d,file)
231    
232     def test_DumpAndLoad_Expanded_Solution_Rank2(self):     def test_DumpAndLoad_Expanded_Solution_Rank2(self):
233         file=os.path.join(self.filebase,"expanded_solution_rank2.nc")         if loadIsConfigured():
234         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_solution_rank2.nc")
235         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
236         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
237         d=Data(length(Solution(self.domain).getX())*self.arg2,Solution(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
238         self._diffDataObjects(d,file)            d=Data(length(Solution(self.domain).getX())*self.arg2,Solution(self.domain))
239              self._diffDataObjects(d,file)
240    
241     def test_DumpAndLoad_Expanded_Solution_Rank3(self):     def test_DumpAndLoad_Expanded_Solution_Rank3(self):
242         file=os.path.join(self.filebase,"expanded_solution_rank3.nc")         if loadIsConfigured():
243         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_solution_rank3.nc")
244         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
245         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
246         d=Data(length(Solution(self.domain).getX())*self.arg3,Solution(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
247         self._diffDataObjects(d,file)            d=Data(length(Solution(self.domain).getX())*self.arg3,Solution(self.domain))
248              self._diffDataObjects(d,file)
249    
250     def test_DumpAndLoad_Expanded_Solution_Rank4(self):     def test_DumpAndLoad_Expanded_Solution_Rank4(self):
251         file=os.path.join(self.filebase,"expanded_solution_rank4.nc")         if loadIsConfigured():
252         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_solution_rank4.nc")
253         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
254         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
255         d=Data(length(Solution(self.domain).getX())*self.arg4,Solution(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
256         self._diffDataObjects(d,file)            d=Data(length(Solution(self.domain).getX())*self.arg4,Solution(self.domain))
257              self._diffDataObjects(d,file)
258     #===========================================================================     #===========================================================================
259     def test_DumpAndLoad_Expanded_ReducedSolution_Rank0(self):     def test_DumpAndLoad_Expanded_ReducedSolution_Rank0(self):
260         file=os.path.join(self.filebase,"expanded_reduced_solution_rank0.nc")         if loadIsConfigured():
261         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_reduced_solution_rank0.nc")
262         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
263         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
264         d=Data(length(ReducedSolution(self.domain).getX())*self.arg0,ReducedSolution(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
265         self._diffDataObjects(d,file)            d=Data(length(ReducedSolution(self.domain).getX())*self.arg0,ReducedSolution(self.domain))
266              self._diffDataObjects(d,file)
267    
268     def test_DumpAndLoad_Expanded_ReducedSolution_Rank1(self):     def test_DumpAndLoad_Expanded_ReducedSolution_Rank1(self):
269         file=os.path.join(self.filebase,"expanded_reduced_solution_rank1.nc")         if loadIsConfigured():
270         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_reduced_solution_rank1.nc")
271         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
272         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
273         d=Data(length(ReducedSolution(self.domain).getX())*self.arg1,ReducedSolution(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
274         self._diffDataObjects(d,file)            d=Data(length(ReducedSolution(self.domain).getX())*self.arg1,ReducedSolution(self.domain))
275              self._diffDataObjects(d,file)
276    
277     def test_DumpAndLoad_Expanded_ReducedSolution_Rank2(self):     def test_DumpAndLoad_Expanded_ReducedSolution_Rank2(self):
278         file=os.path.join(self.filebase,"expanded_reduced_solution_rank2.nc")         if loadIsConfigured():
279         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_reduced_solution_rank2.nc")
280         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
281         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
282         d=Data(length(ReducedSolution(self.domain).getX())*self.arg2,ReducedSolution(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
283         self._diffDataObjects(d,file)            d=Data(length(ReducedSolution(self.domain).getX())*self.arg2,ReducedSolution(self.domain))
284              self._diffDataObjects(d,file)
285    
286     def test_DumpAndLoad_Expanded_ReducedSolution_Rank3(self):     def test_DumpAndLoad_Expanded_ReducedSolution_Rank3(self):
287         file=os.path.join(self.filebase,"expanded_reduced_solution_rank3.nc")         if loadIsConfigured():
288         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_reduced_solution_rank3.nc")
289         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
290         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
291         d=Data(length(ReducedSolution(self.domain).getX())*self.arg3,ReducedSolution(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
292         self._diffDataObjects(d,file)            d=Data(length(ReducedSolution(self.domain).getX())*self.arg3,ReducedSolution(self.domain))
293              self._diffDataObjects(d,file)
294    
295     def test_DumpAndLoad_Expanded_ReducedSolution_Rank4(self):     def test_DumpAndLoad_Expanded_ReducedSolution_Rank4(self):
296         file=os.path.join(self.filebase,"expanded_reduced_solution_rank4.nc")         if loadIsConfigured():
297         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_reduced_solution_rank4.nc")
298         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
299         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
300         d=Data(length(ReducedSolution(self.domain).getX())*self.arg4,ReducedSolution(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
301         self._diffDataObjects(d,file)            d=Data(length(ReducedSolution(self.domain).getX())*self.arg4,ReducedSolution(self.domain))
302              self._diffDataObjects(d,file)
303     #===========================================================================     #===========================================================================
304     def test_DumpAndLoad_Expanded_ContinuousFunction_Rank0(self):     def test_DumpAndLoad_Expanded_ContinuousFunction_Rank0(self):
305         file=os.path.join(self.filebase,"expanded_continuous_function_rank0.nc")         if loadIsConfigured():
306         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_continuous_function_rank0.nc")
307         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
308         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
309         d=Data(length(ContinuousFunction(self.domain).getX())*self.arg0,ContinuousFunction(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
310         self._diffDataObjects(d,file)            d=Data(length(ContinuousFunction(self.domain).getX())*self.arg0,ContinuousFunction(self.domain))
311              self._diffDataObjects(d,file)
312    
313     def test_DumpAndLoad_Expanded_ContinuousFunction_Rank1(self):     def test_DumpAndLoad_Expanded_ContinuousFunction_Rank1(self):
314         file=os.path.join(self.filebase,"expanded_continuous_function_rank1.nc")         if loadIsConfigured():
315         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_continuous_function_rank1.nc")
316         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
317         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
318         d=Data(length(ContinuousFunction(self.domain).getX())*self.arg1,ContinuousFunction(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
319         self._diffDataObjects(d,file)            d=Data(length(ContinuousFunction(self.domain).getX())*self.arg1,ContinuousFunction(self.domain))
320              self._diffDataObjects(d,file)
321    
322     def test_DumpAndLoad_Expanded_ContinuousFunction_Rank2(self):     def test_DumpAndLoad_Expanded_ContinuousFunction_Rank2(self):
323         file=os.path.join(self.filebase,"expanded_continuous_function_rank2.nc")         if loadIsConfigured():
324         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_continuous_function_rank2.nc")
325         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
326         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
327         d=Data(length(ContinuousFunction(self.domain).getX())*self.arg2,ContinuousFunction(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
328         self._diffDataObjects(d,file)            d=Data(length(ContinuousFunction(self.domain).getX())*self.arg2,ContinuousFunction(self.domain))
329              self._diffDataObjects(d,file)
330    
331     def test_DumpAndLoad_Expanded_ContinuousFunction_Rank3(self):     def test_DumpAndLoad_Expanded_ContinuousFunction_Rank3(self):
332         file=os.path.join(self.filebase,"expanded_continuous_function_rank3.nc")         if loadIsConfigured():
333         d=Data(length(ContinuousFunction(self.domain).getX())*self.arg3,ContinuousFunction(self.domain))            file=os.path.join(self.filebase,"expanded_continuous_function_rank3.nc")
334         self._diffDataObjects(d,file)            d=Data(length(ContinuousFunction(self.domain).getX())*self.arg3,ContinuousFunction(self.domain))
335              self._diffDataObjects(d,file)
336    
337     def test_DumpAndLoad_Expanded_ContinuousFunction_Rank4(self):     def test_DumpAndLoad_Expanded_ContinuousFunction_Rank4(self):
338         file=os.path.join(self.filebase,"expanded_continuous_function_rank4.nc")         if loadIsConfigured():
339         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_continuous_function_rank4.nc")
340         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
341         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
342         d=Data(length(ContinuousFunction(self.domain).getX())*self.arg4,ContinuousFunction(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
343         self._diffDataObjects(d,file)            d=Data(length(ContinuousFunction(self.domain).getX())*self.arg4,ContinuousFunction(self.domain))
344              self._diffDataObjects(d,file)
345    
346     #===========================================================================     #===========================================================================
347     def test_DumpAndLoad_Expanded_Function_Rank0(self):     def test_DumpAndLoad_Expanded_Function_Rank0(self):
348         file=os.path.join(self.filebase,"expanded_function_rank0.nc")         if loadIsConfigured():
349         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_function_rank0.nc")
350         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
351         # elements are not in different order: self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
352         d=Data(length(Function(self.domain).getX())*self.arg0,Function(self.domain))            # elements are not in different order: self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
353         self._diffDataObjects(d,file)            d=Data(length(Function(self.domain).getX())*self.arg0,Function(self.domain))
354              self._diffDataObjects(d,file)
355    
356     def test_DumpAndLoad_Expanded_Function_Rank1(self):     def test_DumpAndLoad_Expanded_Function_Rank1(self):
357         file=os.path.join(self.filebase,"expanded_function_rank1.nc")         if loadIsConfigured():
358         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_function_rank1.nc")
359         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
360         # elements are not in different order: self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
361         d=Data(length(Function(self.domain).getX())*self.arg1,Function(self.domain))            # elements are not in different order: self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
362         self._diffDataObjects(d,file)            d=Data(length(Function(self.domain).getX())*self.arg1,Function(self.domain))
363              self._diffDataObjects(d,file)
364    
365     def test_DumpAndLoad_Expanded_Function_Rank2(self):     def test_DumpAndLoad_Expanded_Function_Rank2(self):
366         file=os.path.join(self.filebase,"expanded_function_rank2.nc")         if loadIsConfigured():
367         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_function_rank2.nc")
368         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
369         # elements are not in different order: self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
370         d=Data(length(Function(self.domain).getX())*self.arg2,Function(self.domain))            # elements are not in different order: self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
371         self._diffDataObjects(d,file)            d=Data(length(Function(self.domain).getX())*self.arg2,Function(self.domain))
372              self._diffDataObjects(d,file)
373    
374     def test_DumpAndLoad_Expanded_Function_Rank3(self):     def test_DumpAndLoad_Expanded_Function_Rank3(self):
375         file=os.path.join(self.filebase,"expanded_function_rank3.nc")         if loadIsConfigured():
376         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_function_rank3.nc")
377         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
378         # elements are not in different order: self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
379         d=Data(length(Function(self.domain).getX())*self.arg3,Function(self.domain))            # elements are not in different order: self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
380         self._diffDataObjects(d,file)            d=Data(length(Function(self.domain).getX())*self.arg3,Function(self.domain))
381              self._diffDataObjects(d,file)
382    
383     def test_DumpAndLoad_Expanded_Function_Rank4(self):     def test_DumpAndLoad_Expanded_Function_Rank4(self):
384         file=os.path.join(self.filebase,"expanded_function_rank4.nc")         if loadIsConfigured():
385         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_function_rank4.nc")
386         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
387         # elements are not in different order: self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
388         d=Data(length(Function(self.domain).getX())*self.arg4,Function(self.domain))            # elements are not in different order: self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
389         self._diffDataObjects(d,file)            d=Data(length(Function(self.domain).getX())*self.arg4,Function(self.domain))
390              self._diffDataObjects(d,file)
391    
392     #===========================================================================     #===========================================================================
393     def test_DumpAndLoad_Expanded_FunctionOnBoundary_Rank0(self):     def test_DumpAndLoad_Expanded_FunctionOnBoundary_Rank0(self):
394         file=os.path.join(self.filebase,"expanded_function_on_boundary_rank0.nc")         if loadIsConfigured():
395         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_function_on_boundary_rank0.nc")
396         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
397         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
398         d=Data(length(FunctionOnBoundary(self.domain).getX())*self.arg0,FunctionOnBoundary(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
399         self._diffDataObjects(d,file)            d=Data(length(FunctionOnBoundary(self.domain).getX())*self.arg0,FunctionOnBoundary(self.domain))
400              self._diffDataObjects(d,file)
401    
402     def test_DumpAndLoad_Expanded_FunctionOnBoundary_Rank1(self):     def test_DumpAndLoad_Expanded_FunctionOnBoundary_Rank1(self):
403         file=os.path.join(self.filebase,"expanded_function_on_boundary_rank1.nc")         if loadIsConfigured():
404         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_function_on_boundary_rank1.nc")
405         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
406         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
407         d=Data(length(FunctionOnBoundary(self.domain).getX())*self.arg1,FunctionOnBoundary(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
408         self._diffDataObjects(d,file)            d=Data(length(FunctionOnBoundary(self.domain).getX())*self.arg1,FunctionOnBoundary(self.domain))
409              self._diffDataObjects(d,file)
410    
411     def test_DumpAndLoad_Expanded_FunctionOnBoundary_Rank2(self):     def test_DumpAndLoad_Expanded_FunctionOnBoundary_Rank2(self):
412         file=os.path.join(self.filebase,"expanded_function_on_boundary_rank2.nc")         if loadIsConfigured():
413         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_function_on_boundary_rank2.nc")
414         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
415         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
416         d=Data(length(FunctionOnBoundary(self.domain).getX())*self.arg2,FunctionOnBoundary(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
417         self._diffDataObjects(d,file)            d=Data(length(FunctionOnBoundary(self.domain).getX())*self.arg2,FunctionOnBoundary(self.domain))
418              self._diffDataObjects(d,file)
419    
420     def test_DumpAndLoad_Expanded_FunctionOnBoundary_Rank3(self):     def test_DumpAndLoad_Expanded_FunctionOnBoundary_Rank3(self):
421         file=os.path.join(self.filebase,"expanded_function_on_boundary_rank3.nc")         if loadIsConfigured():
422         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_function_on_boundary_rank3.nc")
423         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
424         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
425         d=Data(length(FunctionOnBoundary(self.domain).getX())*self.arg3,FunctionOnBoundary(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
426         self._diffDataObjects(d,file)            d=Data(length(FunctionOnBoundary(self.domain).getX())*self.arg3,FunctionOnBoundary(self.domain))
427              self._diffDataObjects(d,file)
428    
429     def test_DumpAndLoad_Expanded_FunctionOnBoundary_Rank4(self):     def test_DumpAndLoad_Expanded_FunctionOnBoundary_Rank4(self):
430         file=os.path.join(self.filebase,"expanded_function_on_boundary_rank4.nc")         if loadIsConfigured():
431         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)            file=os.path.join(self.filebase,"expanded_function_on_boundary_rank4.nc")
432         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_samples)
433         self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_number_of_data_points_per_sample)
434         d=Data(length(FunctionOnBoundary(self.domain).getX())*self.arg4,FunctionOnBoundary(self.domain))            self.failUnlessRaises(RuntimeError, load, file, self.domain_with_different_sample_ordering)
435         self._diffDataObjects(d,file)            d=Data(length(FunctionOnBoundary(self.domain).getX())*self.arg4,FunctionOnBoundary(self.domain))
436              self._diffDataObjects(d,file)
437    
438     #===========================================================================     #===========================================================================
439     def test_DumpAndLoad_Tagged_Solution_Rank0(self):     def test_DumpAndLoad_Tagged_Solution_Rank0(self):
440         file=os.path.join(self.filebase,"tagged_solution_rank0.nc")         if loadIsConfigured():
441         d=Data(self.arg0,Solution(self.domain))            file=os.path.join(self.filebase,"tagged_solution_rank0.nc")
442         d.setTaggedValue(1,self.arg0*2)            d=Data(self.arg0,Solution(self.domain))
443         d.setTaggedValue(10,self.arg0*3)            d.setTaggedValue(1,self.arg0*2)
444         d.setTaggedValue(100,self.arg0*4)            d.setTaggedValue(10,self.arg0*3)
445         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg0*4)
446              self._diffDataObjects(d,file)
    #===========================================================================  
    def test_DumpAndLoad_Tagged_Solution_Rank0(self):  
        file=os.path.join(self.filebase,"tagged_solution_rank0.nc")  
        d=Data(self.arg0,Solution(self.domain))  
        d.setTaggedValue(1,self.arg0*2)  
        d.setTaggedValue(10,self.arg0*3)  
        d.setTaggedValue(100,self.arg0*4)  
        self._diffDataObjects(d,file)  
447    
448     def test_DumpAndLoad_Tagged_Solution_Rank1(self):     def test_DumpAndLoad_Tagged_Solution_Rank1(self):
449         file=os.path.join(self.filebase,"tagged_solution_rank1.nc")         if loadIsConfigured():
450         d=Data(self.arg1,Solution(self.domain))            file=os.path.join(self.filebase,"tagged_solution_rank1.nc")
451         d.setTaggedValue(1,self.arg1*2)            d=Data(self.arg1,Solution(self.domain))
452         d.setTaggedValue(10,self.arg1*3)            d.setTaggedValue(1,self.arg1*2)
453         d.setTaggedValue(100,self.arg1*4)            d.setTaggedValue(10,self.arg1*3)
454         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg1*4)
455              self._diffDataObjects(d,file)
456    
457     def test_DumpAndLoad_Tagged_Solution_Rank2(self):     def test_DumpAndLoad_Tagged_Solution_Rank2(self):
458         file=os.path.join(self.filebase,"tagged_solution_rank2.nc")         if loadIsConfigured():
459         d=Data(self.arg2,Solution(self.domain))            file=os.path.join(self.filebase,"tagged_solution_rank2.nc")
460         d.setTaggedValue(1,self.arg2*2)            d=Data(self.arg2,Solution(self.domain))
461         d.setTaggedValue(10,self.arg2*3)            d.setTaggedValue(1,self.arg2*2)
462         d.setTaggedValue(100,self.arg2*4)            d.setTaggedValue(10,self.arg2*3)
463         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg2*4)
464              self._diffDataObjects(d,file)
465    
466     def test_DumpAndLoad_Tagged_Solution_Rank3(self):     def test_DumpAndLoad_Tagged_Solution_Rank3(self):
467         file=os.path.join(self.filebase,"tagged_solution_rank3.nc")         if loadIsConfigured():
468         d=Data(self.arg3,Solution(self.domain))            file=os.path.join(self.filebase,"tagged_solution_rank3.nc")
469         d.setTaggedValue(1,self.arg3*2)            d=Data(self.arg3,Solution(self.domain))
470         d.setTaggedValue(10,self.arg3*3)            d.setTaggedValue(1,self.arg3*2)
471         d.setTaggedValue(100,self.arg3*4)            d.setTaggedValue(10,self.arg3*3)
472         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg3*4)
473              self._diffDataObjects(d,file)
474    
475     def test_DumpAndLoad_Tagged_Solution_Rank4(self):     def test_DumpAndLoad_Tagged_Solution_Rank4(self):
476         file=os.path.join(self.filebase,"tagged_solution_rank4.nc")         if loadIsConfigured():
477         d=Data(self.arg4,Solution(self.domain))            file=os.path.join(self.filebase,"tagged_solution_rank4.nc")
478         d.setTaggedValue(1,self.arg4*2)            d=Data(self.arg4,Solution(self.domain))
479         d.setTaggedValue(10,self.arg4*3)            d.setTaggedValue(1,self.arg4*2)
480         d.setTaggedValue(100,self.arg4*4)            d.setTaggedValue(10,self.arg4*3)
481         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg4*4)
482              self._diffDataObjects(d,file)
483     #===========================================================================     #===========================================================================
484     def test_DumpAndLoad_Tagged_ReducedSolution_Rank0(self):     def test_DumpAndLoad_Tagged_ReducedSolution_Rank0(self):
485         file=os.path.join(self.filebase,"tagged_reduced_solution_rank0.nc")         if loadIsConfigured():
486         d=Data(self.arg0,ReducedSolution(self.domain))            file=os.path.join(self.filebase,"tagged_reduced_solution_rank0.nc")
487         d.setTaggedValue(1,self.arg0*2)            d=Data(self.arg0,ReducedSolution(self.domain))
488         d.setTaggedValue(10,self.arg0*3)            d.setTaggedValue(1,self.arg0*2)
489         d.setTaggedValue(100,self.arg0*4)            d.setTaggedValue(10,self.arg0*3)
490         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg0*4)
491              self._diffDataObjects(d,file)
492    
493     def test_DumpAndLoad_Tagged_ReducedSolution_Rank1(self):     def test_DumpAndLoad_Tagged_ReducedSolution_Rank1(self):
494         file=os.path.join(self.filebase,"tagged_reduced_solution_rank1.nc")         if loadIsConfigured():
495         d=Data(self.arg1,ReducedSolution(self.domain))            file=os.path.join(self.filebase,"tagged_reduced_solution_rank1.nc")
496         d.setTaggedValue(1,self.arg1*2)            d=Data(self.arg1,ReducedSolution(self.domain))
497         d.setTaggedValue(10,self.arg1*3)            d.setTaggedValue(1,self.arg1*2)
498         d.setTaggedValue(100,self.arg1*4)            d.setTaggedValue(10,self.arg1*3)
499         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg1*4)
500              self._diffDataObjects(d,file)
501    
502     def test_DumpAndLoad_Tagged_ReducedSolution_Rank2(self):     def test_DumpAndLoad_Tagged_ReducedSolution_Rank2(self):
503         file=os.path.join(self.filebase,"tagged_reduced_solution_rank2.nc")         if loadIsConfigured():
504         d=Data(self.arg2,ReducedSolution(self.domain))            file=os.path.join(self.filebase,"tagged_reduced_solution_rank2.nc")
505         d.setTaggedValue(1,self.arg2*2)            d=Data(self.arg2,ReducedSolution(self.domain))
506         d.setTaggedValue(10,self.arg2*3)            d.setTaggedValue(1,self.arg2*2)
507         d.setTaggedValue(100,self.arg2*4)            d.setTaggedValue(10,self.arg2*3)
508         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg2*4)
509              self._diffDataObjects(d,file)
510    
511     def test_DumpAndLoad_Tagged_ReducedSolution_Rank3(self):     def test_DumpAndLoad_Tagged_ReducedSolution_Rank3(self):
512         file=os.path.join(self.filebase,"tagged_reduced_solution_rank3.nc")         if loadIsConfigured():
513         d=Data(self.arg3,ReducedSolution(self.domain))            file=os.path.join(self.filebase,"tagged_reduced_solution_rank3.nc")
514         d.setTaggedValue(1,self.arg3*2)            d=Data(self.arg3,ReducedSolution(self.domain))
515         d.setTaggedValue(10,self.arg3*3)            d.setTaggedValue(1,self.arg3*2)
516         d.setTaggedValue(100,self.arg3*4)            d.setTaggedValue(10,self.arg3*3)
517         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg3*4)
518              self._diffDataObjects(d,file)
519    
520     def test_DumpAndLoad_Tagged_ReducedSolution_Rank4(self):     def test_DumpAndLoad_Tagged_ReducedSolution_Rank4(self):
521         file=os.path.join(self.filebase,"tagged_reduced_solution_rank4.nc")         if loadIsConfigured():
522         d=Data(self.arg4,ReducedSolution(self.domain))            file=os.path.join(self.filebase,"tagged_reduced_solution_rank4.nc")
523         d.setTaggedValue(1,self.arg4*2)            d=Data(self.arg4,ReducedSolution(self.domain))
524         d.setTaggedValue(10,self.arg4*3)            d.setTaggedValue(1,self.arg4*2)
525         d.setTaggedValue(100,self.arg4*4)            d.setTaggedValue(10,self.arg4*3)
526         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg4*4)
527              self._diffDataObjects(d,file)
528     #===========================================================================     #===========================================================================
529     def test_DumpAndLoad_Tagged_ContinuousFunction_Rank0(self):     def test_DumpAndLoad_Tagged_ContinuousFunction_Rank0(self):
530         file=os.path.join(self.filebase,"tagged_continuous_function_rank0.nc")         if loadIsConfigured():
531         d=Data(self.arg0,ContinuousFunction(self.domain))            file=os.path.join(self.filebase,"tagged_continuous_function_rank0.nc")
532         d.setTaggedValue(1,self.arg0*2)            d=Data(self.arg0,ContinuousFunction(self.domain))
533         d.setTaggedValue(10,self.arg0*3)            d.setTaggedValue(1,self.arg0*2)
534         d.setTaggedValue(100,self.arg0*4)            d.setTaggedValue(10,self.arg0*3)
535         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg0*4)
536              self._diffDataObjects(d,file)
537    
538     def test_DumpAndLoad_Tagged_ContinuousFunction_Rank1(self):     def test_DumpAndLoad_Tagged_ContinuousFunction_Rank1(self):
539         file=os.path.join(self.filebase,"tagged_continuous_function_rank1.nc")         if loadIsConfigured():
540         d=Data(self.arg1,ContinuousFunction(self.domain))            file=os.path.join(self.filebase,"tagged_continuous_function_rank1.nc")
541         d.setTaggedValue(1,self.arg1*2)            d=Data(self.arg1,ContinuousFunction(self.domain))
542         d.setTaggedValue(10,self.arg1*3)            d.setTaggedValue(1,self.arg1*2)
543         d.setTaggedValue(100,self.arg1*4)            d.setTaggedValue(10,self.arg1*3)
544         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg1*4)
545              self._diffDataObjects(d,file)
546    
547     def test_DumpAndLoad_Tagged_ContinuousFunction_Rank2(self):     def test_DumpAndLoad_Tagged_ContinuousFunction_Rank2(self):
548         file=os.path.join(self.filebase,"tagged_continuous_function_rank2.nc")         if loadIsConfigured():
549         d=Data(self.arg2,ContinuousFunction(self.domain))            file=os.path.join(self.filebase,"tagged_continuous_function_rank2.nc")
550         d.setTaggedValue(1,self.arg2*2)            d=Data(self.arg2,ContinuousFunction(self.domain))
551         d.setTaggedValue(10,self.arg2*3)            d.setTaggedValue(1,self.arg2*2)
552         d.setTaggedValue(100,self.arg2*4)            d.setTaggedValue(10,self.arg2*3)
553         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg2*4)
554              self._diffDataObjects(d,file)
555    
556     def test_DumpAndLoad_Tagged_ContinuousFunction_Rank3(self):     def test_DumpAndLoad_Tagged_ContinuousFunction_Rank3(self):
557         file=os.path.join(self.filebase,"tagged_continuous_function_rank3.nc")         if loadIsConfigured():
558         d=Data(self.arg3,ContinuousFunction(self.domain))            file=os.path.join(self.filebase,"tagged_continuous_function_rank3.nc")
559         d.setTaggedValue(1,self.arg3*2)            d=Data(self.arg3,ContinuousFunction(self.domain))
560         d.setTaggedValue(10,self.arg3*3)            d.setTaggedValue(1,self.arg3*2)
561         d.setTaggedValue(100,self.arg3*4)            d.setTaggedValue(10,self.arg3*3)
562         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg3*4)
563              self._diffDataObjects(d,file)
564    
565     def test_DumpAndLoad_Tagged_ContinuousFunction_Rank4(self):     def test_DumpAndLoad_Tagged_ContinuousFunction_Rank4(self):
566         file=os.path.join(self.filebase,"tagged_continuous_function_rank4.nc")         if loadIsConfigured():
567         d=Data(self.arg4,ContinuousFunction(self.domain))            file=os.path.join(self.filebase,"tagged_continuous_function_rank4.nc")
568         d.setTaggedValue(1,self.arg4*2)            d=Data(self.arg4,ContinuousFunction(self.domain))
569         d.setTaggedValue(10,self.arg4*3)            d.setTaggedValue(1,self.arg4*2)
570         d.setTaggedValue(100,self.arg4*4)            d.setTaggedValue(10,self.arg4*3)
571         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg4*4)
572              self._diffDataObjects(d,file)
573    
574     #===========================================================================     #===========================================================================
575     def test_DumpAndLoad_Tagged_Function_Rank0(self):     def test_DumpAndLoad_Tagged_Function_Rank0(self):
576         file=os.path.join(self.filebase,"tagged_function_rank0.nc")         if loadIsConfigured():
577         d=Data(self.arg0,Function(self.domain))            file=os.path.join(self.filebase,"tagged_function_rank0.nc")
578         d.setTaggedValue(1,self.arg0*2)            d=Data(self.arg0,Function(self.domain))
579         d.setTaggedValue(10,self.arg0*3)            d.setTaggedValue(1,self.arg0*2)
580         d.setTaggedValue(100,self.arg0*4)            d.setTaggedValue(10,self.arg0*3)
581         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg0*4)
582              self._diffDataObjects(d,file)
583    
584     def test_DumpAndLoad_Tagged_Function_Rank1(self):     def test_DumpAndLoad_Tagged_Function_Rank1(self):
585         file=os.path.join(self.filebase,"tagged_function_rank1.nc")         if loadIsConfigured():
586         d=Data(self.arg1,Function(self.domain))            file=os.path.join(self.filebase,"tagged_function_rank1.nc")
587         d.setTaggedValue(1,self.arg1*2)            d=Data(self.arg1,Function(self.domain))
588         d.setTaggedValue(10,self.arg1*3)            d.setTaggedValue(1,self.arg1*2)
589         d.setTaggedValue(100,self.arg1*4)            d.setTaggedValue(10,self.arg1*3)
590         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg1*4)
591              self._diffDataObjects(d,file)
592    
593     def test_DumpAndLoad_Tagged_Function_Rank2(self):     def test_DumpAndLoad_Tagged_Function_Rank2(self):
594         file=os.path.join(self.filebase,"tagged_function_rank2.nc")         if loadIsConfigured():
595         d=Data(self.arg2,Function(self.domain))            file=os.path.join(self.filebase,"tagged_function_rank2.nc")
596         d.setTaggedValue(1,self.arg2*2)            d=Data(self.arg2,Function(self.domain))
597         d.setTaggedValue(10,self.arg2*3)            d.setTaggedValue(1,self.arg2*2)
598         d.setTaggedValue(100,self.arg2*4)            d.setTaggedValue(10,self.arg2*3)
599         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg2*4)
600              self._diffDataObjects(d,file)
601    
602     def test_DumpAndLoad_Tagged_Function_Rank3(self):     def test_DumpAndLoad_Tagged_Function_Rank3(self):
603         file=os.path.join(self.filebase,"tagged_function_rank3.nc")         if loadIsConfigured():
604         d=Data(self.arg3,Function(self.domain))            file=os.path.join(self.filebase,"tagged_function_rank3.nc")
605         d.setTaggedValue(1,self.arg3*2)            d=Data(self.arg3,Function(self.domain))
606         d.setTaggedValue(10,self.arg3*3)            d.setTaggedValue(1,self.arg3*2)
607         d.setTaggedValue(100,self.arg3*4)            d.setTaggedValue(10,self.arg3*3)
608         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg3*4)
609              self._diffDataObjects(d,file)
610    
611     def test_DumpAndLoad_Tagged_Function_Rank4(self):     def test_DumpAndLoad_Tagged_Function_Rank4(self):
612         file=os.path.join(self.filebase,"tagged_function_rank4.nc")         if loadIsConfigured():
613         d=Data(self.arg4,Function(self.domain))            file=os.path.join(self.filebase,"tagged_function_rank4.nc")
614         d.setTaggedValue(1,self.arg4*2)            d=Data(self.arg4,Function(self.domain))
615         d.setTaggedValue(10,self.arg4*3)            d.setTaggedValue(1,self.arg4*2)
616         d.setTaggedValue(100,self.arg4*4)            d.setTaggedValue(10,self.arg4*3)
617         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg4*4)
618              self._diffDataObjects(d,file)
619    
620     #===========================================================================     #===========================================================================
621     def test_DumpAndLoad_Tagged_FunctionOnBoundary_Rank0(self):     def test_DumpAndLoad_Tagged_FunctionOnBoundary_Rank0(self):
622         file=os.path.join(self.filebase,"tagged_function_on_boundary_rank0.nc")         if loadIsConfigured():
623         d=Data(self.arg0,FunctionOnBoundary(self.domain))            file=os.path.join(self.filebase,"tagged_function_on_boundary_rank0.nc")
624         d.setTaggedValue(1,self.arg0*2)            d=Data(self.arg0,FunctionOnBoundary(self.domain))
625         d.setTaggedValue(10,self.arg0*3)            d.setTaggedValue(1,self.arg0*2)
626         d.setTaggedValue(100,self.arg0*4)            d.setTaggedValue(10,self.arg0*3)
627         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg0*4)
628              self._diffDataObjects(d,file)
629    
630     def test_DumpAndLoad_Tagged_FunctionOnBoundary_Rank1(self):     def test_DumpAndLoad_Tagged_FunctionOnBoundary_Rank1(self):
631         file=os.path.join(self.filebase,"tagged_function_on_boundary_rank1.nc")         if loadIsConfigured():
632         d=Data(self.arg1,FunctionOnBoundary(self.domain))            file=os.path.join(self.filebase,"tagged_function_on_boundary_rank1.nc")
633         d.setTaggedValue(1,self.arg1*2)            d=Data(self.arg1,FunctionOnBoundary(self.domain))
634         d.setTaggedValue(10,self.arg1*3)            d.setTaggedValue(1,self.arg1*2)
635         d.setTaggedValue(100,self.arg1*4)            d.setTaggedValue(10,self.arg1*3)
636         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg1*4)
637              self._diffDataObjects(d,file)
638    
639     def test_DumpAndLoad_Tagged_FunctionOnBoundary_Rank2(self):     def test_DumpAndLoad_Tagged_FunctionOnBoundary_Rank2(self):
640         file=os.path.join(self.filebase,"tagged_function_on_boundary_rank2.nc")         if loadIsConfigured():
641         d=Data(self.arg2,FunctionOnBoundary(self.domain))            file=os.path.join(self.filebase,"tagged_function_on_boundary_rank2.nc")
642         d.setTaggedValue(1,self.arg2*2)            d=Data(self.arg2,FunctionOnBoundary(self.domain))
643         d.setTaggedValue(10,self.arg2*3)            d.setTaggedValue(1,self.arg2*2)
644         d.setTaggedValue(100,self.arg2*4)            d.setTaggedValue(10,self.arg2*3)
645         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg2*4)
646              self._diffDataObjects(d,file)
647    
648     def test_DumpAndLoad_Tagged_FunctionOnBoundary_Rank3(self):     def test_DumpAndLoad_Tagged_FunctionOnBoundary_Rank3(self):
649         file=os.path.join(self.filebase,"tagged_function_on_boundary_rank3.nc")         if loadIsConfigured():
650         d=Data(self.arg3,FunctionOnBoundary(self.domain))            file=os.path.join(self.filebase,"tagged_function_on_boundary_rank3.nc")
651         d.setTaggedValue(1,self.arg3*2)            d=Data(self.arg3,FunctionOnBoundary(self.domain))
652         d.setTaggedValue(10,self.arg3*3)            d.setTaggedValue(1,self.arg3*2)
653         d.setTaggedValue(100,self.arg3*4)            d.setTaggedValue(10,self.arg3*3)
654         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg3*4)
655              self._diffDataObjects(d,file)
656    
657     def test_DumpAndLoad_Tagged_FunctionOnBoundary_Rank4(self):     def test_DumpAndLoad_Tagged_FunctionOnBoundary_Rank4(self):
658         file=os.path.join(self.filebase,"tagged_function_on_boundary_rank4.nc")         if loadIsConfigured():
659         d=Data(self.arg4,FunctionOnBoundary(self.domain))            file=os.path.join(self.filebase,"tagged_function_on_boundary_rank4.nc")
660         d.setTaggedValue(1,self.arg4*2)            d=Data(self.arg4,FunctionOnBoundary(self.domain))
661         d.setTaggedValue(10,self.arg4*3)            d.setTaggedValue(1,self.arg4*2)
662         d.setTaggedValue(100,self.arg4*4)            d.setTaggedValue(10,self.arg4*3)
663         self._diffDataObjects(d,file)            d.setTaggedValue(100,self.arg4*4)
664              self._diffDataObjects(d,file)
665    

Legend:
Removed from v.1022  
changed lines
  Added in v.1023

  ViewVC Help
Powered by ViewVC 1.1.26