v0.16.3
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
package.MofemUmAgeingUmat Class Reference
Inheritance diagram for package.MofemUmAgeingUmat:
[legend]
Collaboration diagram for package.MofemUmAgeingUmat:
[legend]

Public Member Functions

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

Public Attributes

 run_tests
 

Static Public Attributes

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

Detailed Description

MoFEM user module for an ageing UMAT.

Definition at line 27 of file package.py.

Member Function Documentation

◆ build_directory()

package.MofemUmAgeingUmat.build_directory (   self)

Definition at line 69 of file package.py.

69 def build_directory(self):
70 spec = self.spec
71 build_type = spec.variants['build_type'].value
72 build_dir = 'users_modules/um_ageing_umat'
73 return join_path(self.stage.path, build_dir)
74

◆ cmake_args()

package.MofemUmAgeingUmat.cmake_args (   self)

Definition at line 75 of file package.py.

75 def cmake_args(self):
76 spec = self.spec
77 from_variant = self.define_from_variant
78
79 options = []
80
81 # obligatory options
82 options.extend([
83 '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
84 '-DMPI_RUN_FLAGS=--allow-run-as-root',
85 '-DWITH_SPACK=YES'])
86 options.append(self.define(
87 'MOFEM_DIR', spec['mofem-cephas'].prefix))
88 options.append(self.define(
89 'EXTERNAL_MODULE_SOURCE_DIRS', self.stage.source_path))
90
91 # build tests
92 options.append(self.define('MOFEM_UM_BUILD_TESTS', self.run_tests))
93
94 return options
95

◆ copy_source_code()

package.MofemUmAgeingUmat.copy_source_code (   self)

Definition at line 102 of file package.py.

102 def copy_source_code(self):
103 source = self.stage.source_path
104 prefix = self.prefix
105 install_tree(source, prefix.ext_users_modules.um_ageing_umat)

◆ root_cmakelists_dir()

package.MofemUmAgeingUmat.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 57 of file package.py.

57 def root_cmakelists_dir(self):
58 """The relative path to the directory containing CMakeLists.txt
59
60 This path is relative to the root of the extracted tarball,
61 not to the ``build_directory``. Defaults to the current directory.
62
63 :return: directory containing CMakeLists.txt
64 """
65 spec = self.spec
66 return spec['mofem-cephas'].prefix.include.cmake.users_modules
67

◆ setup_build_environment()

package.MofemUmAgeingUmat.setup_build_environment (   self,
  env 
)

Definition at line 47 of file package.py.

47 def setup_build_environment(self, env):
48 env.set('CTEST_OUTPUT_ON_FAILURE', '1')
49

Member Data Documentation

◆ branch

package.MofemUmAgeingUmat.branch
static

Definition at line 35 of file package.py.

◆ default

package.MofemUmAgeingUmat.default
static

Definition at line 38 of file package.py.

◆ description

package.MofemUmAgeingUmat.description
static

Definition at line 39 of file package.py.

◆ git

str package.MofemUmAgeingUmat.git = "https://bitbucket.org/mofem/um_ageing_umat.git"
static

Definition at line 31 of file package.py.

◆ homepage

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

Definition at line 30 of file package.py.

◆ maintainers

list package.MofemUmAgeingUmat.maintainers = ['Ananya']
static

Definition at line 33 of file package.py.

◆ run_tests

package.MofemUmAgeingUmat.run_tests

Definition at line 92 of file package.py.

◆ when

package.MofemUmAgeingUmat.when
static

Definition at line 43 of file package.py.


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