v0.15.0
Loading...
Searching...
No Matches
package.MofemCephas Class Reference
Inheritance diagram for package.MofemCephas:
[legend]
Collaboration diagram for package.MofemCephas:
[legend]

Public Member Functions

 setup_build_environment (self, env)
 
 build_directory (self)
 
 cmake_args (self)
 
 check (self)
 

Public Attributes

 build_directory
 

Static Public Attributes

str homepage = "http://mofem.eng.gla.ac.uk"
 
str git = "https://bitbucket.org/mofem/mofem-cephas.git"
 
list maintainers = ['likask']
 
 branch
 
 tag
 
 default
 
 description
 
 True
 
 type
 
 when
 
bool extendable = True
 
str root_cmakelists_dir = "mofem"
 

Detailed Description

MoFEM is finite element core library

Definition at line 11 of file package.py.

Member Function Documentation

◆ build_directory()

package.MofemCephas.build_directory ( self)

Definition at line 151 of file package.py.

151 def build_directory(self):
152 spec = self.spec
153 build_type = spec.variants['build_type'].value
154 build_dir = 'core-build-%s-%s' % (build_type,spec.dag_hash(7))
155 return join_path(self.stage.path, build_dir)
156

◆ check()

package.MofemCephas.check ( self)
Searches the CMake-generated Makefile for the target ``test``
and runs it if found.

Definition at line 207 of file package.py.

207 def check(self):
208 """Searches the CMake-generated Makefile for the target ``test``
209 and runs it if found.
210 """
211 with working_dir(self.build_directory):
212 ctest('--output-on-failure', parallel=False)

◆ cmake_args()

package.MofemCephas.cmake_args ( self)

Definition at line 157 of file package.py.

157 def cmake_args(self):
158 spec = self.spec
159 options = []
160
161 # obligatory options
162 options.extend([
163 '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
164 '-DMPI_RUN_FLAGS:STRING=--allow-run-as-root',
165 '-DWITH_SPACK:BOOL=YES',
166 '-DPETSC_DIR:PATH=%s' % spec['petsc'].prefix,
167 '-DPETSC_ARCH:STRING=',
168 '-DMOAB_DIR:PATH=%s' % spec['moab'].prefix,
169 '-DBOOST_DIR:PATH=%s' % spec['boost'].prefix,
170 '-DBLAS_DIR:PATH=%s' % spec['blas'].prefix])
171
172 # variant packages
173 if '+adol-c' in spec:
174 options.append('-DADOL-C_DIR:PATH=%s' % spec['adol-c'].prefix)
175
176 if '+tetgen' in spec:
177 options.append('-DTETGEN_DIR:PATH=%s' % spec['tetgen'].prefix)
178
179 if '+med' in spec:
180 options.append('-DMED_DIR:PATH=%s' % spec['med'].prefix)
181
182 if '+slepc' in spec:
183 options.append('-DSLEPC_DIR:PATH=%s' % spec['slepc'].prefix)
184
185 if '+mgis' in spec:
186 options.append('-DMGIS_DIR:PATH=%s' % spec['mgis'].prefix)
187 options.append('-DTFEL_DIR:PATH=%s' % spec['tfel'].prefix)
188
189 # copy users modules, i.e. stand alone vs linked users modules
190 options.append(
191 self.define_from_variant(
192 'STAND_ALLONE_USERS_MODULES', 'copy_user_modules'))
193
194 options.append(
195 self.define_from_variant('BUILD_SHARED_LIBS', 'shared'))
196
197 if spec['boost'].satisfies('+shared'):
198 options.append(self.define('Boost_USE_STATIC_LIBS', False))
199 else:
200 options.append(self.define('Boost_USE_STATIC_LIBS', True))
201
202 options.append(
203 self.define_from_variant('BUILD_TUTORIALS', 'build_tutorials'))
204
205 return options
206

◆ setup_build_environment()

package.MofemCephas.setup_build_environment ( self,
env )

Definition at line 147 of file package.py.

147 def setup_build_environment(self, env):
148 env.set('CTEST_OUTPUT_ON_FAILURE', '1')
149

Member Data Documentation

◆ branch

package.MofemCephas.branch
static

Definition at line 20 of file package.py.

◆ build_directory

package.MofemCephas.build_directory

Definition at line 211 of file package.py.

◆ default

package.MofemCephas.default
static

Definition at line 56 of file package.py.

◆ description

package.MofemCephas.description
static

Definition at line 57 of file package.py.

◆ extendable

bool package.MofemCephas.extendable = True
static

Definition at line 143 of file package.py.

◆ git

str package.MofemCephas.git = "https://bitbucket.org/mofem/mofem-cephas.git"
static

Definition at line 15 of file package.py.

◆ homepage

str package.MofemCephas.homepage = "http://mofem.eng.gla.ac.uk"
static

Definition at line 14 of file package.py.

◆ maintainers

list package.MofemCephas.maintainers = ['likask']
static

Definition at line 17 of file package.py.

◆ root_cmakelists_dir

str package.MofemCephas.root_cmakelists_dir = "mofem"
static

Definition at line 145 of file package.py.

◆ tag

package.MofemCephas.tag
static

Definition at line 36 of file package.py.

◆ True

package.MofemCephas.True
static

Definition at line 64 of file package.py.

◆ type

package.MofemCephas.type
static

Definition at line 74 of file package.py.

◆ when

package.MofemCephas.when
static

Definition at line 77 of file package.py.


The documentation for this class was generated from the following file: