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

Public Member Functions

 setup_build_environment (self, env)
 
 root_cmakelists_dir (self)
 
 build_directory (self)
 
 cmake_args (self)
 
 copy_source_code (self)
 
 check (self)
 

Public Attributes

 run_tests
 
 build_directory
 

Static Public Attributes

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

Detailed Description

mofem basic finite elements extension

Definition at line 25 of file package.py.

Member Function Documentation

◆ 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 # obligatory options
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 # build tests
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

Member Data Documentation

◆ branch

package.MofemBasicFiniteElements.branch
static

Definition at line 34 of file package.py.

◆ build_directory

package.MofemBasicFiniteElements.build_directory

Definition at line 113 of file package.py.

◆ default

package.MofemBasicFiniteElements.default
static

Definition at line 40 of file package.py.

◆ description

package.MofemBasicFiniteElements.description
static

Definition at line 41 of file package.py.

◆ git

str package.MofemBasicFiniteElements.git = "https://bitbucket.org/mofem/basic_finite_elements.git"
static

Definition at line 29 of file package.py.

◆ homepage

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

Definition at line 28 of file package.py.

◆ maintainers

list package.MofemBasicFiniteElements.maintainers = ['likask','CallumRuncie']
static

Definition at line 31 of file package.py.

◆ run_tests

package.MofemBasicFiniteElements.run_tests

Definition at line 94 of file package.py.

◆ when

package.MofemBasicFiniteElements.when
static

Definition at line 45 of file package.py.


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