-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from jacobwilliams/develop
Develop
- Loading branch information
Showing
11 changed files
with
520 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# Simple build script. | ||
# | ||
# Requires: FoBiS and Ford | ||
# | ||
|
||
MODCODE='slsqp_module.f90' # module file name | ||
LIBOUT='libslsqp.a' # name of library | ||
DOCDIR='./doc/' # build directory for documentation | ||
SRCDIR='./src/' # library source directory | ||
TESTSRCDIR='./src/tests/' # unit test source directory | ||
BINDIR='./bin/' # build directory for unit tests | ||
LIBDIR='./lib/' # build directory for library | ||
FORDMD='slsqp.md' # FORD config file name | ||
|
||
#compiler flags: | ||
|
||
#FCOMPILER='gnu' #Set compiler to gfortran | ||
#FCOMPILERFLAGS='-c -O2 -std=f2008' | ||
|
||
FCOMPILER='intel' #Set compiler to ifort | ||
FCOMPILERFLAGS='-c -O2' | ||
|
||
#build using FoBiS: | ||
|
||
if hash FoBiS.py 2>/dev/null; then | ||
|
||
echo "Building library..." | ||
|
||
FoBiS.py build -compiler ${FCOMPILER} -cflags "${FCOMPILERFLAGS}" -dbld ${LIBDIR} -s ${SRCDIR} -dmod ./ -dobj ./ -t ${MODCODE} -o ${LIBOUT} -mklib static -colors | ||
|
||
echo "Building test programs..." | ||
|
||
FoBiS.py build -compiler ${FCOMPILER} -cflags "${FCOMPILERFLAGS}" -dbld ${BINDIR} -s ${TESTSRCDIR} -dmod ./ -dobj ./ -colors -libs ${LIBDIR}${LIBOUT} --include ${LIBDIR} | ||
|
||
else | ||
echo "FoBiS.py not found! Cannot build library. Install using: sudo pip install FoBiS.py" | ||
fi | ||
|
||
# build the documentation using FORD: | ||
|
||
if hash ford 2>/dev/null; then | ||
|
||
echo "Building documentation..." | ||
|
||
ford ${FORDMD} | ||
|
||
else | ||
echo "Ford not found! Cannot build documentation. Install using: sudo pip install ford" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "." | ||
} | ||
], | ||
"settings": { | ||
"files.trimTrailingWhitespace": true, | ||
"editor.insertSpaces": true, | ||
"editor.tabSize": 4, | ||
"editor.trimAutoWhitespace": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.