-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
85 changed files
with
13,611 additions
and
14,716 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.1.0-alpha | ||
2.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
## Required packages | ||
|
||
# OpenMP library | ||
find_package( OpenMP ) | ||
if ( OpenMP_FOUND ) | ||
set( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${OpenMP_Fortran_FLAGS}") | ||
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") | ||
endif () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Set PKG-CONFIG package information | ||
set ( PROJECT_DESCRIPTION "Fortran library for reading molecular files." ) | ||
set ( PROJECT_DESCRIPTION "Fortran library with useful I/O utilities and functions." ) | ||
set ( PROJECT_URL "https://github.com/JureCerar/xslib" ) | ||
set ( LIBDIR "lib") | ||
set ( INCLUDEDIR "include") | ||
set ( LIBDIR "lib" ) | ||
set ( INCLUDEDIR "include" ) | ||
set ( INSTALL_LIBDIR ${CMAKE_INSTALL_PREFIX}/${LIBDIR} ) | ||
set ( INSTALL_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/${INCLUDEDIR} ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# | ||
# This file is part of libgmxfort | ||
# https://github.com/wesbarnett/libgmxfort | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,21 @@ | ||
# Default build type | ||
## Define default build type | ||
if ( NOT CMAKE_BUILD_TYPE ) | ||
set ( CMAKE_BUILD_TYPE RELEASE CACHE STRING "Build configuration 'Release' or 'Debug'." FORCE ) | ||
message ( STATUS "CMAKE_BUILD_TYPE not given, defaulting to RELEASE." ) | ||
set ( CMAKE_BUILD_TYPE "RELEASE" CACHE STRING "Build configuration 'RELEASE' or 'DEBUG'." FORCE ) | ||
message ( STATUS "CMAKE_BUILD_TYPE not given, defaulting to RELEASE.") | ||
else () | ||
message ( STATUS "CMAKE_BUILD_TYPE is: ${CMAKE_BUILD_TYPE}" ) | ||
message ( STATUS "CMAKE_BUILD_TYPE is: ${CMAKE_BUILD_TYPE}") | ||
endif () | ||
|
||
# Compiler options | ||
IF ( ${CMAKE_Fortran_COMPILER_ID} STREQUAL "GNU" ) | ||
set ( CMAKE_Fortran_FLAGS "-cpp -fopenmp" ) | ||
set ( CMAKE_Fortran_FLAGS_RELEASE "-O3 -march=native -pipe -funroll-loops -finline-functions -flto" ) | ||
set ( CMAKE_Fortran_FLAGS_DEBUG "-Og -g -fbounds-check -fbacktrace -ffpe-trap=invalid,zero,overflow,underflow" ) | ||
|
||
ELSEIF ( ${CMAKE_Fortran_COMPILER_ID} STREQUAL "Intel" ) | ||
set ( CMAKE_Fortran_FLAGS "-fpp -openmp" ) | ||
set ( CMAKE_Fortran_FLAGS_RELEASE "-O3 -FR -xHost -ipo -ip -unroll -vec-report0 -trace" ) | ||
set ( CMAKE_Fortran_FLAGS_DEBUG "-O1 -g -C -traceback -check all -debug all -fpe-model strict -fpe-all=0 –no-ftz" ) | ||
|
||
ELSEIF ( ${CMAKE_Fortran_COMPILER_ID} STREQUAL "PGI" ) | ||
set ( CMAKE_Fortran_FLAGS "-mp" ) | ||
set ( CMAKE_Fortran_FLAGS_RELEASE "-O3 -Munroll -Mipa -Minline -Mvect" ) | ||
set ( CMAKE_Fortran_FLAGS_DEBUG "-O1 -g -C -Mbounds -Mchkptr -Mchkstk -traceback -Ktrap=fp –Minform=inform") | ||
|
||
ENDIF () | ||
|
||
|
||
# Message back flags () | ||
IF ( ${CMAKE_BUILD_TYPE} STREQUAL "DEBUG" ) | ||
message ( STATUS "CMAKE_Fortran_FLAGS: ${CMAKE_Fortran_FLAGS}" ) | ||
message ( STATUS "CMAKE_Fortran_FLAGS_RELEASE: ${CMAKE_Fortran_FLAGS_RELEASE}" ) | ||
message ( STATUS "CMAKE_Fortran_FLAGS_DEBUG: ${CMAKE_Fortran_FLAGS_DEBUG}" ) | ||
## FORTRAN Compiler | ||
if ( ${CMAKE_Fortran_COMPILER_ID} STREQUAL "GNU" ) | ||
set ( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -march=native" ) | ||
set ( CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -fexcess-precision=fast -funroll-loops -finline-functions" ) | ||
set ( CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -Og -Wall -fcheck=all -fbacktrace" ) | ||
endif () | ||
|
||
ENDIF () | ||
## C Compiler | ||
if ( ${CMAKE_C_COMPILER_ID} STREQUAL "GNU" ) | ||
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native" ) | ||
set ( CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -fexcess-precision=fast -funroll-loops -finline-functions" ) | ||
set ( CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Og -Wall" ) | ||
endif () |
Oops, something went wrong.