diff --git a/CMakeLists.txt b/CMakeLists.txt index 5beacdf0a9..4954c115b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,6 +79,7 @@ set(FAST_MODULES_LOCAL extptfm openfoam supercontroller + turbsim fast-library ) diff --git a/modules-local/turbsim/CMakeLists.txt b/modules-local/turbsim/CMakeLists.txt new file mode 100644 index 0000000000..7d4640ac6c --- /dev/null +++ b/modules-local/turbsim/CMakeLists.txt @@ -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) diff --git a/modules-local/turbsim/src/TurbSim_Types.f90 b/modules-local/turbsim/src/TurbSim_Types.f90 index de2952e600..3e99754b08 100644 --- a/modules-local/turbsim/src/TurbSim_Types.f90 +++ b/modules-local/turbsim/src/TurbSim_Types.f90 @@ -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.