Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
feature-scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Community
feature-scripts
Commits
e9c4f977
Commit
e9c4f977
authored
Jun 30, 2017
by
Mark Olesen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: update legacyCompile to use separate config files
parent
c0aae671
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
478 additions
and
307 deletions
+478
-307
legacyCompile/README.md
legacyCompile/README.md
+23
-26
legacyCompile/legacyCompile
legacyCompile/legacyCompile
+349
-281
legacyCompile/v1612.cfg
legacyCompile/v1612.cfg
+53
-0
legacyCompile/v1706.cfg
legacyCompile/v1706.cfg
+53
-0
No files found.
legacyCompile/README.md
View file @
e9c4f977
...
...
@@ -52,18 +52,17 @@ and package versions, it may not work for all users and environments.
---
##
Script
Configuration
## Configuration
Users need to define the desired packages and versions to use for the
OpenFOAM compilation. The packages and versions need to be input under the
paragraph
`USER INPUT (2)
`
, stating whether the default version is to be
section
`[software]
`
, stating whether the default version is to be
used, or the user needs to use a different version. If both entries have
information, the user-preference will prevail. In any case, a suitable
tar/zip file with packageName-versionNumber needs to be placed under subdir
`packages/`
. The value
`ompiType`
refers to the openmpi type (system|third).
# USER INPUT (2)
# ~~~~~~~~~~~~~~
[software]
# Preferred software versions etc. Use 'third' for ThirdParty.
#---------------------+-------------------+-------------------+
# package | default | user-preference |
...
...
@@ -95,7 +94,14 @@ tar/zip file with packageName-versionNumber needs to be placed under subdir
## Usage
./legacyCompile [OPTION] OPERATION [...OPERATION]
./legacyCompile [OPTIONS] OPERATION [...OPERATION] configFile
options
:
-purge Purge old directories before unpacking (CAUTION)
-int32 | -int64 Label width
-SP | -DP Precision
-sigfpe | -no-sigfpe Activate/deactivate FOAM_SIGFPE handling
-help
operations
:
-unpack Unpack sources, configure
-third Compile ThirdParty
...
...
@@ -104,15 +110,6 @@ tar/zip file with packageName-versionNumber needs to be placed under subdir
-all Alias for -unpack -third -foam
-rebuild Alias for -third -foam
options
:
-purge Purge old directories before unpacking (CAUTION)
-help
Config options
:
-int32 | -int64 Label width (default
:
32)
-SP | -DP Precision (default
:
DP)
-sigfpe |-no-sigfpe Activate/deactivate FOAM_SIGFPE handling
The script contains the three essential operations
:
...
...
@@ -127,43 +124,43 @@ unpack stage).
*
To compile first time (from scratch) with default label size and precision
:
./legacyCompile -all
./legacyCompile -all
configFile
*
To repeat the same, **overwriting** any existing installation
:
./legacyCompile -all -purge
./legacyCompile -all -purge
configFile
*
To unpack all packages and configure some OpenFOAM settings without
compiling
:
./legacyCompile -unpack
./legacyCompile -unpack -purge
# c
aution: removes existing installation
./legacyCompile -unpack
configFile
./legacyCompile -unpack -purge
configFile
# C
aution: removes existing installation
To compile with 64 bit label size in single precission
:
./legacyCompile -all -int64 -SP
./legacyCompile -all -int64 -SP
configFile
If you change your third-party package selections or the preferred
configuration (SP, DP etc), you will need the `-unpack` operation,
which also includes some configuration operations.
./legacyCompile -unpack
./legacyCompile -unpack
configFile
To (re)compile ThirdParty and OpenFOAM individually
:
./legacyCompile -unpack -third -purge
./legacyCompile -unpack -third -purge
configFile
(to compile ThirdParty from scratch)
./legacyCompile -foam
./legacyCompile -foam
configFile
(to compile OpenFOAM from existing ThirdParty)
To compile with 32 bit label size in single precission
:
./legacyCompile -all -int64 -SP
./legacyCompile -all -int64 -SP
configFile
---
...
...
@@ -183,4 +180,4 @@ building Clang), you should remove the corrsponding logfile(s) before
recompiling with the '-unpack -third
`
options.
---
201
6-12-21
201
7-06-29
legacyCompile/legacyCompile
View file @
e9c4f977
This diff is collapsed.
Click to expand it.
legacyCompile/v1612.cfg
0 → 100644
View file @
e9c4f977
#------------------------------------------------------------------------------
# File
# v1612.cfg
#
# Description
# Configuration file for legacyCompile
#------------------------------------------------------------------------------
# Top-level package information
[package]
FoamVersion=v1612+
OFdirName=OpenFOAM-v1612+
TPdirName=ThirdParty-v1612+
# If source packages differ from the directory names, uncomment and adjust
# OFsource=OpenFOAM-plus
# TPsource=ThirdParty-plus
# Architecture
[arch]
label=32
scalar=64
sigfpe=false
[software]
# Preferred software versions etc. Use 'third' for ThirdParty.
#---------------------+-------------------+-------------------+
# package | default | user-preference |
#---------------------+-------------------+-------------------+
boost boost_1_62_0
cgal CGAL-4.9
fftw fftw-3.3.5
openmpi openmpi-1.10.4
scotch scotch_6.0.3
paraview ParaView-5.0.1
cmake cmake-system cmake-3.5.2
vtk none VTK-7.1.0
mesa none mesa-13.0.1
qt qt-system qt-4.8.7
llvm llvm-3.7.0
gcc system gcc-4.8.5
gmp system gmp-6.1.1
mpfr system mpfr-3.1.5
mpc system mpc-1.0.3
ompiType system third
compilerType system third
compiler Gcc Clang
# -----------------------------------------------------------------------------
legacyCompile/v1706.cfg
0 → 100644
View file @
e9c4f977
#------------------------------------------------------------------------------
# File
# v1706.cfg
#
# Description
# Configuration file for legacyCompile
#------------------------------------------------------------------------------
# Top-level package information
[package]
FoamVersion=v1706
OFdirName=OpenFOAM-v1706
TPdirName=ThirdParty-v1706
# If source packages differ from the directory names, uncomment and adjust
# OFsource=OpenFOAM-plus
# TPsource=ThirdParty-plus
# Architecture
[arch]
label=32
scalar=32
sigfpe=false
[software]
# Preferred software versions etc. Use 'third' for ThirdParty.
#---------------------+-------------------+-------------------+
# package | default | user-preference |
#---------------------+-------------------+-------------------+
boost boost_1_64_0
cgal CGAL-4.9.1
fftw fftw-3.3.6-pl1
openmpi openmpi-1.10.4
scotch scotch_6.0.3
paraview ParaView-5.4.0
cmake cmake-system cmake-3.5.2
vtk none VTK-8.1.0
mesa none mesa-17.1.1
qt qt-system qt-4.8.7
llvm llvm-3.7.0
gcc system gcc-4.8.5
gmp system gmp-6.1.1
mpfr system mpfr-3.1.5
mpc system mpc-1.0.3
ompiType system third
compilerType system third
compiler Gcc Clang
# -----------------------------------------------------------------------------
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment