Skip to content

Commit

Permalink
Merge pull request #2 from rafaelmudafort/feature/turbsim_cmake
Browse files Browse the repository at this point in the history
adds cmake to turbsim; adds turbsim to openfast
  • Loading branch information
ghaymanNREL authored Sep 13, 2017
2 parents 1e8933e + ab2c1e9 commit 00c6d8a
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ set(FAST_MODULES_LOCAL
extptfm
openfoam
supercontroller
turbsim
fast-library
)

Expand Down
37 changes: 37 additions & 0 deletions modules-local/turbsim/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#
# 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.
#

set(MODULE_SOURCES
src/BlankModVKM.f90
src/CohStructures.f90
src/Profiles.f90
src/RandNum.f90
src/Root_Searching.f90
src/TS_FileIO.f90
src/TSsubs.f90
src/TurbSim.f90
src/TurbSim_Types.f90
src/VelocitySpectra.f90
)

add_library(turbsimlib ${MODULE_SOURCES})
target_link_libraries(turbsimlib nwtclibs)

install(TARGETS turbsimlib
EXPORT "${CMAKE_PROJECT_NAME}Libraries"
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
2 changes: 1 addition & 1 deletion modules-local/turbsim/src/TurbSim_Types.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MODULE TurbSim_Types

use NWTC_Library

TYPE(ProgDesc), PARAMETER :: TurbSim_Ver = ProgDesc( 'TurbSim', 'v2.00.08a-bjj', '18-Jul-2017' )
TYPE(ProgDesc), PARAMETER :: TurbSim_Ver = ProgDesc( 'TurbSim', '', '' )

LOGICAL, PARAMETER :: MVK = .FALSE. ! This parameter has been added to replace the NON-STANDARD compiler directive previously used
LOGICAL, PARAMETER :: PeriodicY = .FALSE. !.TRUE.
Expand Down

0 comments on commit 00c6d8a

Please sign in to comment.