Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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