2
# Package information, generated from cs_package.py.in by make.
3
#============================================================================
5
# This file is part of the Code_Saturne Kernel, element of the
6
# Code_Saturne CFD tool.
8
# Copyright (C) 2010-2011 EDF S.A., France
10
# contact: saturne-support@edf.fr
12
# The Code_Saturne Kernel is free software; you can redistribute it
13
# and/or modify it under the terms of the GNU General Public License
14
# as published by the Free Software Foundation; either version 2 of
15
# the License, or (at your option) any later version.
17
# The Code_Saturne Kernel is distributed in the hope that it will be
18
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
# GNU General Public License for more details.
21
# You should have received a copy of the GNU General Public License
22
# along with the Code_Saturne Kernel; if not, write to the
23
# Free Software Foundation, Inc.,
24
# 51 Franklin St, Fifth Floor,
25
# Boston, MA 02110-1301 USA
27
#============================================================================
29
#-------------------------------------------------------------------------------
40
self.name = "@PACKAGE_NAME@"
41
self.tarname = "@PACKAGE_TARNAME@"
42
self.version = "@PACKAGE_VERSION@"
43
self.string = "@PACKAGE_STRING@"
44
self.bugreport = "@PACKAGE_BUGREPORT@"
45
self.url = "@PACKAGE_URL@"
47
self.code_name = "Code_Saturne"
49
self.preprocessor = "cs_preprocess"
50
self.partitioner = "cs_partition"
51
self.solver = "cs_solver"
52
self.check_syntax = "cs_check_syntax"
53
self.io_dump = "cs_io_dump"
54
self.guiname = "SaturneGUI"
55
self.configfile = "code_saturne.cfg"
56
self.scratchdir = 'tmp_Saturne'
57
self.srcdir = 'src_saturne'
64
self.cppflags = "-DHAVE_CONFIG_H @CS_CPPFLAGS@"
65
self.cflags="@CS_CFLAGS@"
66
self.cxxflags="@CS_CXXFLAGS@"
67
self.fcflags="@CS_FCFLAGS@"
68
self.fcmodinclude="@FCMODINCLUDE@"
69
self.ldflags = "@CS_LDFLAGS@"
70
self.libs = "-lsaturne -lmei -lfvm_filters -lfvm -lbft @CS_LIBS@"
71
self.deplibs = "@LDFLAGS@ @LIBINTL@ @LIBS@ @FCLIBS@"
72
self.rpath="@LDRPATH@"
74
# PLE library can be an internal or external library
75
# Its flags are included in other build flags,
76
# but are made available here for "code_saturne config".
77
self.ple_cppflags = "@PLE_CPPFLAGS@"
78
self.ple_ldflags = "@PLE_LDFLAGS@"
79
self.ple_libs = "@PLE_LIBS@"
81
self.prefix = "@prefix@"
82
self.exec_prefix = "@exec_prefix@"
83
self.bindir = "@bindir@"
84
self.includedir = "@includedir@"
85
self.pkgincludedir = "@pkgincludedir@"
86
self.libdir = "@libdir@"
87
self.libexecdir = "@libexecdir@"
88
self.pkglibexecdir = "@pkglibexecdir@"
89
self.pythondir = "@pythondir@"
90
self.pkgpythondir = "@pkgpythondir@"
91
self.datarootdir = "@datarootdir@"
92
self.datadir = "@datadir@"
93
self.pkgdatadir = "@pkgdatadir@"
94
self.docdir = "@docdir@"
95
self.pdfdir = "@pdfdir@"
96
self.sysconfdir = "@sysconfdir@"
97
self.syrthes_prefix = "@syrthes_prefix@"
99
self.mpi_type = "@mpi_type@"
100
self.mpi_bindir = "@mpi_bindir@"
101
self.mpi_libdir = "@mpi_libdir@"
103
self.env_modules = "@cs_env_modules@"
104
self.env_modulecmd = "@MODULECMD@"
106
def get_preprocessor(self):
108
preprocessordir = "@pkglibexecdir@"
109
return os.path.join(preprocessordir, self.preprocessor)
111
def get_partitioner(self):
113
partitionerdir = "@pkglibexecdir@"
114
return os.path.join(partitionerdir, self.partitioner)
116
def get_solver(self):
118
solverdir = "@pkglibexecdir@"
119
return os.path.join(solverdir, self.solver)
121
def get_check_syntax(self):
123
checksyntaxdir = "@pkglibexecdir@"
124
return os.path.join(checksyntaxdir, self.check_syntax)
126
def get_io_dump(self):
128
iodumpdir = "@pkglibexecdir@"
129
return os.path.join(iodumpdir, self.io_dump)
131
def get_configfile(self):
133
configfiledir = "@sysconfdir@"
134
return os.path.join(configfiledir, self.configfile)
136
def get_batchdir(self):
138
batchdir = "@pkgdatadir@"
139
return os.path.join(batchdir, 'batch')
141
def get_runcase_script(self, script):
143
runcasedir = "@pkgdatadir@"
144
return os.path.join(runcasedir, script)
146
def get_alternate_version(self, version):
148
Return alternate version package object
153
# Determine path (by absolute or local name)
154
pythondir = os.path.normpath(version)
155
prefix = os.path.normpath(self.exec_prefix)
156
if not os.path.isabs(pythondir):
157
if self.pkgpythondir.find(prefix) > -1:
158
postfix = self.pkgpythondir[len(prefix)+1:]
159
prefix = os.path.split(prefix)[0]
160
pythondir = os.path.normpath(os.path.join(prefix,
164
# load alternate package
165
if os.path.isdir(pythondir):
167
sys.path.insert(0, pythondir)
170
pkg = cs_package.package()
173
raise ImportError("Alternative version '" + pythondir + "' not found.")
177
#-------------------------------------------------------------------------------