Skip to content
Open
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
46 changes: 36 additions & 10 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,41 @@
types:
stages:
- SCA
- style
- build
- test
- deploy


GQMCT:
type: build
Ising:
stage: build
script:
- . configure.sh
- cd Libraries
- make
- cd ..
- cd Prog_8
- make

- cmake -E make_directory build
- cd build
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
- cmake --build . --target qmct_Hub --config Release

Hubbard:
stage: build
script:
- cmake -E make_directory build
- cd build
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
- cmake --build . --target qmct_Hub --config Release

SPT:
stage: build
script:
- cmake -E make_directory build
- cd build
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
- cmake --build . --target qmct_SPT --config Release

Analysis:
stage: build
script:
- cmake -E make_directory build
- cd build
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
- cmake --build . --target cov_eq --config Release
- cmake --build . --target cov_tau --config Release
- cmake --build . --target jackv5 --config Release
14 changes: 0 additions & 14 deletions Analysis_7/Compile_cov

This file was deleted.

14 changes: 0 additions & 14 deletions Analysis_7/Compile_en

This file was deleted.

14 changes: 0 additions & 14 deletions Analysis_7/Compile_eq

This file was deleted.

19 changes: 0 additions & 19 deletions Analysis_7/Makefile

This file was deleted.

91 changes: 91 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# CMake project file for General QMCT

##################################################
# Define the project and the depencies that it has
##################################################

CMAKE_MINIMUM_REQUIRED(VERSION 2.8.5)
PROJECT(General_QMCT Fortran)

# Set the General QMCT version
SET(VERSION 1.0)

# Add our local modlues to the module path
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules/")

# Uncomment if it is required that Fortran 90 is supported
IF(NOT CMAKE_Fortran_COMPILER_SUPPORTS_F90)
MESSAGE(FATAL_ERROR "Fortran compiler does not support F90")
ENDIF(NOT CMAKE_Fortran_COMPILER_SUPPORTS_F90)

# Set some options the user may choose
# Uncomment the below if you want the user to choose a parallelization library
OPTION(USE_MPI "Use the MPI library for parallelization" OFF)
#OPTION(USE_OPENMP "Use OpenMP for parallelization" OFF)

# This INCLUDE statement executes code that sets the compile flags for DEBUG,
# RELEASE, and TESTING. You should review this file and make sure the flags
# are to your liking.
INCLUDE(${CMAKE_MODULE_PATH}/SetFortranFlags.cmake)
# Locate and set parallelization libraries. There are some CMake peculiarities
# taken care of here, such as the fact that the FindOpenMP routine doesn't know
# about Fortran.
INCLUDE(${CMAKE_MODULE_PATH}/SetParallelizationLibrary.cmake)
# Setup the LAPACK libraries. This also takes care of peculiarities, such as
# the fact the searching for MKL requires a C compiler, and that the results
# are not stored in the cache.
INCLUDE(${CMAKE_MODULE_PATH}/SetUpLAPACK.cmake)

# There is an error in CMAKE with this flag for pgf90. Unset it
GET_FILENAME_COMPONENT(FCNAME ${CMAKE_Fortran_COMPILER} NAME)
IF(FCNAME STREQUAL "pgf90")
UNSET(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS)
ENDIF(FCNAME STREQUAL "pgf90")

############################################################
# Define the actual files and folders that make up the build
############################################################

# Define the executable name
SET(PROGEXE qmct)
SET(BLA_STATIC TRUE)

#SET(CMAKE_AR gcc-ar)
#SET(CMAKE_RANLIB gcc-ranlib)

# Define some directories
SET(SRC ${CMAKE_SOURCE_DIR}/src)
SET(LIB ${CMAKE_SOURCE_DIR}/lib)
SET(BIN ${CMAKE_SOURCE_DIR}/bin)

# Define the library names
SET(MODULES modules)
SET(MYEIS myeis)
SET(MYNAG mynag)
SET(MYLIN mylin)

SET(SRCMODULES ${SRC}/Modules)
SET(SRCEIS ${SRC}/MyEis)
SET(SRCNAG ${SRC}/MyNag)
SET(SRCLIN ${SRC}/MyLin)
SET(SRCPROG ${SRC}/Prog)
SET(SRCANALYSIS ${SRC}/Analysis)

# Have the .mod files placed in the lib folder
SET(CMAKE_Fortran_MODULE_DIRECTORY ${LIB})

# The sources for the libraries and have it placed in the lib folder
ADD_SUBDIRECTORY(${SRCMODULES} ${LIB}/Modules)
ADD_SUBDIRECTORY(${SRCEIS} ${LIB}/MyEis)

ADD_SUBDIRECTORY(${SRCNAG} ${LIB}/MyNAG)
ADD_SUBDIRECTORY(${SRCLIN} ${LIB}/MyLin)

# The source for the FOO binary and have it placed in the bin folder
ADD_SUBDIRECTORY(${SRCPROG} ${BIN})
ADD_SUBDIRECTORY(${SRCANALYSIS} ${BIN}/Analysis)

# Add a distclean target to the Makefile
ADD_CUSTOM_TARGET(distclean
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_SOURCE_DIR}/distclean.cmake
)
16 changes: 0 additions & 16 deletions Libraries/Makefile

This file was deleted.

13 changes: 0 additions & 13 deletions Libraries/Modules/Compile

This file was deleted.

15 changes: 0 additions & 15 deletions Libraries/Modules/Makefile

This file was deleted.

15 changes: 0 additions & 15 deletions Libraries/Modules/Makefile_Juropa

This file was deleted.

14 changes: 0 additions & 14 deletions Libraries/Modules/Makefile_cl

This file was deleted.

12 changes: 0 additions & 12 deletions Libraries/Modules/pre1

This file was deleted.

16 changes: 0 additions & 16 deletions Prog_7/Compile_Hub

This file was deleted.

20 changes: 0 additions & 20 deletions Prog_7/Compile_SPT

This file was deleted.

Empty file removed Prog_7/Ham_hop
Empty file.
9 changes: 0 additions & 9 deletions Prog_7/Ham_obser.f90

This file was deleted.

Loading