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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 614 - (show annotations)
Wed Mar 22 01:37:07 2006 UTC (13 years, 3 months ago) by elspeth
File MIME type: text/x-python
File size: 729 byte(s)
Corrected spelling of 'license' in url so that the link actually points to the license.

1
2 __copyright__=""" Copyright (c) 2006 by ACcESS MNRF
3 http://www.access.edu.au
4 Primary Business: Queensland, Australia"""
5 __license__="""Licensed under the Open Software License version 3.0
6 http://www.opensource.org/licenses/osl-3.0.php"""
7
8 import sys
9 import os
10 import unittest
11
12 from esys.escript import *
13 from esys.escript.linearPDEs import *
14
15 from esys import bruce
16
17 mydomain=bruce.Rectangle(5,5)
18
19 u1=Scalar(1.0,Function(mydomain))
20 u1.setTaggedValue(1,1.0)
21 u1.setTaggedValue(2,2.0)
22
23 u2=Scalar(1.0,Function(mydomain))
24 u2.setTaggedValue(2,4.0)
25 u2.setTaggedValue(3,3.0)
26
27
28 print "u1:"
29 print u1
30
31 print "u2:"
32 print u2
33
34 v=u1+u2
35 print "v=u1+u2:"
36 print v
37
38 print "Lsup(v):"
39 print Lsup(v)

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26