MoFEM user module for an ageing UMAT.
Definition at line 27 of file package.py.
◆ build_directory()
| package.MofemUmAgeingUmat.build_directory |
( |
|
self | ) |
|
Definition at line 69 of file package.py.
69 def build_directory(self):
70 spec = self.spec
71 build_type = spec.variants['build_type'].value
72 build_dir = 'users_modules/um_ageing_umat'
73 return join_path(self.stage.path, build_dir)
74
◆ cmake_args()
| package.MofemUmAgeingUmat.cmake_args |
( |
|
self | ) |
|
Definition at line 75 of file package.py.
75 def cmake_args(self):
76 spec = self.spec
77 from_variant = self.define_from_variant
78
79 options = []
80
81
82 options.extend([
83 '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
84 '-DMPI_RUN_FLAGS=--allow-run-as-root',
85 '-DWITH_SPACK=YES'])
86 options.append(self.define(
87 'MOFEM_DIR', spec['mofem-cephas'].prefix))
88 options.append(self.define(
89 'EXTERNAL_MODULE_SOURCE_DIRS', self.stage.source_path))
90
91
92 options.append(self.define('MOFEM_UM_BUILD_TESTS', self.run_tests))
93
94 return options
95
◆ copy_source_code()
| package.MofemUmAgeingUmat.copy_source_code |
( |
|
self | ) |
|
Definition at line 102 of file package.py.
102 def copy_source_code(self):
103 source = self.stage.source_path
104 prefix = self.prefix
105 install_tree(source, prefix.ext_users_modules.um_ageing_umat)
◆ root_cmakelists_dir()
| package.MofemUmAgeingUmat.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 57 of file package.py.
57 def root_cmakelists_dir(self):
58 """The relative path to the directory containing CMakeLists.txt
59
60 This path is relative to the root of the extracted tarball,
61 not to the ``build_directory``. Defaults to the current directory.
62
63 :return: directory containing CMakeLists.txt
64 """
65 spec = self.spec
66 return spec['mofem-cephas'].prefix.include.cmake.users_modules
67
◆ setup_build_environment()
| package.MofemUmAgeingUmat.setup_build_environment |
( |
|
self, |
|
|
|
env |
|
) |
| |
Definition at line 47 of file package.py.
47 def setup_build_environment(self, env):
48 env.set('CTEST_OUTPUT_ON_FAILURE', '1')
49
◆ branch
| package.MofemUmAgeingUmat.branch |
|
static |
◆ default
| package.MofemUmAgeingUmat.default |
|
static |
◆ description
| package.MofemUmAgeingUmat.description |
|
static |
◆ git
| str package.MofemUmAgeingUmat.git = "https://bitbucket.org/mofem/um_ageing_umat.git" |
|
static |
◆ homepage
| str package.MofemUmAgeingUmat.homepage = "http://mofem.eng.gla.ac.uk" |
|
static |
◆ maintainers
| list package.MofemUmAgeingUmat.maintainers = ['Ananya'] |
|
static |
◆ run_tests
| package.MofemUmAgeingUmat.run_tests |
◆ when
| package.MofemUmAgeingUmat.when |
|
static |
The documentation for this class was generated from the following file:
- users_modules/um_ageing_umat/packages/mofem-um-ageing-umat/package.py