Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lammps
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
Container Registry
Model registry
Operate
Environments
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
multiscale
lammps
Commits
43002746
Unverified
Commit
43002746
authored
7 years ago
by
Steve Plimpton
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #868 from junghans/latte
cmake: update latte to v1.1.1
parents
7f9400ea
8f1487fb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/CMakeLists.txt
+2
-2
2 additions, 2 deletions
cmake/CMakeLists.txt
lib/latte/Install.py
+19
-9
19 additions, 9 deletions
lib/latte/Install.py
with
21 additions
and
11 deletions
cmake/CMakeLists.txt
+
2
−
2
View file @
43002746
...
@@ -240,8 +240,8 @@ if(ENABLE_LATTE)
...
@@ -240,8 +240,8 @@ if(ENABLE_LATTE)
message
(
STATUS
"LATTE not found - we will build our own"
)
message
(
STATUS
"LATTE not found - we will build our own"
)
include
(
ExternalProject
)
include
(
ExternalProject
)
ExternalProject_Add
(
latte_build
ExternalProject_Add
(
latte_build
URL https://github.com/lanl/LATTE/archive/v1.
0
.1.tar.gz
URL https://github.com/lanl/LATTE/archive/v1.
1
.1.tar.gz
URL_MD5
5137e28cb1a64444bd571c98c98a6eee
URL_MD5
cb86f1d2473ce00aa61ff6a023154b03
SOURCE_SUBDIR cmake
SOURCE_SUBDIR cmake
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> -DCMAKE_POSITION_INDEPENDENT_CODE=
${
CMAKE_POSITION_INDEPENDENT_CODE
}
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> -DCMAKE_POSITION_INDEPENDENT_CODE=
${
CMAKE_POSITION_INDEPENDENT_CODE
}
)
)
...
...
This diff is collapsed.
Click to expand it.
lib/latte/Install.py
+
19
−
9
View file @
43002746
...
@@ -10,17 +10,21 @@ import sys,os,re,subprocess
...
@@ -10,17 +10,21 @@ import sys,os,re,subprocess
help
=
"""
help
=
"""
Syntax from src dir: make lib-latte args=
"
-b
"
Syntax from src dir: make lib-latte args=
"
-b
"
make lib-latte args=
"
-p /usr/local/latte
"
or: make lib-latte args=
"
-p /usr/local/latte
"
make lib-latte args=
"
-m gfortran
"
or: make lib-latte args=
"
-m gfortran
"
or: make lib-latte args=
"
-b -v 1.1.1
"
Syntax from lib dir: python Install.py -b
Syntax from lib dir: python Install.py -b
python Install.py -p /usr/local/latte
or: python Install.py -p /usr/local/latte
python Install.py -m gfortran
or: python Install.py -m gfortran
or: python Install.py -v 1.1.1 -b
specify one or more options, order does not matter
specify one or more options, order does not matter
-b = download and build the LATTE library
-b = download and build the LATTE library
-p = specify folder of existing LATTE installation
-p = specify folder of existing LATTE installation
-m = copy Makefile.lammps.suffix to Makefile.lammps
-m = copy Makefile.lammps.suffix to Makefile.lammps
-v = set version of LATTE library to download and set up (default = 1.1.1)
Example:
Example:
...
@@ -30,7 +34,7 @@ make lib-latte args="-p $HOME/latte" # use existing LATTE installation
...
@@ -30,7 +34,7 @@ make lib-latte args="-p $HOME/latte" # use existing LATTE installation
# settings
# settings
url
=
"
https://github.com/lanl/LATTE/archive/master.tar.gz
"
version
=
'
1.1.1
'
# print error message or help
# print error message or help
...
@@ -94,7 +98,6 @@ nargs = len(args)
...
@@ -94,7 +98,6 @@ nargs = len(args)
if
nargs
==
0
:
error
()
if
nargs
==
0
:
error
()
homepath
=
"
.
"
homepath
=
"
.
"
homedir
=
"
LATTE-master
"
buildflag
=
False
buildflag
=
False
pathflag
=
False
pathflag
=
False
...
@@ -116,12 +119,19 @@ while iarg < nargs:
...
@@ -116,12 +119,19 @@ while iarg < nargs:
suffix
=
args
[
iarg
+
1
]
suffix
=
args
[
iarg
+
1
]
suffixflag
=
True
suffixflag
=
True
iarg
+=
2
iarg
+=
2
elif
args
[
iarg
]
==
"
-v
"
:
if
iarg
+
2
>
nargs
:
error
()
version
=
args
[
iarg
+
1
]
iarg
+=
2
else
:
error
()
else
:
error
()
homedir
=
"
LATTE-%s
"
%
version
if
(
buildflag
and
pathflag
):
if
(
buildflag
and
pathflag
):
error
(
"
Cannot use -b and -p flag at the same time
"
)
error
(
"
Cannot use -b and -p flag at the same time
"
)
if
buildflag
:
if
buildflag
:
url
=
"
https://github.com/lanl/LATTE/archive/v%s.tar.gz
"
%
version
lattepath
=
fullpath
(
homepath
)
lattepath
=
fullpath
(
homepath
)
lattedir
=
"
%s/%s
"
%
(
lattepath
,
homedir
)
lattedir
=
"
%s/%s
"
%
(
lattepath
,
homedir
)
...
@@ -132,15 +142,15 @@ if pathflag:
...
@@ -132,15 +142,15 @@ if pathflag:
if
buildflag
:
if
buildflag
:
print
(
"
Downloading LATTE ...
"
)
print
(
"
Downloading LATTE ...
"
)
geturl
(
url
,
"
master
.tar.gz
"
)
geturl
(
url
,
"
LATTE
.tar.gz
"
)
print
(
"
Unpacking LATTE zipfile ...
"
)
print
(
"
Unpacking LATTE zipfile ...
"
)
if
os
.
path
.
exists
(
lattedir
):
if
os
.
path
.
exists
(
lattedir
):
cmd
=
'
rm -rf
"
%s
"'
%
lattedir
cmd
=
'
rm -rf
"
%s
"'
%
lattedir
subprocess
.
check_output
(
cmd
,
stderr
=
subprocess
.
STDOUT
,
shell
=
True
)
subprocess
.
check_output
(
cmd
,
stderr
=
subprocess
.
STDOUT
,
shell
=
True
)
cmd
=
'
cd
"
%s
"
; tar zxvf
master
.tar.gz
'
%
lattepath
cmd
=
'
cd
"
%s
"
; tar zxvf
LATTE
.tar.gz
'
%
lattepath
subprocess
.
check_output
(
cmd
,
stderr
=
subprocess
.
STDOUT
,
shell
=
True
)
subprocess
.
check_output
(
cmd
,
stderr
=
subprocess
.
STDOUT
,
shell
=
True
)
os
.
remove
(
"
%s/
master
.tar.gz
"
%
lattepath
)
os
.
remove
(
"
%s/
LATTE
.tar.gz
"
%
lattepath
)
# build LATTE
# build LATTE
...
...
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