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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5798 - (hide annotations)
Tue Sep 22 04:22:12 2015 UTC (5 years, 10 months ago) by jfenwick
Original Path: trunk/scripts/release_sanity.py
File MIME type: text/x-python
File size: 773 byte(s)
Added a sanity check for builds as requested by Anton.
This will just check to see if the libraries built.

Feel free to add other checks to scripts/release_sanity  BUT they are not
to create files which pollute the source directory.


1 jfenwick 5798
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