/[escript]/trunk/finley/test/python/dmp.py
ViewVC logotype

Diff of /trunk/finley/test/python/dmp.py

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

revision 950 by gross, Tue Feb 6 07:01:11 2007 UTC revision 965 by gross, Tue Feb 13 05:38:45 2007 UTC
# Line 166  class Test_Dump(unittest.TestCase): Line 166  class Test_Dump(unittest.TestCase):
166         d=Data(self.arg4,self.function_on_boundary)         d=Data(self.arg4,self.function_on_boundary)
167         self._diffDataObjects(d,file)         self._diffDataObjects(d,file)
168    
169       #===========================================================================
170       def test_DumpAndLoad_Expanded_Solution_Rank0(self):
171           file="expanded_solution_rank0.nc"
172           d=Data(length(self.solution.getX())*self.arg0,self.solution)
173           self._diffDataObjects(d,file)
174    
175       def test_DumpAndLoad_Expanded_Solution_Rank1(self):
176           file="expanded_solution_rank1.nc"
177           d=Data(length(self.solution.getX())*self.arg1,self.solution)
178           self._diffDataObjects(d,file)
179    
180       def test_DumpAndLoad_Expanded_Solution_Rank2(self):
181           file="expanded_solution_rank2.nc"
182           d=Data(length(self.solution.getX())*self.arg2,self.solution)
183           self._diffDataObjects(d,file)
184    
185       def test_DumpAndLoad_Expanded_Solution_Rank3(self):
186           file="expanded_solution_rank3.nc"
187           d=Data(length(self.solution.getX())*self.arg3,self.solution)
188           self._diffDataObjects(d,file)
189    
190       def test_DumpAndLoad_Expanded_Solution_Rank4(self):
191           file="expanded_solution_rank4.nc"
192           d=Data(length(self.solution.getX())*self.arg4,self.solution)
193           self._diffDataObjects(d,file)
194       #===========================================================================
195       def test_DumpAndLoad_Expanded_ReducedSolution_Rank0(self):
196           file="expanded_reduced_solution_rank0.nc"
197           d=Data(length(self.reduced_solution.getX())*self.arg0,self.reduced_solution)
198           self._diffDataObjects(d,file)
199    
200       def test_DumpAndLoad_Expanded_ReducedSolution_Rank1(self):
201           file="expanded_reduced_solution_rank1.nc"
202           d=Data(length(self.reduced_solution.getX())*self.arg1,self.reduced_solution)
203           self._diffDataObjects(d,file)
204    
205       def test_DumpAndLoad_Expanded_ReducedSolution_Rank2(self):
206           file="expanded_reduced_solution_rank2.nc"
207           d=Data(length(self.reduced_solution.getX())*self.arg2,self.reduced_solution)
208           self._diffDataObjects(d,file)
209    
210       def test_DumpAndLoad_Expanded_ReducedSolution_Rank3(self):
211           file="expanded_reduced_solution_rank3.nc"
212           d=Data(length(self.reduced_solution.getX())*self.arg3,self.reduced_solution)
213           self._diffDataObjects(d,file)
214    
215       def test_DumpAndLoad_Expanded_ReducedSolution_Rank4(self):
216           file="expanded_reduced_solution_rank4.nc"
217           d=Data(length(self.reduced_solution.getX())*self.arg4,self.reduced_solution)
218           self._diffDataObjects(d,file)
219       #===========================================================================
220       def test_DumpAndLoad_Expanded_ContinuousFunction_Rank0(self):
221           file="expanded_continuous_function_rank0.nc"
222           d=Data(length(self.continuous_function.getX())*self.arg0,self.continuous_function)
223           self._diffDataObjects(d,file)
224    
225       def test_DumpAndLoad_Expanded_ContinuousFunction_Rank1(self):
226           file="expanded_continuous_function_rank1.nc"
227           d=Data(length(self.continuous_function.getX())*self.arg1,self.continuous_function)
228           self._diffDataObjects(d,file)
229    
230       def test_DumpAndLoad_Expanded_ContinuousFunction_Rank2(self):
231           file="expanded_continuous_function_rank2.nc"
232           d=Data(length(self.continuous_function.getX())*self.arg2,self.continuous_function)
233           self._diffDataObjects(d,file)
234    
235       def test_DumpAndLoad_Expanded_ContinuousFunction_Rank3(self):
236           file="expanded_continuous_function_rank3.nc"
237           d=Data(length(self.continuous_function.getX())*self.arg3,self.continuous_function)
238           self._diffDataObjects(d,file)
239    
240       def test_DumpAndLoad_Expanded_ContinuousFunction_Rank4(self):
241           file="expanded_continuous_function_rank4.nc"
242           d=Data(length(self.continuous_function.getX())*self.arg4,self.continuous_function)
243           self._diffDataObjects(d,file)
244    
245       #===========================================================================
246       def test_DumpAndLoad_Expanded_Function_Rank0(self):
247           file="expanded_function_rank0.nc"
248           d=Data(length(self.function.getX())*self.arg0,self.function)
249           self._diffDataObjects(d,file)
250    
251       def test_DumpAndLoad_Expanded_Function_Rank1(self):
252           file="expanded_function_rank1.nc"
253           d=Data(length(self.function.getX())*self.arg1,self.function)
254           self._diffDataObjects(d,file)
255    
256       def test_DumpAndLoad_Expanded_Function_Rank2(self):
257           file="expanded_function_rank2.nc"
258           d=Data(length(self.function.getX())*self.arg2,self.function)
259           self._diffDataObjects(d,file)
260    
261       def test_DumpAndLoad_Expanded_Function_Rank3(self):
262           file="expanded_function_rank3.nc"
263           d=Data(length(self.function.getX())*self.arg3,self.function)
264           self._diffDataObjects(d,file)
265    
266       def test_DumpAndLoad_Expanded_Function_Rank4(self):
267           file="expanded_function_rank4.nc"
268           d=Data(length(self.function.getX())*self.arg4,self.function)
269           self._diffDataObjects(d,file)
270    
271       #===========================================================================
272       def test_DumpAndLoad_Expanded_FunctionOnBoundary_Rank0(self):
273           file="expanded_function_on_boundary_rank0.nc"
274           d=Data(length(self.function_on_boundary.getX())*self.arg0,self.function_on_boundary)
275           self._diffDataObjects(d,file)
276    
277       def test_DumpAndLoad_Expanded_FunctionOnBoundary_Rank1(self):
278           file="expanded_function_on_boundary_rank1.nc"
279           d=Data(length(self.function_on_boundary.getX())*self.arg1,self.function_on_boundary)
280           self._diffDataObjects(d,file)
281    
282       def test_DumpAndLoad_Expanded_FunctionOnBoundary_Rank2(self):
283           file="expanded_function_on_boundary_rank2.nc"
284           d=Data(length(self.function_on_boundary.getX())*self.arg2,self.function_on_boundary)
285           self._diffDataObjects(d,file)
286    
287       def test_DumpAndLoad_Expanded_FunctionOnBoundary_Rank3(self):
288           file="expanded_function_on_boundary_rank3.nc"
289           d=Data(length(self.function_on_boundary.getX())*self.arg3,self.function_on_boundary)
290           self._diffDataObjects(d,file)
291    
292       def test_DumpAndLoad_Expanded_FunctionOnBoundary_Rank4(self):
293           file="expanded_function_on_boundary_rank4.nc"
294           d=Data(length(self.function_on_boundary.getX())*self.arg4,self.function_on_boundary)
295           self._diffDataObjects(d,file)
296    
297    
298    class Test_DumpOnFinley(Test_Dump):
299       def setUp(self):
300           self.domain =Rectangle(NE,NE+1,2)
301           self.solution = Solution(self.domain)
302           self.reduced_solution = ReducedSolution(self.domain)
303           self.continuous_function = ContinuousFunction(self.domain)
304           self.function = Function(self.domain)
305           self.function_on_boundary = FunctionOnBoundary(self.domain)
306    
307    
308  class Test_DumpOnFinley(Test_Dump):  class Test_DumpOnFinley(Test_Dump):
309     def setUp(self):     def setUp(self):

Legend:
Removed from v.950  
changed lines
  Added in v.965

  ViewVC Help
Powered by ViewVC 1.1.26