/[escript]/trunk-mpi-branch/pythonMPI/src/SConscript
ViewVC logotype

Annotation of /trunk-mpi-branch/pythonMPI/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1016 - (hide annotations)
Thu Mar 8 06:31:28 2007 UTC (14 years, 1 month ago) by gross
File size: 898 byte(s)
MPI version compiles and starts to run now. 
Important:

   * the mpi library needs to be shared.
   * the path needs to be added to LD_LIBRARY path.

The program stucks in the matrix assemblage.


1 bcumming 759 import os
2     Import('*')
3    
4     local_env=env.Copy()
5    
6     if useMPI:
7     # get the relevant file names:
8     src_dir = local_env.Dir('.').srcnode().abspath
9     filenames = [ x for x in os.listdir(src_dir) if os.path.splitext(x)[1] in [".h", ".c", ".cpp"] ]
10    
11     sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
12     headers = [x for x in filenames if os.path.splitext(x)[1] in ['.h']]
13    
14 gross 1016 local_env.Append(LIBS = [ "paso" ] + mpi_libs + python_libs + sys_libs)
15 bcumming 759 lib_name = 'pythonMPI'
16    
17     ## changed
18     lib = local_env.Program(lib_name, sources)
19    
20     include_path = Dir(lib_name, incinstall)
21     ## changed
22     #solvers_include_path = Dir('Solvers', include_path)
23    
24     local_env.Install(include_path, headers )
25     local_env.Install(libinstall, lib)
26    
27     release_srcfiles = [ env.File(x) for x in filenames ] + [env.File("SConscript"), ]
28     env.Zip(src_zipfile, release_srcfiles)
29     env.Tar(src_tarfile, release_srcfiles)

  ViewVC Help
Powered by ViewVC 1.1.26