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

Annotation of /trunk/escript/test/python/s2.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 570 - (hide annotations)
Tue Feb 28 06:51:25 2006 UTC (16 years, 9 months ago) by jgs
File MIME type: text/x-python
File size: 439 byte(s)
extend these tests to test DataTagged objecrs also
1 jgs 154 import sys
2     import os
3     import unittest
4    
5     from esys.escript import *
6     from esys.escript.linearPDEs import *
7    
8     from esys import bruce
9    
10     mydomain=bruce.Rectangle(5,5)
11    
12     u1=Scalar(1.0,Function(mydomain))
13 jgs 570 u1.setTaggedValue(1,1.0)
14     u1.setTaggedValue(2,2.0)
15 jgs 154
16     u2=Scalar(1.0,Function(mydomain))
17 jgs 570 u2.setTaggedValue(2,4.0)
18     u2.setTaggedValue(3,3.0)
19 jgs 154
20    
21     print "u1:"
22     print u1
23    
24     print "u2:"
25     print u2
26    
27     v=u1+u2
28     print "v=u1+u2:"
29     print v
30    
31     print "Lsup(v):"
32     print Lsup(v)

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26