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

Public Member Functions

 root_cmakelists_dir (self)
 
 cmake_args (self)
 
 copy_source_code (self)
 
 check (self)
 

Public Attributes

 build_directory
 

Static Public Attributes

str homepage = "http://mofem.eng.gla.ac.uk"
 
str git = "https://bitbucket.org/likask/mofem_um_bone_remodelling.git"
 
list maintainers = ['karol41', 'likask']
 
 branch
 
 default
 
 description
 

Detailed Description

mofem bone remodelling module

Definition at line 10 of file package.py.

Member Function Documentation

◆ check()

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

Definition at line 77 of file package.py.

77 def check(self):
78 """Searches the CMake-generated Makefile for the target ``test``
79 and runs it if found.
80 """
81 with working_dir(self.build_directory):
82 ctest('--output-on-failure', parallel=False)

◆ cmake_args()

package.MofemBoneRemodelling.cmake_args ( self)

Definition at line 46 of file package.py.

46 def cmake_args(self):
47 spec = self.spec
48 source = self.stage.source_path
49
50 options = []
51
52 # obligatory options
53 options.extend([
54 '-DWITH_SPACK=YES',
55 '-DWITH_METAIO=1',
56 '-DMPI_RUN_FLAGS=--allow-run-as-root',
57 '-DEXTERNAL_MODULE_SOURCE_DIRS=%s' % source])
58
59
60 # build tests
61 options.append('-DMOFEM_UM_BUILD_TESTS={0}'.format(
62 'ON' if self.run_tests else 'OFF'))
63
64 return options
65

◆ copy_source_code()

package.MofemBoneRemodelling.copy_source_code ( self)

Definition at line 72 of file package.py.

72 def copy_source_code(self):
73 source = self.stage.source_path
74 prefix = self.prefix
75 install_tree(source, prefix.ext_users_modules.bone_remodelling_module)
76

◆ root_cmakelists_dir()

package.MofemBoneRemodelling.root_cmakelists_dir ( self)
The relative path to the directory containing CMakeLists.txt

This path is relative to the root of the extracted tarball,
not to the ``build_directory``. Defaults to the current directory.

:return: directory containing CMakeLists.txt

Definition at line 35 of file package.py.

35 def root_cmakelists_dir(self):
36 """The relative path to the directory containing CMakeLists.txt
37
38 This path is relative to the root of the extracted tarball,
39 not to the ``build_directory``. Defaults to the current directory.
40
41 :return: directory containing CMakeLists.txt
42 """
43 spec = self.spec
44 return spec['mofem-users-modules'].prefix.users_modules
45

Member Data Documentation

◆ branch

package.MofemBoneRemodelling.branch
static

Definition at line 18 of file package.py.

◆ build_directory

package.MofemBoneRemodelling.build_directory

Definition at line 81 of file package.py.

◆ default

package.MofemBoneRemodelling.default
static

Definition at line 23 of file package.py.

◆ description

package.MofemBoneRemodelling.description
static

Definition at line 24 of file package.py.

◆ git

str package.MofemBoneRemodelling.git = "https://bitbucket.org/likask/mofem_um_bone_remodelling.git"
static

Definition at line 14 of file package.py.

◆ homepage

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

Definition at line 13 of file package.py.

◆ maintainers

list package.MofemBoneRemodelling.maintainers = ['karol41', 'likask']
static

Definition at line 16 of file package.py.


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