v0.15.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
package.MofemMixedFractureModule Class Reference
Inheritance diagram for package.MofemMixedFractureModule:
[legend]
Collaboration diagram for package.MofemMixedFractureModule:
[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/um_eshelbian_plasticity.git"
 
list maintainers = ['likask','CallumRuncie']
 
 branch
 
 default
 
 description
 
 when
 

Detailed Description

mofem fracture module

Definition at line 27 of file package.py.

Member Function Documentation

◆ build_directory()

package.MofemMixedFractureModule.build_directory (   self)

Definition at line 78 of file package.py.

78 def build_directory(self):
79 spec = self.spec
80 build_type = spec.variants['build_type'].value
81 build_dir = 'users_modules/eshelbian_plasticity'
82 return join_path(self.stage.path, build_dir)
83

◆ check()

package.MofemMixedFractureModule.check (   self)
Searches the CMake-generated Makefile for the target ``test``
and runs it if found.

Definition at line 116 of file package.py.

116 def check(self):
117 """Searches the CMake-generated Makefile for the target ``test``
118 and runs it if found.
119 """
120 with working_dir(self.build_directory):
121 ctest('-L', 'short', '--output-on-failure', parallel=False)

◆ cmake_args()

package.MofemMixedFractureModule.cmake_args (   self)

Definition at line 84 of file package.py.

84 def cmake_args(self):
85 spec = self.spec
86 from_variant = self.define_from_variant
87
88 options = []
89
90 # obligatory options
91 options.extend([
92 '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
93 '-DMPI_RUN_FLAGS=--allow-run-as-root',
94 '-DWITH_SPACK=YES'])
95 options.append(self.define(
96 'MOFEM_DIR', spec['mofem-cephas'].prefix))
97 options.append(self.define(
98 'EXTERNAL_MODULE_SOURCE_DIRS', self.stage.source_path))
99
100 # build tests
101 options.append(self.define('MOFEM_UM_BUILD_TESTS', self.run_tests))
102
103 return options
104

◆ copy_source_code()

package.MofemMixedFractureModule.copy_source_code (   self)

Definition at line 111 of file package.py.

111 def copy_source_code(self):
112 source = self.stage.source_path
113 prefix = self.prefix
114 install_tree(source, prefix.ext_users_modules.mixed_fracture_module)
115

◆ 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 66 of file package.py.

66 def root_cmakelists_dir(self):
67 """The relative path to the directory containing CMakeLists.txt
68
69 This path is relative to the root of the extracted tarball,
70 not to the ``build_directory``. Defaults to the current directory.
71
72 :return: directory containing CMakeLists.txt
73 """
74 spec = self.spec
75 return spec['mofem-cephas'].prefix.include.cmake.users_modules
76

◆ setup_build_environment()

package.MofemMixedFractureModule.setup_build_environment (   self,
  env 
)

Definition at line 56 of file package.py.

56 def setup_build_environment(self, env):
57 env.set('CTEST_OUTPUT_ON_FAILURE', '1')
58

Member Data Documentation

◆ branch

package.MofemMixedFractureModule.branch
static

Definition at line 36 of file package.py.

◆ build_directory

package.MofemMixedFractureModule.build_directory

Definition at line 120 of file package.py.

◆ default

package.MofemMixedFractureModule.default
static

Definition at line 44 of file package.py.

◆ description

package.MofemMixedFractureModule.description
static

Definition at line 45 of file package.py.

◆ git

str package.MofemMixedFractureModule.git = "https://bitbucket.org/mofem/um_eshelbian_plasticity.git"
static

Definition at line 31 of file package.py.

◆ homepage

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

Definition at line 30 of file package.py.

◆ maintainers

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

Definition at line 33 of file package.py.

◆ run_tests

package.MofemMixedFractureModule.run_tests

Definition at line 101 of file package.py.

◆ when

package.MofemMixedFractureModule.when
static

Definition at line 49 of file package.py.


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