mofem adolc plasticity module
Definition at line 27 of file package.py.
◆ build_directory()
package.MofemAdolcPlasticityModule.build_directory |
( |
| self | ) |
|
Definition at line 74 of file package.py.
74 def build_directory(self):
75 spec = self.spec
76 build_type = spec.variants['build_type'].value
77 build_dir = 'users_modules/adolc-plasticity'
78 return join_path(self.stage.path, build_dir)
79
◆ check()
package.MofemAdolcPlasticityModule.check |
( |
| self | ) |
|
Searches the CMake-generated Makefile for the target ``test``
and runs it if found.
Definition at line 112 of file package.py.
112 def check(self):
113 """Searches the CMake-generated Makefile for the target ``test``
114 and runs it if found.
115 """
116 with working_dir(self.build_directory):
117 ctest('--output-on-failure', parallel=False)
◆ cmake_args()
package.MofemAdolcPlasticityModule.cmake_args |
( |
| self | ) |
|
Definition at line 80 of file package.py.
80 def cmake_args(self):
81 spec = self.spec
82 from_variant = self.define_from_variant
83
84 options = []
85
86
87 options.extend([
88 '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
89 '-DMPI_RUN_FLAGS=--allow-run-as-root',
90 '-DWITH_SPACK=YES'])
91 options.append(self.define(
92 'MOFEM_DIR', spec['mofem-cephas'].prefix))
93 options.append(self.define(
94 'EXTERNAL_MODULE_SOURCE_DIRS', self.stage.source_path))
95
96
97 options.append(self.define('MOFEM_UM_BUILD_TESTS', self.run_tests))
98
99 return options
100
◆ copy_source_code()
package.MofemAdolcPlasticityModule.copy_source_code |
( |
| self | ) |
|
Definition at line 107 of file package.py.
107 def copy_source_code(self):
108 source = self.stage.source_path
109 prefix = self.prefix
110 install_tree(source, prefix.ext_users_modules.adolc_plasticity_module)
111
◆ root_cmakelists_dir()
package.MofemAdolcPlasticityModule.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 62 of file package.py.
62 def root_cmakelists_dir(self):
63 """The relative path to the directory containing CMakeLists.txt
64
65 This path is relative to the root of the extracted tarball,
66 not to the ``build_directory``. Defaults to the current directory.
67
68 :return: directory containing CMakeLists.txt
69 """
70 spec = self.spec
71 return spec['mofem-cephas'].prefix.include.cmake.users_modules
72
◆ setup_build_environment()
package.MofemAdolcPlasticityModule.setup_build_environment |
( |
| self, |
|
|
| env ) |
Definition at line 52 of file package.py.
52 def setup_build_environment(self, env):
53 env.set('CTEST_OUTPUT_ON_FAILURE', '1')
54
◆ branch
package.MofemAdolcPlasticityModule.branch |
|
static |
◆ build_directory
package.MofemAdolcPlasticityModule.build_directory |
◆ default
package.MofemAdolcPlasticityModule.default |
|
static |
◆ description
package.MofemAdolcPlasticityModule.description |
|
static |
◆ git
str package.MofemAdolcPlasticityModule.git = "https://bitbucket.org/mofem/adolc-plasticity.git" |
|
static |
◆ homepage
str package.MofemAdolcPlasticityModule.homepage = "http://mofem.eng.gla.ac.uk" |
|
static |
◆ maintainers
list package.MofemAdolcPlasticityModule.maintainers = ['likask','CallumRuncie'] |
|
static |
◆ run_tests
package.MofemAdolcPlasticityModule.run_tests |
◆ when
package.MofemAdolcPlasticityModule.when |
|
static |
The documentation for this class was generated from the following file:
- users_modules/adolc-plasticity/packages/mofem-adolc-plasticity-module/package.py