Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
6ee020ce
Commit
6ee020ce
authored
8 years ago
by
Adam J. Stewart
Committed by
Todd Gamblin
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add package for CONVERGE CFD (#1905)
parent
95b07c36
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/spack/spack/hooks/licensing.py
+5
-0
5 additions, 0 deletions
lib/spack/spack/hooks/licensing.py
var/spack/repos/builtin/packages/converge/package.py
+69
-0
69 additions, 0 deletions
var/spack/repos/builtin/packages/converge/package.py
with
74 additions
and
0 deletions
lib/spack/spack/hooks/licensing.py
+
5
−
0
View file @
6ee020ce
...
...
@@ -157,6 +157,11 @@ def symlink_license(pkg):
license_dir
=
os
.
path
.
dirname
(
link_name
)
if
not
os
.
path
.
exists
(
license_dir
):
mkdirp
(
license_dir
)
# If example file already exists, overwrite it with a symlink
if
os
.
path
.
exists
(
link_name
):
os
.
remove
(
link_name
)
if
os
.
path
.
exists
(
target
):
os
.
symlink
(
target
,
link_name
)
tty
.
msg
(
"
Added local symlink %s to global license file
"
%
...
...
This diff is collapsed.
Click to expand it.
var/spack/repos/builtin/packages/converge/package.py
0 → 100644
+
69
−
0
View file @
6ee020ce
##############################################################################
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://github.com/llnl/spack
# Please also see the LICENSE file for our notice and the LGPL.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License (as
# published by the Free Software Foundation) version 2.1, February 1999.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
# conditions of the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from
spack
import
*
from
distutils.dir_util
import
copy_tree
import
os
class
Converge
(
Package
):
"""
CONVERGE is a revolutionary computational fluid dynamics (CFD) program
that eliminates the grid generation bottleneck from the simulation process.
CONVERGE was developed by engine simulation experts and is straightforward
to use for both engine and non-engine simulations. Unlike many CFD
programs, CONVERGE automatically generates a perfectly orthogonal,
structured grid at runtime based on simple, user-defined grid control
parameters. This grid generation method completely eliminates the need to
manually generate a grid. In addition, CONVERGE offers many other features
to expedite the setup process and to ensure that your simulations are as
computationally efficient as possible.
Note: CONVERGE is licensed software. You will need to create an account on
the CONVERGE homepage and download CONVERGE yourself. Spack will search
your current directory for the download file. Alternatively, add this file
to a mirror so that Spack can find it. For instructions on how to set up a
mirror, see http://spack.readthedocs.io/en/latest/mirrors.html
"""
homepage
=
"
https://www.convergecfd.com/
"
url
=
"
file://%s/converge_install_2.3.16.tar.gz
"
%
os
.
getcwd
()
version
(
'
2.3.16
'
,
'
8b80f1e73a63181c427c7732ad279986
'
)
variant
(
'
mpi
'
,
default
=
True
,
description
=
'
Build with MPI support
'
)
# The Converge Getting Started Guide recommends:
# MPICH: 3.1.4
# HP-MPI: 2.0.3+
# OpenMPI: 1.6.*
depends_on
(
'
mpi
'
,
when
=
'
+mpi
'
)
# Licensing
license_required
=
True
license_comment
=
'
#
'
license_files
=
[
'
license/license.lic
'
]
license_vars
=
[
'
RLM_LICENSE
'
]
license_url
=
'
http://www.reprisesoftware.com/RLM_License_Administration.pdf
'
def
install
(
self
,
spec
,
prefix
):
copy_tree
(
'
.
'
,
prefix
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment