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

Contents of /trunk/esys2/escript/test/python/s2.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 154 - (show annotations)
Mon Nov 7 05:51:17 2005 UTC (14 years ago) by jgs
File MIME type: text/x-python
File size: 389 byte(s)
Merge of development branch dev-02 back to main trunk on 2005-11-07

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,2.0)
14
15 u2=Scalar(1.0,Function(mydomain))
16 u2.setTaggedValue(1,3.0)
17
18
19 print "u1:"
20 print u1
21
22 print "u2:"
23 print u2
24
25 v=u1+u2
26 print "v=u1+u2:"
27 print v
28
29 print "Lsup(v):"
30 print Lsup(v)

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26