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

Diff of /trunk/doc/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3463 by caltinay, Mon Feb 7 02:09:57 2011 UTC revision 3595 by caltinay, Thu Sep 15 05:56:47 2011 UTC
# Line 38  else: Line 38  else:
38  example_files_allow_mpi = []  example_files_allow_mpi = []
39  example_files_no_mpi = []  example_files_no_mpi = []
40  example_deps = []  example_deps = []
41    skipped_tests = []
42    
43  def sortOutExample(name, needsGMSH=False, needsMPL=False, needsMagicMPL=False, needsGD=False, allowsMPI=True):  def sortOutExample(name, needsGMSH=False, needsMPL=False, needsMagicMPL=False, needsGD=False, allowsMPI=True):
44      if needsMagicMPL: needsMPL=True      if needsMagicMPL: needsMPL=True
45      if needsGD: needsMPL=True      if needsGD: needsMPL=True
46      if needsGMSH: allowsMPI=False      if needsGMSH: allowsMPI=False
47    
48        if needsGMSH and not env['gmsh']:
49            skipped_tests.append(name)
50            return
51    
52      if (not needsGMSH or env['gmsh']) and (not needsMPL or haveMPL) and (not needsMagicMPL or mplversion>=mplmagicversion) and (not needsGD or haveGD):      if (not needsGMSH or env['gmsh']) and (not needsMPL or haveMPL) and (not needsMagicMPL or mplversion>=mplmagicversion) and (not needsGD or haveGD):
53          if allowsMPI:          if allowsMPI:
54              example_files_allow_mpi.append(name)              example_files_allow_mpi.append(name)
# Line 109  sortOutExample('cookbook/example10m.py', Line 114  sortOutExample('cookbook/example10m.py',
114  sortOutExample('cookbook/example11a.py', needsMagicMPL=True, allowsMPI=False)  sortOutExample('cookbook/example11a.py', needsMagicMPL=True, allowsMPI=False)
115  sortOutExample('cookbook/example11b.py', needsMagicMPL=True, allowsMPI=False)  sortOutExample('cookbook/example11b.py', needsMagicMPL=True, allowsMPI=False)
116    
117    if len(skipped_tests)>0:
118        print("gmsh not available. Skipping tests %s."%' '.join(skipped_tests))
119    
120  example_files = example_files_allow_mpi + example_files_no_mpi + example_deps  example_files = example_files_allow_mpi + example_files_no_mpi + example_deps
121    

Legend:
Removed from v.3463  
changed lines
  Added in v.3595

  ViewVC Help
Powered by ViewVC 1.1.26