Parent Directory
|
Revision Log
extend these tests to test DataTagged objecrs also
1 | 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 | u1.setTaggedValue(1,1.0) |
14 | u1.setTaggedValue(2,2.0) |
15 | |
16 | u2=Scalar(1.0,Function(mydomain)) |
17 | u2.setTaggedValue(2,4.0) |
18 | u2.setTaggedValue(3,3.0) |
19 | |
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) |
Name | Value |
---|---|
svn:eol-style | native |
svn:keywords | Author Date Id Revision |
ViewVC Help | |
Powered by ViewVC 1.1.26 |