/[escript]/release/5.1/scripts/release_sanity.py
ViewVC logotype

Contents of /release/5.1/scripts/release_sanity.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6593 - (show annotations)
Mon Jun 5 03:58:43 2017 UTC (4 years ago) by jfenwick
File MIME type: text/x-python
File size: 773 byte(s)
Branching for release 5.1

1
2 # Very basic sanity checks following a build
3 # It is important that this script does not create any files unless
4 # it is _certain_ they are removed when finished or failed.
5 # We do not want the source directory polluted by actions here
6
7
8 from esys.escript import *
9 from esys.escript.linearPDEs import Poisson
10 import esys.ripley as ripley
11 import esys.finley as finley
12 import esys.speckley as speckley
13 from esys.weipa import saveVTK
14
15 mydomain = finley.Rectangle(l0=1.,l1=1.,n0=40, n1=20)
16 # define characteristic function of Gamma^D
17 x = mydomain.getX()
18 gammaD = whereZero(x[0])+whereZero(x[1])
19 # define PDE and get its solution u
20 mypde = Poisson(domain=mydomain)
21 mypde.setValue(f=1,q=gammaD)
22 u = mypde.getSolution()
23 # write u to an external file
24 #saveVTK("u.vtu",sol=u)
25
26
27

  ViewVC Help
Powered by ViewVC 1.1.26