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
628516c7
Unverified
Commit
628516c7
authored
5 years ago
by
Toyohisa Kameyama
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ppOpen-APPL/FVM: new package. (#15772)
* ppOpen-APPL/FVM: new package. * copy_tree -> install_tree.
parent
86496093
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/ppopen-appl-fvm/package.py
+63
-0
63 additions, 0 deletions
var/spack/repos/builtin/packages/ppopen-appl-fvm/package.py
with
63 additions
and
0 deletions
var/spack/repos/builtin/packages/ppopen-appl-fvm/package.py
0 → 100644
+
63
−
0
View file @
628516c7
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from
spack
import
*
import
os
class
PpopenApplFvm
(
MakefilePackage
):
"""
ppOpen-APPL/FVM ia a coupling library that enables weak
coupling on various simulation models, such as an
atmospheric model and an ocean model, a seismic model
and a structure model. For getting very wide
applicability, ppohMATHMP is designed so as that it is
independent from grid structure. Instead of grid
structure, ppOpen-APPL/FVM requires a data set
called
'
mapping table
'
. Mapping table is composed of
a correspondence table of grid indexes between a send
model and a receive model and interpolation coefficients.
A subroutine for making a mapping table file is provided
by ppohMATHMP API.
Current version of ppohMATHMP is ver.1.0 which targets
scalar data exchange. An exchange code of vector data
which requires rotation calculation is under
"""
homepage
=
"
http://ppopenhpc.cc.u-tokyo.ac.jp/ppopenhpc/
"
url
=
"
file://{0}/ppohFVM_0.3.0.tar.gz
"
.
format
(
os
.
getcwd
())
version
(
'
0.3.0
'
,
sha256
=
'
4e05dd71f4eeda62c9683b7c3069a2537f3c2c7e86ba50a00d4963f41d9cbe29
'
)
depends_on
(
'
mpi
'
)
depends_on
(
'
metis@:4
'
)
def
edit
(
self
,
spec
,
prefix
):
fflags
=
[
'
-O3
'
]
if
spec
.
satisfies
(
'
%gcc
'
):
fflags
.
append
(
'
-ffree-line-length-none
'
)
makefile_in
=
FileFilter
(
'
Makefile.in
'
)
makefile_in
.
filter
(
r
'
^PREFIX *=.*$
'
,
'
PREFIX = {0}
'
.
format
(
prefix
)
)
makefile_in
.
filter
(
r
'
^METISDIR *=.*$
'
,
'
METISDIR = {0}
'
.
format
(
spec
[
'
metis
'
].
prefix
.
lib
)
)
makefile_in
.
filter
(
'
mpifrtpx
'
,
spec
[
'
mpi
'
].
mpifc
)
makefile_in
.
filter
(
'
frtpx
'
,
spack_fc
)
makefile_in
.
filter
(
'
-Kfast
'
,
'
'
.
join
(
fflags
))
makefile_in
.
filter
(
'
,openmp
'
,
'
{0}
'
.
format
(
self
.
compiler
.
openmp_flag
)
)
def
install
(
self
,
spec
,
prefix
):
make
(
'
install
'
)
install_tree
(
'
examples
'
,
prefix
.
examples
)
install_tree
(
'
doc
'
,
prefix
.
doc
)
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