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