v0.15.5
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
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 157 of file package.py.

157 def build_directory(self):
158 spec = self.spec
159 build_type = spec.variants['build_type'].value
160 build_dir = 'core-build-%s-%s' % (build_type,spec.dag_hash(7))
161 return join_path(self.stage.path, build_dir)
162

◆ check()

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

Definition at line 213 of file package.py.

213 def check(self):
214 """Searches the CMake-generated Makefile for the target ``test``
215 and runs it if found.
216 """
217 with working_dir(self.build_directory):
218 ctest('--output-on-failure', parallel=False)

◆ cmake_args()

package.MofemCephas.cmake_args (   self)

Definition at line 163 of file package.py.

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

◆ setup_build_environment()

package.MofemCephas.setup_build_environment (   self,
  env 
)

Definition at line 153 of file package.py.

153 def setup_build_environment(self, env):
154 env.set('CTEST_OUTPUT_ON_FAILURE', '1')
155

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 217 of file package.py.

◆ default

package.MofemCephas.default
static

Definition at line 62 of file package.py.

◆ description

package.MofemCephas.description
static

Definition at line 63 of file package.py.

◆ extendable

bool package.MofemCephas.extendable = True
static

Definition at line 149 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 151 of file package.py.

◆ tag

package.MofemCephas.tag
static

Definition at line 42 of file package.py.

◆ True

package.MofemCephas.True
static

Definition at line 70 of file package.py.

◆ type

package.MofemCephas.type
static

Definition at line 80 of file package.py.

◆ when

package.MofemCephas.when
static

Definition at line 83 of file package.py.


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