Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
183 commits
Select commit Hold shift + click to select a range
1161da1
Merge remote-tracking branch 'NREL/dev' into dev
bjonkman Aug 23, 2018
e795883
Adding safety on number of lines and number of fields per line when W…
ebranlard Feb 7, 2019
a88193f
_starting documentation of API changes
ebranlard Feb 8, 2019
81d8de4
_formatting of code blocks
ebranlard Feb 8, 2019
0133c55
_more formatting
ebranlard Feb 8, 2019
999d73e
_another codeblock attempt
ebranlard Feb 8, 2019
f9b5a12
Fix library settings for OpenFAST C++ API libraries
sayerhs Feb 15, 2019
f9833e3
Merge pull request #242 from sayerhs/d/issue-208
rafmudaf Feb 15, 2019
d504ea8
Feature/issue246 (#247)
ebranlard Feb 21, 2019
fe6c2b6
Setting last value of WaveDirArr (#237)
ebranlard Feb 21, 2019
c52f2b3
Fix out-of-bounds memory access in C++ API (#243)
sayerhs Feb 21, 2019
f67fd15
Fix out-of-bounds array error in C++ API
sayerhs Feb 25, 2019
8e3c697
Merge pull request #251 from sayerhs/d/memleak
rafmudaf Feb 25, 2019
8ae4cdb
Merge remote-tracking branch 'NREL/dev' into dev
bjonkman Mar 4, 2019
f848662
updates section 'Windows with Visual Studio regression test' of the d…
pschuenemann Mar 5, 2019
320e219
harmonizes path separators in section 'Windows with Visual Studio reg…
pschuenemann Mar 5, 2019
171abeb
Merge branch 'dev' of https://github.com/OpenFAST/OpenFAST into VS_re…
pschuenemann Mar 5, 2019
82d7fbe
Merge pull request #255 from pschuenemann/VS_reg-test_Doc_update
rafmudaf Mar 7, 2019
02834cf
Fixed error when NOutSteps is 0 (see #250)
ebranlard Mar 7, 2019
c192149
Updates to the headers and version strings
rafmudaf Mar 7, 2019
8077804
Try a table
rafmudaf Mar 7, 2019
03d58ec
Expand the tables
rafmudaf Mar 7, 2019
0561064
Minor grammar updates
rafmudaf Mar 7, 2019
87eb1eb
Allowing number of Morison number to be 0 (see #79)
ebranlard Mar 7, 2019
c65c60c
Note that line numbers are for final states
rafmudaf Mar 7, 2019
3e95416
Add BeamDyn api updates in v2.0.0
rafmudaf Mar 8, 2019
99f6e89
Header updates
rafmudaf Mar 8, 2019
b156ec2
Merge pull request #258 from ebranlard/feature/issue79b
rafmudaf Mar 8, 2019
510c6bf
Fix broken paths
rafmudaf Mar 8, 2019
8d7bffc
Bug fixes in v2.0.0 changes
rafmudaf Mar 11, 2019
d6d586e
Update api_change.rst
ebranlard Mar 12, 2019
45e76c6
Output of VTK is at a different rate (see #250 and #172)
ebranlard Mar 12, 2019
e471723
Remove FAST 7 to FAST 8 section
rafmudaf Mar 13, 2019
82e10bf
Add a modified line in openfast
rafmudaf Mar 13, 2019
b18bfcf
Merge pull request #259 from rafmudaf/docs/changelog
rafmudaf Mar 18, 2019
677fe77
Merge pull request #257 from ebranlard/feature/issue250b
rafmudaf Mar 18, 2019
d9b50c2
Add a continuous integration section to docs
rafmudaf Mar 7, 2019
e151cfb
update packages available in CI for ubuntu
rafmudaf Mar 7, 2019
d36ec64
Fix a case sensitivity problem
rafmudaf Mar 19, 2019
7e4ee6a
Reorganize and update the developer docs
rafmudaf Mar 19, 2019
88ec42e
Consolidate paragraphs into a list
rafmudaf Mar 19, 2019
63a0a01
Update docs related to the documentation itself
rafmudaf Mar 19, 2019
00e5198
Add a debugging section
rafmudaf Mar 19, 2019
a6d73e1
Update doc structure
rafmudaf Mar 19, 2019
3299c32
Add info for using gdb on mac
rafmudaf Mar 19, 2019
e4bf40b
Correct cygwin documentation to use any mirror
rafmudaf Mar 19, 2019
11076f0
Sneaking in github pr and issue template updates
rafmudaf Mar 19, 2019
e8a719b
Merge pull request #262 from rafmudaf/docs/general_updates
rafmudaf Mar 20, 2019
1e08790
Sync the git versions for windows and linux builds
rafmudaf Mar 20, 2019
4fd1a39
Merge pull request #263 from rafmudaf/dev
rafmudaf Mar 21, 2019
78c6072
InflowWind: Fix array index for invalid channels
bjonkman Mar 21, 2019
fcff548
HD: fixed typos in echo file
bjonkman Mar 20, 2019
231e529
Merge pull request #264 from bjonkman/b/BadIndex
rafmudaf Mar 22, 2019
cfe4c9e
Merge remote-tracking branch 'NREL/dev' into dev
bjonkman Mar 22, 2019
7f35719
Merge pull request #239 from ebranlard/feature/issue118
rafmudaf Mar 27, 2019
cd8e4df
Merge of #163 (BeamDyn: Updated integration scheme for nodal load out…
ashesh2512 Mar 27, 2019
864a2e9
Add a “version” module to remove git dependency
rafmudaf Apr 8, 2019
878d662
Updated Visual Studio builds for Windows
bjonkman Apr 9, 2019
17cb750
Merge pull request #7 from bjonkman/feature/version_dependency
rafmudaf Apr 9, 2019
ab84035
Merge pull request #269 from rafmudaf/feature/version_dependency
ebranlard Apr 9, 2019
8fabb64
Move all modules into one directory
rafmudaf Mar 27, 2019
0457111
Add unsteady aero driver to cmake config
rafmudaf Apr 8, 2019
f88c802
Consolidate utilities into share
rafmudaf Mar 27, 2019
d396434
Disable the Intel CI build
rafmudaf Mar 26, 2019
12049f5
Update the paths in the r-test submodule
rafmudaf Apr 9, 2019
a80b0a7
Small bug fixes and comment corrections
rafmudaf Nov 30, 2018
a753c0b
Make CygWin Sys-file consistent with others
rafmudaf Dec 1, 2018
af91ac4
Add CYGWIN to cmake system checks
rafmudaf Dec 1, 2018
bf83371
CMake: Use the OS variables over cmake_system_name
rafmudaf Dec 4, 2018
33947bd
Bug fixes for MinGW
rafmudaf Dec 6, 2018
f5ee01f
Documentation update for building with cygwin
rafmudaf Nov 30, 2018
5abb554
Capitalize lapack function calls for consistency
rafmudaf Jan 8, 2019
78125e0
Update the modules directory in the vs-build project
rafmudaf Apr 11, 2019
1d35037
Fix compiling for MinGW
rafmudaf Jan 9, 2019
a880601
Merge remote-tracking branch 'NREL/dev' into dev
bjonkman Apr 15, 2019
2708fd0
Add the AeroDyn README
rafmudaf Apr 16, 2019
a02ceac
Error handling performance improvement
bjonkman Apr 17, 2019
2a80aa4
Add Version module README
rafmudaf Apr 17, 2019
120d28c
Add NWTC Lib README
rafmudaf Apr 17, 2019
d3559a9
Update AeroDyn contact info
rafmudaf Apr 17, 2019
9d78432
Add OpenFAST Registry README
rafmudaf Apr 17, 2019
89ed2c6
Add InflowWind README
rafmudaf Apr 17, 2019
176c65e
Update the TurbSim README
rafmudaf Apr 17, 2019
dc26361
Add AeroDyn 14 README
rafmudaf Apr 17, 2019
bf5ab93
Update BeamDyn README
rafmudaf Apr 17, 2019
c556d72
Update contact info and link to legacy pages
rafmudaf Apr 17, 2019
0443c7d
Add the ElastoDyn README
rafmudaf Apr 17, 2019
b6cb0cd
Add the HydroDyn README
rafmudaf Apr 17, 2019
0a2493d
Add the ServoDyn README
rafmudaf Apr 17, 2019
2fef3cd
Add the SubDyn README
rafmudaf Apr 17, 2019
a9c5897
Grammar fix
rafmudaf Apr 17, 2019
f39fe64
Add FEAMooring README
rafmudaf Apr 17, 2019
877af1a
Add OrcaFlex Interface README
rafmudaf Apr 17, 2019
8009591
Add IceFloe and IceDyn README
rafmudaf Apr 17, 2019
58fbae9
Add the MAP README
rafmudaf Apr 17, 2019
daab535
Add MoorDyn documentation
rafmudaf Apr 17, 2019
9a882fb
Modularization Framework should be called FAST
rafmudaf Apr 17, 2019
970ca84
Add SuperController and OpenFOAM README
rafmudaf Apr 17, 2019
9454698
Add the ExtPtfm README
rafmudaf Apr 17, 2019
3390f73
Add OpenFAST Library README
rafmudaf Apr 17, 2019
a5cc443
Merge pull request #276 from bjonkman/b/ErrorProfiling
rafmudaf Apr 18, 2019
0dc8f13
Merge branch 'dev' into feature/directory_cleanup
rafmudaf Apr 18, 2019
d23e964
Merge pull request #270 from rafmudaf/feature/directory_cleanup
rafmudaf Apr 19, 2019
69e1ff4
Remove a redundant compiler flag
rafmudaf Apr 19, 2019
2d0f1f1
Use linux sys file for cygwin
rafmudaf Apr 19, 2019
f01cbd7
Merge pull request #271 from rafmudaf/build_system/cygwin
rafmudaf Apr 19, 2019
a9efc96
Partially revert changes to SysGnuWin
rafmudaf Apr 22, 2019
c0db95b
Fix integer-type in gfortran FSTAT
rafmudaf Apr 22, 2019
833a689
Merge pull request #279 from rafmudaf/dev
rafmudaf Apr 22, 2019
c3ff937
Only printing summary file when requested
ebranlard Apr 29, 2019
1cd8ea0
Always initializing WaveElevSeries if WaveElevXY is set
ebranlard Apr 29, 2019
e30241e
Member length computed using JointID lookup
ebranlard Apr 30, 2019
dfbea39
Merge pull request #284 from ebranlard/feature/sumprint
rafmudaf Apr 30, 2019
e2f199b
vs-build: add quotes around version info to allow spaces in path name
bjonkman May 7, 2019
b20de94
vs-build: fix for spaces in paths in other project files
bjonkman May 8, 2019
a8def92
Merge pull request #285 from ebranlard/feature/initXY
andrew-platt May 13, 2019
f0a9560
Consolidate to make the main page more meaningful
rafmudaf Apr 16, 2019
56c5f4e
Update the documentation version
rafmudaf Apr 16, 2019
5f57dc0
Add Intel performance page
rafmudaf May 16, 2019
f27c792
Add a section on future work
rafmudaf May 14, 2019
b5c7162
Add an Approach section
rafmudaf May 14, 2019
822956e
Improve the methodology explanation
rafmudaf May 14, 2019
711dc75
Cleanup, grammar updates
rafmudaf May 15, 2019
a589afd
Add a summary in the intro
rafmudaf May 15, 2019
ed4872d
Add info on how the profiling was accomplished
rafmudaf May 15, 2019
4ba365b
Add the VTune screenshot
rafmudaf May 16, 2019
72fa9af
Spell check!
rafmudaf May 16, 2019
02e6851
Merge pull request #292 from rafmudaf/docs/general_update
rafmudaf May 16, 2019
af3f710
HD syntax fix
bjonkman Jun 3, 2019
38cf227
ED linear: fix issue with OP if blade pitch isn't equal on all blades
bjonkman May 31, 2019
3883ab9
linearization: make sure lin files are closed if error occurs
bjonkman May 15, 2019
e3677b7
AD bug fix: node number in linearization error messages was wrong
bjonkman May 15, 2019
2d9230d
Merge pull request #294 from bjonkman/b/minor-bug-fixes
andrew-platt Jun 3, 2019
6c0d9c8
[BugFix] Update array bounds in calculation in Morrison.f90
andrew-platt Jun 21, 2019
1dda33d
Merge pull request #297 from andrew-platt/bug/HD_arraylimit
rafmudaf Jun 25, 2019
b4f4c81
Merge pull request #288 from bjonkman/b/vs-build-spaces
rafmudaf Jul 1, 2019
6c34332
TurbSim: fix index on user-defined profiles below grid
bjonkman Jul 18, 2019
cf2cdeb
IfW: initialize linearization index for lidar output channels
bjonkman Jul 18, 2019
f215319
SrvD: fix error handling
bjonkman Jul 18, 2019
a6bab14
Merge pull request #306 from bjonkman/b/minor_fixes
andrew-platt Jul 18, 2019
bab0bd3
Build c++ api in CI
rafmudaf Jul 19, 2019
e674b2e
Rework and improve (?) the travis config
rafmudaf Jul 19, 2019
bbb3428
Bug fix in linux build
rafmudaf Jul 19, 2019
259a8c9
Add compiler flags for CXX in CMAKE
rafmudaf Jul 23, 2019
58d1a68
Bug fix in Travis config
rafmudaf Jul 24, 2019
c9a4af4
Add c++ interface dependencies
rafmudaf Jul 20, 2019
d99ce4c
Improve the include matrix
rafmudaf Jul 25, 2019
db9cdc9
Use O2 optimization
rafmudaf Jul 25, 2019
b0e0771
Check for optimization flag
rafmudaf Jul 25, 2019
1230b5e
Dont update apt
rafmudaf Jul 25, 2019
bb12592
Try debug mode
rafmudaf Jul 25, 2019
bc3ae60
Bug fix in travis ci cmake flags
rafmudaf Jul 25, 2019
e5fff9a
Change search order for yaml-cpp library
rafmudaf Jul 25, 2019
247d244
Run BD driver cases in parallel
rafmudaf Jul 26, 2019
088ddc0
Merge pull request #313 from rafmudaf/bugfix/cpp_api
andrew-platt Jul 26, 2019
a12b3fe
Merge remote-tracking branch 'openfast/dev' into bugfix/map_build
rafmudaf Jul 26, 2019
ce4e10c
Fix an error message in HydroDyn
rafmudaf Jul 26, 2019
d9f44d5
Bug fix for #12, reversed member hydro coeffs (Closes #12)
ebranlard Jan 15, 2019
e05836e
Merge pull request #311 from rafmudaf/bugfix/map_build
andrew-platt Jul 26, 2019
d031f0b
Merge pull request #286 from ebranlard/feature/memberlength
rafmudaf Jul 26, 2019
10895d4
Merge pull request #314 from rafmudaf/bugfix/error_message
andrew-platt Jul 26, 2019
9c16bbf
Fix incorrect paths in regression test docs
rafmudaf Jul 26, 2019
49bb8df
Merge pull request #315 from rafmudaf/docs/bug_fix
rafmudaf Jul 26, 2019
acc3f98
Merge pull request #231 from ebranlard/feature/issue12
andrew-platt Jul 26, 2019
6b47293
Increase the default 2MB stack size to 16 MB
rafmudaf Aug 1, 2019
aa17ec9
Merge pull request #318 from rafmudaf/dev
rafmudaf Aug 1, 2019
05597e5
Add documentation for developer contribution
rafmudaf Aug 8, 2019
c51ce54
Improve grammar in the opening paragraphs
rafmudaf Aug 8, 2019
d16c606
Small AeroDyn Linearization Bug Fix
jjonkman Aug 23, 2019
83bd0ff
Merge pull request #324 from jjonkman/f/SmallAeroDynBug
andrew-platt Aug 23, 2019
307cdf6
Fix outdated r-test baselines and README
rafmudaf Aug 26, 2019
b9e760a
Merge pull request #326 from rafmudaf/testing/update_rtest
rafmudaf Aug 27, 2019
38fc45a
Merge pull request #321 from rafmudaf/dev
rafmudaf Aug 28, 2019
5f78880
Update linux-gnu regression test with results on Eagle (#333)
rafmudaf Sep 19, 2019
b05e73f
Added comments (including notes marked "mhall:") to Morison. (#291)
mattEhall Oct 1, 2019
0259e46
Remove the default dependency on the OpenFAST Registry (#337)
rafmudaf Oct 3, 2019
c854019
AD14: Restructure loop to fix optimization bug
rafmudaf Oct 21, 2019
de5b749
Merge pull request #348 from rafmudaf/bugfix/ad14_optimization_segfault
andrew-platt Oct 23, 2019
28bda56
Update support for OpenFAST-Simulink interface (#204)
bjonkman Oct 29, 2019
7714d34
Cleanup of SubDyn module (#351)
ebranlard Oct 30, 2019
52a05c3
Solve Option 2 Performance enhancements (#164)
bjonkman Nov 6, 2019
b2c1b99
Add an initial GitHub Actions workflow (#355)
rafmudaf Nov 6, 2019
33a4f84
Structural revision and updates to the existing documentation (#341)
rafmudaf Nov 6, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
26 changes: 10 additions & 16 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,24 @@ labels: "Type: Bug"
---

**Bug description**

A clear and concise description of the bug.
<A clear and concise description of the bug.>

**To Reproduce**

<Update the following list with your specific information.>
Steps to reproduce the behavior:
1. Compile with '...'
2. Run '...' case with '...' settings
3. Open '...' output
4. See the error

**Expected behavior**
<A clear and concise description of what you expected to happen.>

A clear and concise description of what you expected to happen.

**Screenshots**

If applicable, add screenshots to help explain your problem.
**Screenshots, if applicable**
<Add screenshots to help explain your problem.>

**OpenFAST Version**

Please provide as much detail as possible including git commit. The best information is a screenshot of the OpenFAST system description that prints when running OpenFAST:
<Please provide as much detail as possible including git commit. The best information is a screenshot of the OpenFAST system description that prints when running OpenFAST:>

```
**************************************************************************************************
Expand All @@ -52,11 +48,9 @@ Please provide as much detail as possible including git commit. The best informa
```

**System Information (please complete the following information):**

- OS: [e.g. Ubuntu 14.04 or macOS 10.12]
- Compiler: [e.g. GFortran 4.4]
- Compiler settings: [e.g. CMake flags or other settings]
- OS: <e.g. Ubuntu 14.04 or macOS 10.12>
- Compiler: <e.g. GFortran 4.4>
- Compiler settings: <e.g. CMake flags or other settings>

**Additional context**

Add any other context about the problem here.
<Add any other context about the problem here.>
12 changes: 4 additions & 8 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@ labels: 'Type: Enhancement'
---

**Is your feature request related to a problem? Please describe.**

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
<A clear and concise description of the problem.>

**Describe the solution you'd like**

A clear and concise description of what you want to happen.
<A clear and concise description of what you want to happen.>

**Describe alternatives you've considered**

A clear and concise description of any alternative solutions or features you've considered.
<A clear and concise description of any alternative solutions or features youve considered.>

**Additional context**

Add any other context or screenshots about the feature request here.
<Add any other context or screenshots about the feature request here.>
22 changes: 8 additions & 14 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@

Complete this sentence
**THIS PULL REQUEST __ [IS/IS NOT] __ READY TO MERGE**
**Complete this sentence**
THIS PULL REQUEST __ [IS/IS NOT] __ READY TO MERGE

**Feature or improvement description**

A clear and concise description of the new code.
<A clear and concise description of the new code.>

**Related issue, if one exists**

Link to a related GitHub Issue.
<Link to a related GitHub Issue.>

**Impacted areas of the software**

List any modules or other areas which should be impacted by this pull request. This helps to determine the verification tests.
<List any modules or other areas which should be impacted by this pull request. This helps to determine the verification tests.>

**Additional supporting information**
<Add any other context about the problem here.>

Add any other context about the problem here.

**Automated test results**

Add the automated test results (unit tests and regression tests) here, if they've been run.
For any failing tests, please provide justification.
**Test results, if applicable**
<Add the results from unit tests and regression tests here along with justification for any failing test cases.>
43 changes: 43 additions & 0 deletions .github/actions/compile-and-test/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#
# Copyright 2016 National Renewable Energy Laboratory
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

FROM rafmudaf/openfast-ubuntu:dev

# Move into the openfast directory and update
WORKDIR /openfast
RUN git fetch
RUN git pull
RUN git submodule update

# Move into the "build" directory and compile
WORKDIR /openfast/build
RUN cmake ..
RUN make -j4 install

# Run the tests

# BeamDyn-specific tests
RUN ctest -VV -j7 -R bd_
RUN ctest -VV -R beamdyn_utest

# OpenFAST linearization tests
RUN ctest -VV -j4 -L linear

# Subset of OpenFAST regression tests; do not run
## - 3, 4, 7, 14, 15, 16, since the free yaw is not well trusted
## - 9 because its super sensitive
## - 19, 20 because theyre too long
RUN ctest -VV -j8 -I 1,1,1,2,5,6,8,10,11,12,13,17,18,21,22,23,24,25
10 changes: 10 additions & 0 deletions .github/actions/compile-and-test/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: 'Compile and test'
description: 'Compile OpenFAST and run the tests'
author: 'NREL'
# inputs:
# build-type:
# description: 'Set the CMake build type: Release (-O3); RelWithDebInfo (-O2 -g); Debug (-g)'
# default: 'Release'
runs:
using: 'docker'
image: 'Dockerfile'
22 changes: 22 additions & 0 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

name: OpenFAST Build and Test

on: [push, pull_request]

# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [macOS-10.14, ubuntu-18.04]
# runs-on: docker://rafmudaf/openfast-ubuntu:alpha

jobs:
build-and-test:
runs-on: ubuntu-latest
name: OpenFAST tests on Ubuntu
steps:
- name: Checkout
uses: actions/checkout@master
with:
submodule: recursive
- name: Build and test step
uses: ./.github/actions/compile-and-test
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ __pycache__/*

# Build specific files
build*/
_build*/
install/
vs-build/

Expand All @@ -40,3 +41,6 @@ vs-build/
.vscode
.atom
.fortls

# backup files
*.asv
29 changes: 29 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

sphinx:
configuration: docs/conf.py

formats:
- htmlzip
- pdf
# - epub

python:
version: 3.7
install:
- requirements: docs/requirements.txt
system_packages: true

# select the docker image to use: stable | latest
build:
image: stable

sphinx:
builder: html
configuration: docs/conf.py
fail_on_warning: true
76 changes: 34 additions & 42 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,62 +7,55 @@

language: c

os:
- linux
- osx

env:
- FC=/usr/local/bin/gfortran-7; DOUBLE_PRECISION=ON
- FC=/usr/local/bin/gfortran-7; DOUBLE_PRECISION=OFF
- FC=/usr/bin/gfortran; DOUBLE_PRECISION=ON
- FC=/usr/bin/gfortran; DOUBLE_PRECISION=OFF
- FC=ifort; DOUBLE_PRECISION=ON; TRAVIS_BUILD_INTEL=YES
matrix:
include:
- os: linux
dist: bionic
env: FC=/usr/bin/gfortran-7; DOUBLE_PRECISION=OFF
- os: linux
dist: bionic
env: FC=/usr/bin/gfortran-7; DOUBLE_PRECISION=ON; CPP_API=ON; CMAKE_FLAGS="-DBUILD_OPENFAST_CPP_API=$CPP_API"
- os: linux
dist: bionic
env: FC=/usr/bin/gfortran-7; DOUBLE_PRECISION=ON; CPP_API=ON; CMAKE_FLAGS="-DBUILD_OPENFAST_CPP_API=$CPP_API -DGENERATE_TYPES=ON"
- os: osx
osx_image: xcode11
env: FC=/usr/local/bin/gfortran-7; DOUBLE_PRECISION=ON
- os: osx
osx_image: xcode11
env: FC=/usr/local/bin/gfortran-7; DOUBLE_PRECISION=OFF

# macos dependency install
addons:
homebrew:
packages:
- gcc@7
- yaml-cpp
- hdf5
- open-mpi
update: true

before_install:
# mac configuration
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade python; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gcc@7; fi

# linux configuration
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install gfortran; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libblas-dev liblapack-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pyenv shell 3.6.3; fi

# intel compiler
# this build requires setting an environment variable https://docs.travis-ci.com/user/environment-variables#defining-encrypted-variables-in-travisyml
# INTEL_SERIAL_NUMBER=XXXX-XXXXXXXX
- if [[ -n "${TRAVIS_BUILD_INTEL}" ]] ; then wget 'https://raw.githubusercontent.com/nemequ/icc-travis/master/install-icc.sh'; fi
- if [[ -n "${TRAVIS_BUILD_INTEL}" ]] ; then chmod 755 install-icc.sh; fi
- if [[ -n "${TRAVIS_BUILD_INTEL}" ]] ; then ./install-icc.sh --components ifort,icc,mkl; source ~/.bashrc; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install gfortran libblas-dev liblapack-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CPP_API" == "ON" ]]; then sudo apt-get install libopenmpi-dev libyaml-cpp-dev libhdf5-dev libxml2-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pyenv shell 3.7.1; fi

# common configuration
- pip3 install numpy

install:
- mkdir build && cd build
- cmake .. -DBUILD_TESTING=ON -DDOUBLE_PRECISION=$DOUBLE_PRECISION -DBUILD_SHARED_LIBS=ON
- make -j 8 install

matrix:
exclude:
- os: linux
env: FC=/usr/local/bin/gfortran-7; DOUBLE_PRECISION=ON
- os: linux
env: FC=/usr/local/bin/gfortran-7; DOUBLE_PRECISION=OFF
- os: osx
env: FC=/usr/bin/gfortran; DOUBLE_PRECISION=ON
- os: osx
env: FC=/usr/bin/gfortran; DOUBLE_PRECISION=OFF
- os: osx
env: FC=ifort; DOUBLE_PRECISION=ON; TRAVIS_BUILD_INTEL=YES
- cmake .. -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_TESTING=ON -DBUILD_SHARED_LIBS=ON -DDOUBLE_PRECISION=$DOUBLE_PRECISION $CMAKE_FLAGS
- cat CMakeCache.txt
- make -j4 install

script:
# beamdyn unit tests
- if [[ "$DOUBLE_PRECISION" == "ON" ]]; then ctest -VV -R beamdyn_utest; fi

# beamdyn regression tests
- if [[ "$DOUBLE_PRECISION" == "ON" ]]; then ctest -VV -R bd_; fi
- if [[ "$DOUBLE_PRECISION" == "ON" ]]; then ctest -j4 -VV -R bd_; fi

# subset of openfast regression tests
# do not run
Expand All @@ -72,4 +65,3 @@ script:
# CURRENTLY, TESTS FAIL WITH VERY MINOR DIFFERENCES
# - ctest -VV -j 18 -I 1,1,1,2,5,6,8,9,10,11,12,13,14,18,19,22,23,24,25,26
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ctest -j 18 -I 1,1,1,2,5,6,8,9,10,11,12,13,14,18,19,22,23,24,25,26 ; fi

Loading