Skip to content

Commit

Permalink
Release v2.6.0 (#751)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafmudaf authored May 11, 2021
2 parents 718d46f + 59d9afa commit bbbb1ca
Show file tree
Hide file tree
Showing 167 changed files with 52,548 additions and 30,234 deletions.
18 changes: 0 additions & 18 deletions .github/actions/cmake-config/action.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/actions/compile/action.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/actions/git-update/action.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/actions/tests-gluecode-openfast/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ runs:
- run: |
ctest -VV -L linear -E Ideal
ctest -VV -j8 -I 1,1,1,2,3,4,5,6,7,8,10,11,12,13,14,15,17,18,21,22,23,24,25,26,27,28,29
working-directory: "/openfast/build"
working-directory: ${{runner.workspace}}/build
shell: bash
# OpenFAST linearization tests
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/tests-module-aerodyn/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ runs:
using: "composite"
steps:
- run: ctest -VV -R fvw_utest
working-directory: "/openfast/build"
working-directory: ${{runner.workspace}}/build
shell: bash
2 changes: 1 addition & 1 deletion .github/actions/tests-module-beamdyn/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ runs:
ctest -VV -j7 -R bd_
fi
working-directory: "/openfast/build"
working-directory: ${{runner.workspace}}/build
shell: bash
2 changes: 1 addition & 1 deletion .github/actions/tests-module-hydrodyn/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ runs:
using: "composite"
steps:
- run: ctest -VV -j7 -R hd_
working-directory: "/openfast/build"
working-directory: ${{runner.workspace}}/build
shell: bash
2 changes: 1 addition & 1 deletion .github/actions/tests-module-inflowwind/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ runs:
using: "composite"
steps:
- run: ctest -VV -R inflowwind_utest
working-directory: "/openfast/build"
working-directory: ${{runner.workspace}}/build
shell: bash
2 changes: 1 addition & 1 deletion .github/actions/tests-module-nwtclibrary/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ runs:
using: "composite"
steps:
- run: ctest -VV -R nwtc_library_utest
working-directory: "/openfast/build"
working-directory: ${{runner.workspace}}/build
shell: bash
151 changes: 77 additions & 74 deletions .github/workflows/automated-dev-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,131 +15,134 @@ on:
- 'share/**'
- 'vs-build/**'

env:
FORTRAN_COMPILER: gfortran-10
NUM_PROCS: 8

# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [macOS-10.14, ubuntu-18.04]

jobs:
regression-test:
runs-on: ubuntu-latest
container:
image: rafmudaf/openfast-ubuntu:dev
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@main
with:
submodules: recursive
- name: Git Update
uses: ./.github/actions/git-update
with:
repository: $GITHUB_REPOSITORY
ref: $GITHUB_REF

- name: Configure CMake
uses: ./.github/actions/cmake-config
with:
build-type: RelWithDebInfo
additional-flags: -DBUILD_TESTING=ON -DCTEST_PLOT_ERRORS=ON
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install numpy Bokeh==1.4
- name: Compile Drivers
uses: ./.github/actions/compile
with:
build-target: 'beamdyn_driver hydrodyn_driver'
- name: Compile OpenFAST
- name: Setup Workspace
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure Build
working-directory: ${{runner.workspace}}/build
run: |
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=${{runner.workspace}}/install \
-DCMAKE_Fortran_COMPILER:STRING=${{env.FORTRAN_COMPILER}} \
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
-DBUILD_TESTING:BOOL=ON \
-DCTEST_PLOT_ERRORS:BOOL=ON \
${GITHUB_WORKSPACE}
- name: Build OpenFAST
# if: contains(github.event.head_commit.message, 'Action - Test All') || contains(github.event.pull_request.labels.*.name, 'Action - Test All')
uses: ./.github/actions/compile
with:
build-target: 'regression_tests'
working-directory: ${{runner.workspace}}/build
run: cmake --build . --target install -- -j ${{env.NUM_PROCS}}

- name: 'Run BeamDyn tests'
- name: Run BeamDyn tests
uses: ./.github/actions/tests-module-beamdyn
with:
test-target: regression
- name: 'Run HydroDyn tests'
- name: Run HydroDyn tests
uses: ./.github/actions/tests-module-hydrodyn
- name: 'Run OpenFAST tests'
- name: Run OpenFAST tests
# if: contains(github.event.head_commit.message, 'Action - Test All') || contains(github.event.pull_request.labels.*.name, 'Action - Test All')
uses: ./.github/actions/tests-gluecode-openfast

- name: 'If failure, post test files'
- name: Failing test artifacts
uses: actions/upload-artifact@v2
if: failure()
with:
name: test-results
path: |
/openfast/build/reg_tests/modules
/openfast/build/reg_tests/glue-codes/openfast
!/openfast/build/reg_tests/glue-codes/openfast/5MW_Baseline
!/openfast/build/reg_tests/glue-codes/openfast/AOC
!/openfast/build/reg_tests/glue-codes/openfast/AWT27
!/openfast/build/reg_tests/glue-codes/openfast/SWRT
!/openfast/build/reg_tests/glue-codes/openfast/UAE_VI
!/openfast/build/reg_tests/glue-codes/openfast/WP_Baseline
${{runner.workspace}}/build/reg_tests/modules
${{runner.workspace}}/build/reg_tests/glue-codes/openfast
!${{runner.workspace}}/build/reg_tests/glue-codes/openfast/5MW_Baseline
!${{runner.workspace}}/build/reg_tests/glue-codes/openfast/AOC
!${{runner.workspace}}/build/reg_tests/glue-codes/openfast/AWT27
!${{runner.workspace}}/build/reg_tests/glue-codes/openfast/SWRT
!${{runner.workspace}}/build/reg_tests/glue-codes/openfast/UAE_VI
!${{runner.workspace}}/build/reg_tests/glue-codes/openfast/WP_Baseline
unit-test:
runs-on: ubuntu-latest
container:
image: rafmudaf/openfast-ubuntu:dev
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@main
with:
submodules: recursive
- name: Git Update
uses: ./.github/actions/git-update
with:
repository: $GITHUB_REPOSITORY
ref: $GITHUB_REF
- name: Setup
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure
working-directory: ${{runner.workspace}}/build
run: |
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=${{runner.workspace}}/install \
-DCMAKE_Fortran_COMPILER:STRING=${{env.FORTRAN_COMPILER}} \
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
-DBUILD_TESTING:BOOL=ON \
${GITHUB_WORKSPACE}
- name: Configure CMake
uses: ./.github/actions/cmake-config
with:
build-type: RelWithDebInfo
additional-flags: -DBUILD_TESTING=ON

- name: Compile Unit Tests
uses: ./.github/actions/compile
with:
build-target: 'unit_tests'
- name: Build unit tests
working-directory: ${{runner.workspace}}/build
run: cmake --build . --target unit_tests -- -j ${{env.NUM_PROCS}}

- name: 'Run NWTC Library tests'
- name: Run NWTC Library tests
uses: ./.github/actions/tests-module-nwtclibrary
- name: 'Run AeroDyn tests'
- name: Run AeroDyn tests
uses: ./.github/actions/tests-module-aerodyn
- name: 'Run BeamDyn tests'
- name: Run BeamDyn tests
uses: ./.github/actions/tests-module-beamdyn
with:
test-target: unit
- name: 'Run InflowWind tests'
- name: Run InflowWind tests
uses: ./.github/actions/tests-module-inflowwind

compile-all-single-precision:
# Test if single precision compile completes.
# Compiles all targets excluding tests.
# Do not run the test suite.

runs-on: ubuntu-latest
container:
image: rafmudaf/openfast-ubuntu:dev
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@main
with:
submodules: recursive
- name: Git Update
uses: ./.github/actions/git-update
with:
repository: $GITHUB_REPOSITORY
ref: $GITHUB_REF
- name: Configure CMake
uses: ./.github/actions/cmake-config
with:
build-type: Debug
additional-flags: -DDOUBLE_PRECISION=OFF
- name: Compile OpenFAST
uses: ./.github/actions/compile
with:
build-target: 'all'
- name: simple-test
working-directory: /openfast/build
- name: Setup
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure
working-directory: ${{runner.workspace}}/build
run: |
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=${{runner.workspace}}/install \
-DCMAKE_Fortran_COMPILER:STRING=${{env.FORTRAN_COMPILER}} \
-DCMAKE_BUILD_TYPE:STRING=Debug \
-DDOUBLE_PRECISION:BOOL=OFF \
${GITHUB_WORKSPACE}
- name: Build all
working-directory: ${{runner.workspace}}/build
run: cmake --build . --target all -- -j ${{env.NUM_PROCS}}
- name: Test
working-directory: ${{runner.workspace}}/build
run: ./glue-codes/openfast/openfast -v
18 changes: 13 additions & 5 deletions cmake/OpenfastFortranOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ macro(set_fast_gfortran)
# Disable stack reuse within routines: issues seen with gfortran 9.x, but others may also exhibit
# see section 3.16 of https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc.pdf
# and https://github.com/OpenFAST/openfast/pull/595
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fstack-reuse='none'")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fstack-reuse=none")

