Skip to content

Commit

Permalink
Merge pull request NREL#7 from nikhar-abbas/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Sebastiaan Mulders authored Nov 5, 2019
2 parents 20168d4 + 3573ae3 commit 8f2ce83
Show file tree
Hide file tree
Showing 33 changed files with 663 additions and 1,082 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Source/Obj_lin64
*.mod
Source/x64/
Source/Release/
Build/

# Archive
Scripts/CompileDISCONHereCopyRun\.cmd
Expand Down
30 changes: 30 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

cmake_minimum_required(VERSION 3.6)
project(DRC_Fortran VERSION 0.1 LANGUAGES Fortran)

set(CMAKE_Fortran_MODULE_DIRECTORY "${CMAKE_BINARY_DIR}/ftnmods")

# Sets the optimization level to -O2 and includes -g
set(CMAKE_BUILD_TYPE "RelWithDebInfo")

# Enable .dll export
if(APPLE OR UNIX)
if (CMAKE_Fortran_COMPILER_ID STREQUAL "Intel")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -DIMPLICIT_DLLEXPORT ")
else()
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -DIMPLICIT_DLLEXPORT -ffree-line-length-0")
endif()
endif()

set(SOURCES
src/Constants.f90
src/ControllerBlocks.f90
src/Controllers.f90
src/DISCON.F90
src/ROSCO_Types.f90
src/Filters.f90
src/Functions.f90
src/ReadSetParameters.f90
)

add_library(discon SHARED ${SOURCES})
Binary file removed DISCON/DISCON_glin64.so
Binary file not shown.
137 changes: 0 additions & 137 deletions Parameter_files/Cp_Ct_Cq.txt

This file was deleted.

91 changes: 0 additions & 91 deletions Parameter_files/DTU10MW/DISCON.IN

This file was deleted.

Loading

0 comments on commit 8f2ce83

Please sign in to comment.