/[escript]/trunk/doc/SConscript
ViewVC logotype

Annotation of /trunk/doc/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2648 - (hide annotations)
Mon Sep 7 00:06:15 2009 UTC (9 years, 5 months ago) by jfenwick
File size: 3657 byte(s)
ecording some changes related to Anthony's cookbook.
These tests still do not run.

test_heatref.py is the current problem.
Current problems include:
undefined symbols
a dependence on X somehow.

I've already addressed the matplotlib X thing somewhere else.
Find and apply.


1 ksteube 1811
2     ########################################################
3 cochrane 369 #
4 jfenwick 2548 # Copyright (c) 2003-2009 by University of Queensland
5 ksteube 1811 # Earth Systems Science Computational Center (ESSCC)
6     # http://www.uq.edu.au/esscc
7 elspeth 643 #
8 ksteube 1811 # Primary Business: Queensland, Australia
9     # Licensed under the Open Software License version 3.0
10     # http://www.opensource.org/licenses/osl-3.0.php
11 ksteube 1705 #
12 ksteube 1811 ########################################################
13 cochrane 369
14 ksteube 1811
15 gross 707 import os
16     Import('*')
17 jfenwick 2648
18     example_deps = ['cookbook/cblib.py']
19    
20 gross 2502 #
21     # these are the release examples in example sub directory:
22     #
23     example_files_allow_mpi = [
24     'geotutorial/steadystate_variablek.py',
25     'geotutorial/steadystate.py',
26     'geotutorial/forward_euler.py',
27     'geotutorial/myfirstscript.py',
28     'geotutorial/backward_euler.py',
29     'usersguide/lit_driven_cavity.py',
30     'usersguide/mount.py',
31     'usersguide/heatedblock.py',
32     'usersguide/helmholtz.py',
33     'usersguide/fluid.py',
34     'usersguide/poisson.py',
35     'usersguide/diffusion.py',
36 jfenwick 2578 'usersguide/poisson_vtk.py'
37 gross 2502 ]
38 cochrane 369
39 gross 2574 example_files_no_mpi = [
40     ]
41 gross 2502
42 jfenwick 2581 #Now we add tests which depend on matplotlib
43 jfenwick 2578 try:
44 jfenwick 2648 from matplotlib.mlab import griddata
45 jfenwick 2578 example_files_no_mpi.append('usersguide/poisson_matplotlib.py')
46 jfenwick 2581 example_files_allow_mpi.append('usersguide/wave.py')
47 jfenwick 2648 # example_deps.append('cookbook/heatrefraction_mesher001.py')
48     # example_deps.append('cookbook/heatrefraction_mesher002.py')
49     # example_deps.append('cookbook/heatrefraction001.py')
50     # example_deps.append('cookbook/heatrefraction002.py')
51     # example_files_no_mpi.append('cookbook/onedheatdiff001.py')
52     # example_files_no_mpi.append('cookbook/onedheatdiff002.py')
53     # example_files_no_mpi.append('cookbook/twodheatdiff.py')
54     import os
55     if os.system("gmsh -version")/256 ==0: #gmsh found on this system
56     # example_files_no_mpi.append('cookbook/test_heatref.py')
57     pass
58     else:
59     print "gmsh not found skipping examples"
60 jfenwick 2578 except ImportError:
61     print "matplotlib not found - skipping example"
62    
63 jfenwick 2648 example_files= example_files_allow_mpi + example_files_no_mpi + example_deps
64 gross 2502
65 jfenwick 2503
66     ex2=[ os.path.join("examples",str(x)) for x in example_files]
67    
68 gross 2502 #==========================================================================================
69    
70 ksteube 1705 local_env = clone_env(env)
71 jfenwick 2402 src_dir = local_env.Dir('.').srcnode().abspath
72 gross 2502 release_dir=local_env.Dir('#/release/doc/').srcnode().abspath
73 ksteube 1215
74 jfenwick 2402 tmp1 = env.Command("#/release/doc/escript_examples.zip", None,
75 jfenwick 2503 "zip "+os.path.join(release_dir,"escript_examples.zip ") +" ".join(ex2),chdir=src_dir)
76 ksteube 2091 env.Alias('examples_zipfile', tmp1)
77 ksteube 1215
78 ksteube 1705
79 jfenwick 2405 #Need to use explicit tar rather than the tar builder due to problems getting it not to put
80     #unwanted path components in the tar file
81     #--transform on tar is not supported on savanna
82 jfenwick 2503 tmp2 = env.Command("#/release/doc/escript_examples.tar.gz", None, "tar -czf "+os.path.join(release_dir,"escript_examples.tar.gz ")+" ".join(ex2), chdir=src_dir)
83 jfenwick 2405 env.Alias('examples_tarfile',tmp2)
84    
85     #env=Environment(TARFLAGS = "-c -z",chdir=src_dir)
86     #if 'Tar' in dir(env): env.Tar('#/release/doc/escript_examples.tar.gz', example_files,chdir=src_dir)
87     #env.Alias('examples_tarfile', '#release/doc/escript_examples.tar.gz')
88    
89 gross 707 local_env.SConscript(dirs = ['#/doc/user'], build_dir='#/build/$PLATFORM/doc/user', duplicate=1)
90 elspeth 712 local_env.SConscript(dirs = ['#/doc/epydoc'], build_dir='#/build/$PLATFORM/doc/epydoc', duplicate=1)
91 ksteube 1215 local_env.SConscript(dirs = ['#/doc/doxygen'], build_dir='#/build/$PLATFORM/doc/doxygen', duplicate=1)
92 jfenwick 2287 local_env.SConscript(dirs = ['#/doc/install'], build_dir='#/build/$PLATFORM/doc/install', duplicate=1)
93 jfenwick 2648 local_env.SConscript(dirs = ['#/doc/examples'], build_dir='#/build/$PLATFORM/doc/examples', duplicate=1, exports=[ 'example_files_allow_mpi' , 'example_files_no_mpi', 'example_deps' ])
94 ksteube 1705
95 jfenwick 2402

  ViewVC Help
Powered by ViewVC 1.1.26