mofem fracture module
Definition at line 27 of file package.py.
◆ build_directory()
| package.MofemMixedFractureModule.build_directory |
( |
|
self | ) |
|
Definition at line 84 of file package.py.
84 def build_directory(self):
85 spec = self.spec
86 build_type = spec.variants['build_type'].value
87 build_dir = 'users_modules/eshelbian_plasticity'
88 return join_path(self.stage.path, build_dir)
89
◆ check()
| package.MofemMixedFractureModule.check |
( |
|
self | ) |
|
Searches the CMake-generated Makefile for the target ``test``
and runs it if found.
Definition at line 122 of file package.py.
122 def check(self):
123 """Searches the CMake-generated Makefile for the target ``test``
124 and runs it if found.
125 """
126 with working_dir(self.build_directory):
127 ctest('-L', 'short', '--output-on-failure', parallel=False)
◆ cmake_args()
| package.MofemMixedFractureModule.cmake_args |
( |
|
self | ) |
|
Definition at line 90 of file package.py.
90 def cmake_args(self):
91 spec = self.spec
92 from_variant = self.define_from_variant
93
94 options = []
95
96
97 options.extend([
98 '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
99 '-DMPI_RUN_FLAGS=--allow-run-as-root',
100 '-DWITH_SPACK=YES'])
101 options.append(self.define(
102 'MOFEM_DIR', spec['mofem-cephas'].prefix))
103 options.append(self.define(
104 'EXTERNAL_MODULE_SOURCE_DIRS', self.stage.source_path))
105
106
107 options.append(self.define('MOFEM_UM_BUILD_TESTS', self.run_tests))
108
109 return options
110
◆ copy_source_code()
| package.MofemMixedFractureModule.copy_source_code |
( |
|
self | ) |
|
Definition at line 117 of file package.py.
117 def copy_source_code(self):
118 source = self.stage.source_path
119 prefix = self.prefix
120 install_tree(source, prefix.ext_users_modules.mixed_fracture_module)
121
◆ root_cmakelists_dir()
| package.MofemMixedFractureModule.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 72 of file package.py.
72 def root_cmakelists_dir(self):
73 """The relative path to the directory containing CMakeLists.txt
74
75 This path is relative to the root of the extracted tarball,
76 not to the ``build_directory``. Defaults to the current directory.
77
78 :return: directory containing CMakeLists.txt
79 """
80 spec = self.spec
81 return spec['mofem-cephas'].prefix.include.cmake.users_modules
82
◆ setup_build_environment()
| package.MofemMixedFractureModule.setup_build_environment |
( |
|
self, |
|
|
|
env |
|
) |
| |
Definition at line 62 of file package.py.
62 def setup_build_environment(self, env):
63 env.set('CTEST_OUTPUT_ON_FAILURE', '1')
64
◆ branch
| package.MofemMixedFractureModule.branch |
|
static |
◆ build_directory
| package.MofemMixedFractureModule.build_directory |
◆ default
| package.MofemMixedFractureModule.default |
|
static |
◆ description
| package.MofemMixedFractureModule.description |
|
static |
◆ git
| str package.MofemMixedFractureModule.git = "https://bitbucket.org/mofem/um_eshelbian_plasticity.git" |
|
static |
◆ homepage
| str package.MofemMixedFractureModule.homepage = "http://mofem.eng.gla.ac.uk" |
|
static |
◆ maintainers
| list package.MofemMixedFractureModule.maintainers = ['likask','CallumRuncie'] |
|
static |
◆ run_tests
| package.MofemMixedFractureModule.run_tests |
◆ when
| package.MofemMixedFractureModule.when |
|
static |
The documentation for this class was generated from the following file:
- users_modules/eshelbian_plasticity/packages/mofem-mixed-fracture-module/package.py