forked from OpenMDAO/OpenMDAO
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:OpenMDAO/openmdao
- Loading branch information
Showing
22 changed files
with
2,904 additions
and
199 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ install: | |
# keeping numpy pinned at 1.12 because pySNOPT dies with 1.13 because numpy broke callback | ||
- conda install --yes python=$PY numpy==1.12 scipy nose sphinx mock swig | ||
|
||
# trying a manual install of pyoptsparse | ||
# install pyoptsparse | ||
- wget https://bitbucket.org/mdolab/pyoptsparse/get/tip.zip; | ||
- unzip tip.zip; | ||
- cd mdolab-pyoptsparse*; | ||
|
@@ -112,9 +112,9 @@ deploy: | |
skip_cleanup: true | ||
script: | ||
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then | ||
if [ "$MPI" ] && [ "$PY" = "3.4" ]; then | ||
if [ "$MPI" ] && [ "$PY" = "3.6" ]; then | ||
rsync -r --delete-after -v _build/html/* [email protected]:webapps/twodocversions/latest; | ||
fi | ||
fi | ||
on: | ||
branch: master | ||
branch: master |
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,22 @@ | ||
#!/usr/bin/env python | ||
# | ||
# usage: extcode_paraboloid.py input_filename output_filename | ||
# | ||
# Read the values of `x` and `y` from input file | ||
# and write the value of `f_xy` to output file. | ||
|
||
if __name__ == '__main__': | ||
import sys | ||
|
||
input_filename = sys.argv[1] | ||
output_filename = sys.argv[2] | ||
|
||
with open(input_filename, 'r') as input_file: | ||
file_contents = input_file.readlines() | ||
|
||
x, y = [float(f) for f in file_contents] | ||
|
||
f_xy = (x-3.0)**2 + x*y + (y+4.0)**2 - 3.0 | ||
|
||
with open(output_filename, 'w') as output_file: | ||
output_file.write('%f\n' % f_xy) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.