/[escript]/trunk/ripley/src/SConscript
ViewVC logotype

Diff of /trunk/ripley/src/SConscript

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

revision 5147 by caltinay, Thu Aug 14 05:15:31 2014 UTC revision 5148 by caltinay, Mon Sep 15 01:25:23 2014 UTC
# Line 30  sources = """ Line 30  sources = """
30      blocktools.cpp      blocktools.cpp
31      blocktools2.cpp      blocktools2.cpp
32      Brick.cpp      Brick.cpp
33        DefaultAssembler2D.cpp
34        DefaultAssembler3D.cpp
35        domainhelpers.cpp
36        LameAssembler2D.cpp
37        LameAssembler3D.cpp
38      Rectangle.cpp      Rectangle.cpp
39      RipleyDomain.cpp      RipleyDomain.cpp
40      RipleyException.cpp      RipleyException.cpp
     DefaultAssembler2D.cpp  
     DefaultAssembler3D.cpp  
41      WaveAssembler2D.cpp      WaveAssembler2D.cpp
42      WaveAssembler3D.cpp      WaveAssembler3D.cpp
     LameAssembler2D.cpp  
     LameAssembler3D.cpp  
     domainhelpers.cpp  
43  """.split()  """.split()
44    
45  headers = """  headers = """
46      AbstractAssembler.h      AbstractAssembler.h
47      blocktools.h      blocktools.h
48      Brick.h      Brick.h
49        DefaultAssembler2D.h
50        DefaultAssembler3D.h
51        domainhelpers.h
52        LameAssembler2D.h
53        LameAssembler3D.h
54      Rectangle.h      Rectangle.h
55      Ripley.h      Ripley.h
56      RipleyDomain.h      RipleyDomain.h
57      RipleyException.h      RipleyException.h
58        RipleySystemMatrix.h
59      system_dep.h      system_dep.h
     DefaultAssembler2D.h  
     DefaultAssembler3D.h  
60      WaveAssembler2D.h      WaveAssembler2D.h
61      WaveAssembler3D.h      WaveAssembler3D.h
     LameAssembler2D.h  
     LameAssembler3D.h  
     domainhelpers.h  
62  """.split()  """.split()
63    
64  local_env.Prepend(LIBS = ['pasowrap', 'escript', 'paso', 'esysUtils'])  local_env.Prepend(LIBS = ['pasowrap', 'escript', 'paso', 'esysUtils'])
# Line 65  if local_env['silo']: Line 66  if local_env['silo']:
66      local_env.Append(CPPDEFINES = ['USE_SILO'])      local_env.Append(CPPDEFINES = ['USE_SILO'])
67      local_env.AppendUnique(LIBS = env['silo_libs'])      local_env.AppendUnique(LIBS = env['silo_libs'])
68    
69    if env['openmp']:
70        local_env.Append(CPPDEFINES = ['THRUST_HOST_SYSTEM=THRUST_HOST_SYSTEM_OMP'])
71    
72    if local_env['cuda']:
73        sources.append('RipleySystemMatrix.cu')
74        local_env['NVCCFLAGS'] += ' -w'
75        local_env['SHNVCCFLAGS']  += ' -w'
76        local_env.Append(CPPDEFINES = ['USE_CUDA', 'THRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_CUDA'])
77        local_env.Append(LIBS = ['cudart'])
78    else:
79        local_env.Append(CPPDEFINES = ['THRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_CPP'])
80        sources.append('RipleySystemMatrix.cpp')
81    
82  if IS_WINDOWS:  if IS_WINDOWS:
83      local_env.Append(CPPDEFINES = ['RIPLEY_EXPORTS'])      local_env.Append(CPPDEFINES = ['RIPLEY_EXPORTS'])
84    

Legend:
Removed from v.5147  
changed lines
  Added in v.5148

  ViewVC Help
Powered by ViewVC 1.1.26