# Deal with Double/Single precision
if (DOUBLE_PRECISION)
Expand All @@ -120,7 +120,7 @@ macro(set_fast_gfortran)

# debug flags
if(CMAKE_BUILD_TYPE MATCHES Debug)
set( CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -fcheck=all -pedantic -fbacktrace " )
set( CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -fcheck=all,no-array-temps -pedantic -fbacktrace " )
endif()

if(CYGWIN)
Expand Down Expand Up @@ -158,12 +158,16 @@ macro(set_fast_intel_fortran_posix)
# Deal with Double/Single precision
if (DOUBLE_PRECISION)
add_definitions(-DOPENFAST_DOUBLE_PRECISION)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -r8 -double_size 128")
if("${CMAKE_Fortran_COMPILER_VERSION}" VERSION_GREATER "19")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -r8 -double-size 128")
else()
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -r8 -double_size 128")
endif()
endif (DOUBLE_PRECISION)

# debug flags
if(CMAKE_BUILD_TYPE MATCHES Debug)
set( CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -check all -traceback" )
set( CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -check all,no-array-temps -traceback" )
endif()

# OPENMP
Expand Down Expand Up @@ -204,7 +208,11 @@ macro(set_fast_intel_fortran_windows)
# Deal with Double/Single precision
if (DOUBLE_PRECISION)
add_definitions(-DOPENFAST_DOUBLE_PRECISION)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} /real_size:64 /double_size:128")
if("${CMAKE_Fortran_COMPILER_VERSION}" VERSION_GREATER "19")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} /real-size:64 /double-size:128")
else()
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} /real_size:64 /double_size:128")
endif()
endif (DOUBLE_PRECISION)

# increase the default 2MB stack size to 16 MB
Expand Down
19 changes: 19 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

# You can set these variables from the command line.
ALLSPHINXOPTS = -c conf.py
SPHINXBUILD = sphinx-build
PAPER =
ALLSPHINXOPTS = -d _build/doctrees $(SPHINXOPTS) .

BUILDDIR = _build


all: html

$(BUILDDIR):
mkdir $(BUILDDIR)

html: $(BUILDDIR)
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)
@echo
@echo "Build finished. The HTML pages are in _build/html."
Binary file modified docs/OtherSupporting/OutListParameters.xlsx
Binary file not shown.
Loading

0 comments on commit bbbb1ca

Please sign in to comment.