-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jorge Ejarque
committed
Feb 27, 2023
1 parent
09d08da
commit c2d139f
Showing
9 changed files
with
124 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,11 +88,15 @@ packages: | |
externals: | ||
- spec: [email protected] | ||
prefix: /usr | ||
bzip2: | ||
externals: | ||
- spec: [email protected] | ||
prefix: / | ||
#bzip2: | ||
# externals: | ||
# - spec: [email protected] | ||
# prefix: / | ||
tar: | ||
externals: | ||
- spec: [email protected] | ||
prefix: / | ||
cpio: | ||
externals: | ||
- spec: [email protected] | ||
prefix: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"execution" : { | ||
"type":"task" | ||
}, | ||
"constraints" : { | ||
"computing_units": "$KRATOS_CUS" | ||
}, | ||
"parameters" : { | ||
"returns" : 1, | ||
"model" : "IN", | ||
"parameters" : "IN", | ||
"sample" : "IN" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"execution" : { | ||
"type":"task" | ||
}, | ||
"constraints" : { | ||
"computing_units": "$KRATOS_CUS" | ||
}, | ||
"parameters" : { | ||
"returns" : 2, | ||
"model_file" : "FILE_IN", | ||
"parameters" : "IN" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,14 +40,17 @@ class Kratos(CMakePackage): | |
|
||
# FIXME: Add dependencies if required. | ||
depends_on('boost') | ||
depends_on('python@3:') | ||
|
||
depends_on('[email protected]:') | ||
depends_on('blas') | ||
|
||
#variant | ||
variant('mpi', default=False, description='Builds a MPI version of the library') | ||
depends_on('mpi', when='+mpi') | ||
variant('mmg', default=False, description='Builds a MMG version of the library') | ||
depends_on('mmg', when='+mmg') | ||
variant('apps', default='none', multi=True, description='Builds apps version of the library') | ||
variant('eigen_mkl', default=False, description='Builds a Eigen_mkl version of the library') | ||
depends_on('intel-mkl', when='+eigen_mkl') | ||
|
||
def url_for_version(self, version): | ||
url = "https://github.com/KratosMultiphysics/Kratos/archive/refs/tags/v{0}.tar.gz" | ||
|
@@ -61,20 +64,25 @@ def setup_build_environment(self, env): | |
for app in apps: | ||
kratos_apps = kratos_apps + os.path.join(applications_path, app) + ";" | ||
env.set('KRATOS_APPLICATIONS', kratos_apps) | ||
print("PYTHON_EXECUTABLE:" + str(self.spec['python'].prefix.bin + "/python3")) | ||
env.set('PYTHON_EXECUTABLE',self.spec['python'].prefix.bin + "/python3") | ||
|
||
def setup_run_environment(self, env): | ||
env.prepend_path('LD_LIBRARY_PATH', self.prefix.lib) | ||
env.prepend_path('PYTHONPATH', self.prefix) | ||
|
||
|
||
def cmake_args(self): | ||
# Add arguments other than | ||
# CMAKE_INSTALL_PREFIX and CMAKE_BUILD_TYPE | ||
args = [] | ||
if self.spec.variants['mpi'].value == True: | ||
args.append('USE_MPI=ON') | ||
args.append('-DUSE_MPI=ON') | ||
else: | ||
args.append('USE_MPI=OFF') | ||
args.append('-DUSE_MPI=OFF') | ||
if self.spec.variants['mmg'].value == True: | ||
args.append('USE_MMG=ON') | ||
args.append('-DUSE_MMG=ON') | ||
if self.spec.variants['eigen_mkl'].value == True: | ||
args.append('-DUSE_EIGEN_MKL=ON') | ||
return args | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"execution" : { | ||
"type":"task" | ||
}, | ||
"constraints" : { | ||
"computing_units": "$KRATOS_CUS" | ||
}, | ||
"parameters" : { | ||
"returns" : 1, | ||
"model" : "IN", | ||
"parameters" : "IN", | ||
"sample": "IN", | ||
"rom" : "FILE_IN" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
{ | ||
"execution": { | ||
"type":"workflow" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,9 +42,9 @@ class PyDislib(PythonPackage): | |
# FIXME: Add dependencies if required. Only add the python dependency | ||
# if you need specific versions. A generic python dependency is | ||
# added implicity by the PythonPackage class. | ||
depends_on('python@3:', type=('build', 'run')) | ||
depends_on('python@3.6', type=('build', 'run')) | ||
#depends_on('py-setuptools', type='build') | ||
depends_on('[email protected]^[email protected]^[email protected]', type=('run')) | ||
depends_on('[email protected].2^[email protected]^[email protected].5', type=('run')) | ||
#depends_on('py-scikit-learn', type=('run')) | ||
#depends_on('py-cvxpy', type=('run')) | ||
|
||
|