Skip to content

Commit 7dbd1f1

Browse files
author
Jean-Luc Fattebert
committed
Created orphaned branch 'release'
0 parents  commit 7dbd1f1

File tree

4,825 files changed

+1651373
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,825 files changed

+1651373
-0
lines changed

INSTALL

+120
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
// Copyright (c) 2018, Lawrence Livermore National Security, LLC.
2+
// Produced at the Lawrence Livermore National Laboratory
3+
// Written by M.R. Dorr, J.-L. Fattebert and M.E. Wickett
4+
// LLNL-CODE-747500
5+
// All rights reserved.
6+
// This file is part of AMPE.
7+
// For details, see https://github.com/LLNL/AMPE
8+
// Please also read AMPE/LICENSE.
9+
// Redistribution and use in source and binary forms, with or without
10+
// modification, are permitted provided that the following conditions are met:
11+
// - Redistributions of source code must retain the above copyright notice,
12+
// this list of conditions and the disclaimer below.
13+
// - Redistributions in binary form must reproduce the above copyright notice,
14+
// this list of conditions and the disclaimer (as noted below) in the
15+
// documentation and/or other materials provided with the distribution.
16+
// - Neither the name of the LLNS/LLNL nor the names of its contributors may be
17+
// used to endorse or promote products derived from this software without
18+
// specific prior written permission.
19+
//
20+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23+
// ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE LIVERMORE NATIONAL SECURITY,
24+
// LLC, THE U.S. DEPARTMENT OF ENERGY OR CONTRIBUTORS BE LIABLE FOR ANY
25+
// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26+
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27+
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28+
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29+
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
30+
// IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31+
// POSSIBILITY OF SUCH DAMAGE.
32+
//
33+
Step 0:
34+
Run autoconf:
35+
36+
autoconf
37+
38+
This should generate the 'configure' file
39+
40+
Step 1: Configure for a specific combination of platform, compiler and
41+
optimization level
42+
43+
After checking out from the repository, cd into the top level
44+
directory and execute the configure script for the
45+
platform-compiler-optimization you want to build. For example, to
46+
configure for cab using the Intel C++ and Fortran compilers with
47+
optimization, execute
48+
49+
scripts/doconfig_peloton_icpc_ifort_opt
50+
51+
If a script does not exist for the platform-compiler_optimization
52+
combination you want, you'll have to create your own using one of the
53+
existing scripts as an example. Note that all of the scripts
54+
currently in the "scripts" subdirectory assume that they are being
55+
executed from the top level directory (as indicated above), which is
56+
the location of of the configure script the "doconfig" scripts depend
57+
upon.
58+
59+
Step 2: Install the base (i.e., third-party) libraries for the
60+
new platform-compiler-optimization combination
61+
62+
The configuration step just performed will create a subdirectory
63+
"build" of the top level directory (if it didn't already exist) and a
64+
subdirectory of the "build" directory labeled by the associated
65+
platform-compiler-optimization combination. Underneath that
66+
subdirectory are three more subdirectories: base, config, and objects.
67+
In other words, for the current example, the following directory tree
68+
is created if ruuning the script on cab:
69+
70+
(top level directory)
71+
|
72+
|
73+
build
74+
|
75+
|
76+
cab-mpiicpc-14.0.174-ifort-14.0.174-opt
77+
| | |
78+
| | |
79+
base config objects
80+
81+
To install the base libraries, cd into the base subdirectory and
82+
execute the doinstall script located there:
83+
84+
cd build/cab-mpiicpc-14.0.174-ifort-14.0.174-opt/base
85+
doinstall
86+
87+
This will compile and install the base libraries, which currently
88+
consist of Hypre, Sundials and SAMRAI. The SAMRAI build takes a while, so
89+
patience is required.
90+
91+
Step 3: Build the AMPE code
92+
93+
Under the build/platform-compiler-optimization/objects directory
94+
created by the configuration step performed in Step 1, you will find a
95+
directory tree that mirrors all of the subdirectories of the top level
96+
source directory that contain a "Makefile.in" file.
97+
98+
To build the AMPE code, just cd to the objects directory amd gmake:
99+
100+
cd build/cab-mpiicpc-14.0.174-ifort-14.0.174-opt/objects
101+
gmake
102+
103+
The object files and executable are generated in the current
104+
directory. You can run the code from there. Note that the input
105+
files (which do not depend on the specific choice of
106+
platform-compiler-optimization) will still be over in the common
107+
source directory, so you will have to specify the path (or perhaps
108+
make a link). For example,
109+
110+
srun -n32 -ppdebug ampe2d top-level-directory/ampe/trunk/examples/AuNi_2D/9grains_AuNi_initial.input
111+
112+
113+
Miscellaneous notes:
114+
115+
1. The configuration performed in Step 1 generates the Makefile in
116+
build/cab-mpiicpc-14.0.174-ifort-14.0.174-opt/objects from the template Makefile.in in
117+
source. This includes the generation of the file Makefile.depend in
118+
source, which describes the build dependencies. This means that if
119+
any changes are made to the source code that could affect the
120+
dependencies, the configuration step should be redone.

LICENSE

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
Copyright (c) 2006-2018, Lawrence Livermore National Security, LLC.
2+
3+
Produced at the Lawrence Livermore National Laboratory
4+
5+
Written by:
6+
7+
Milo R. Dorr ([email protected])
8+
Jean-Luc Fattebert ([email protected])
9+
Mike E. Wickett ([email protected])
10+
11+
LLNL-CODE-747500.
12+
13+
All rights reserved.
14+
15+
This file is part of AMPE. For details, see https://github.com/LLNL/AMPE.
16+
17+
Redistribution and use in source and binary forms, with or without modification,
18+
are permitted provided that the following conditions are met:
19+
20+
- Redistributions of source code must retain the above copyright notice, this
21+
list of conditions and the disclaimer below.
22+
23+
- Redistributions in binary form must reproduce the above copyright notice,
24+
this list of conditions and the disclaimer (as noted below) in the
25+
documentation and/or other materials provided with the distribution.
26+
27+
- Neither the name of the LLNS/LLNL nor the names of its contributors may
28+
be used to endorse or promote products derived from this software without
29+
specific prior written permission.
30+
31+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
32+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
33+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
34+
DISCLAIMED. IN NO EVENT SHALL LAWRENCE LIVERMORE NATIONAL SECURITY, LLC, THE
35+
U.S. DEPARTMENT OF ENERGY OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
36+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
37+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
38+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
39+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
40+
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
41+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42+
43+
Additional BSD Notice
44+
45+
1. This notice is required to be provided under our contract with the U.S.
46+
Department of Energy (DOE). This work was produced at Lawrence Livermore
47+
National Laboratory under Contract No. DE-AC52-07NA27344 with the DOE.
48+
49+
2. Neither the United States Government nor Lawrence Livermore National
50+
Security, LLC nor any of their employees, makes any warranty, express or
51+
implied, or assumes any liability or responsibility for the accuracy,
52+
completeness, or usefulness of any information, apparatus, product, or process
53+
disclosed, or represents that its use would not infringe privately-owned rights.
54+
55+
3. Also, reference herein to any specific commercial products, process, or
56+
services by trade name, trademark, manufacturer or otherwise does not
57+
necessarily constitute or imply its endorsement, recommendation, or favoring by
58+
the United States Government or Lawrence Livermore National Security, LLC. The
59+
views and opinions of authors expressed herein do not necessarily state or
60+
reflect those of the United States Government or Lawrence Livermore National
61+
Security, LLC, and shall not be used for advertising or product endorsement
62+
purposes.
63+

README.md

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
AMPE v2.0
2+
=========
3+
4+
Adaptive Mesh Phase-field Evolution
5+
6+
Authors
7+
-------
8+
9+
* Milo R. Dorr ([email protected])
10+
* Jean-Luc Fattebert ([email protected])
11+
* Mike E. Wickett ([email protected])
12+
13+
Dependencies
14+
------------
15+
16+
* [Hypre] (https://github.com/LLNL/hypre)
17+
18+
* [SAMRAI] (https://github.com/LLNL/SAMRAI)
19+
20+
* [CPODES] (https://simtk.org/projects/cpodes)
21+
22+
* [Sundials] (https://github.com/LLNL/sundials)
23+
24+
* [HDF5] (https://support.hdfgroup.org/HDF5)
25+
26+
* [NetCDF] (https://www.unidata.ucar.edu/software/netcdf)
27+
28+
* [BOOST] (http://www.boost.org)
29+
30+
Since CPODES is currently not distributed with Sundials, and SAMRAI
31+
does not supports the lastest SUNDIALS release, modifications to
32+
these libraries had to be made. The modified libraries are distributed
33+
with this code under the 'base' directory and need to be built before
34+
building the main code.
35+
36+
References
37+
----------
38+
39+
M. R. Dorr, J.-L. Fattebert, M. E. Wickett, J. F. Belak, P. E. A. Turchi,
40+
"A Numerical Algorithm for the Solution of a Phase-Field Model of
41+
Polycrystalline materials",
42+
J. Comp. Phys. 229 (3), p. 626-641 (2010)
43+
44+
J.-L. Fattebert, M. E. Wickett, P. E. A. Turchi,
45+
"Phase-field modeling of coring during solidification of Au-Ni alloy using
46+
quaternions and CALPHAD input",
47+
ACTA MATERIALIA, 62, (2014), 89-104
48+
49+
Release
50+
-------
51+
52+
Copyright (c) 2018, Lawrence Livermore National Security, LLC.
53+
54+
Produced at the Lawrence Livermore National Laboratory.
55+
56+
All rights reserved.
57+
58+
Unlimited Open Source - BSD Distribution
59+
60+
For release details and restrictions, please read the LICENSE file.
61+
It is also linked here:
62+
- [LICENSE](./LICENSE)
63+
64+
`LLNL-CODE-747500` `OCEC-18-028`
65+

aclocal.m4

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# generated automatically by aclocal 1.9.2 -*- Autoconf -*-
2+
3+
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4+
# Free Software Foundation, Inc.
5+
# This file is free software; the Free Software Foundation
6+
# gives unlimited permission to copy and/or distribute it,
7+
# with or without modifications, as long as this notice is preserved.
8+
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11+
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12+
# PARTICULAR PURPOSE.
13+
14+
m4_include([config/arg-with-environment.m4])
15+
m4_include([config/btng.m4])
16+
m4_include([config/casc_cxx.m4])
17+
m4_include([config/casc_libs_and_headers.m4])
18+
m4_include([config/casc_misc.m4])
19+
m4_include([config/casc_mpi.m4])
20+
m4_include([config/compiler-id.m4])
21+
m4_include([config/compiling-boolean.m4])
22+
m4_include([config/compiling-namespace.m4])
23+
m4_include([config/split-libs-string.m4])
24+
m4_include([config/support-hdf5.m4])
25+
m4_include([config/support-boost.m4])
26+
m4_include([config/support-netcdf.m4])
27+
m4_include([config/support-hypre.m4])
28+
m4_include([config/support-restrict.m4])
29+
m4_include([config/variable-header-filenames.m4])

0 commit comments

Comments
 (0)