Commit 0887bb3b authored by gsell's avatar gsell

release 1.1.9.1 tagged

parents

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

This diff is collapsed.
classic/5.0/src/AbsBeamline/CMakeFiles
classic/5.0/src/AbsBeamline/Makefile
classic/5.0/src/AbsBeamline/cmake_install.cmake
classic/5.0/src/Algebra/CMakeFiles
classic/5.0/src/Algebra/Makefile
classic/5.0/src/Algebra/cmake_install.cmake
classic/5.0/src/Algorithms/CMakeFiles
classic/5.0/src/Algorithms/Makefile
classic/5.0/src/Algorithms/cmake_install.cmake
classic/5.0/src/BeamlineCore/CMakeFiles
classic/5.0/src/BeamlineCore/Makefile
classic/5.0/src/BeamlineCore/cmake_install.cmake
classic/5.0/src/BeamlineGeometry/CMakeFiles
classic/5.0/src/BeamlineGeometry/Makefile
classic/5.0/src/BeamlineGeometry/cmake_install.cmake
classic/5.0/src/Beamlines/CMakeFiles
classic/5.0/src/Beamlines/Makefile
classic/5.0/src/Beamlines/cmake_install.cmake
classic/5.0/src/CMakeFiles
classic/5.0/src/Channels/CMakeFiles
classic/5.0/src/Channels/Makefile
classic/5.0/src/Channels/cmake_install.cmake
classic/5.0/src/ComponentWrappers/CMakeFiles
classic/5.0/src/ComponentWrappers/Makefile
classic/5.0/src/ComponentWrappers/cmake_install.cmake
classic/5.0/src/Construction/CMakeFiles
classic/5.0/src/Construction/Makefile
classic/5.0/src/Construction/cmake_install.cmake
classic/5.0/src/Fields/CMakeFiles
classic/5.0/src/Fields/Makefile
classic/5.0/src/Fields/cmake_install.cmake
classic/5.0/src/Filters/CMakeFiles
classic/5.0/src/Filters/Makefile
classic/5.0/src/Filters/cmake_install.cmake
classic/5.0/src/FixedAlgebra/CMakeFiles
classic/5.0/src/FixedAlgebra/Makefile
classic/5.0/src/FixedAlgebra/cmake_install.cmake
classic/5.0/src/Makefile
classic/5.0/src/MemoryManagement/CMakeFiles
classic/5.0/src/MemoryManagement/Makefile
classic/5.0/src/MemoryManagement/cmake_install.cmake
classic/5.0/src/Parser/CMakeFiles
classic/5.0/src/Parser/Makefile
classic/5.0/src/Parser/cmake_install.cmake
classic/5.0/src/Physics/CMakeFiles
classic/5.0/src/Physics/Makefile
classic/5.0/src/Physics/cmake_install.cmake
classic/5.0/src/Solvers/CMakeFiles
classic/5.0/src/Solvers/Makefile
classic/5.0/src/Solvers/cmake_install.cmake
classic/5.0/src/Utilities/CMakeFiles
classic/5.0/src/Utilities/Makefile
classic/5.0/src/Utilities/cmake_install.cmake
classic/5.0/src/cmake_install.cmake
classic/5.0/src/config.h
src/AbstractObjects/CMakeFiles
src/AbstractObjects/Makefile
src/AbstractObjects/cmake_install.cmake
src/Algebra/CMakeFiles
src/Algebra/Makefile
src/Algebra/cmake_install.cmake
src/Algorithms/CMakeFiles
src/Algorithms/Makefile
src/Algorithms/cmake_install.cmake
src/Aperture/CMakeFiles
src/Aperture/Makefile
src/Aperture/cmake_install.cmake
src/Attributes/CMakeFiles
src/Attributes/Makefile
src/Attributes/cmake_install.cmake
src/BasicActions/CMakeFiles
src/BasicActions/Makefile
src/BasicActions/cmake_install.cmake
src/Distribution/CMakeFiles
src/Distribution/Makefile
src/Distribution/cmake_install.cmake
src/Editor/CMakeFiles
src/Editor/Makefile
src/Editor/cmake_install.cmake
src/Elements/CMakeFiles
src/Elements/Makefile
src/Elements/cmake_install.cmake
src/Errors/CMakeFiles
src/Errors/Makefile
src/Errors/cmake_install.cmake
src/Expressions/CMakeFiles
src/Expressions/Makefile
src/Expressions/cmake_install.cmake
src/Lines/CMakeFiles
src/Lines/Makefile
src/Lines/cmake_install.cmake
src/Match/CMakeFiles
src/Match/Makefile
src/Match/cmake_install.cmake
src/OpalConfigure/CMakeFiles
src/OpalConfigure/Makefile
src/OpalConfigure/cmake_install.cmake
src/OpalParser/CMakeFiles
src/OpalParser/Makefile
src/OpalParser/cmake_install.cmake
src/PhysicsActions/CMakeFiles
src/PhysicsActions/Makefile
src/PhysicsActions/cmake_install.cmake
src/Solvers/CMakeFiles
src/Solvers/Makefile
src/Solvers/cmake_install.cmake
src/Tables/CMakeFiles
src/Tables/Makefile
src/Tables/cmake_install.cmake
src/Track/CMakeFiles
src/Track/Makefile
src/Track/cmake_install.cmake
src/Utilities/CMakeFiles
src/Utilities/Makefile
src/Utilities/cmake_install.cmake
src/ValueDefinitions/CMakeFiles
src/ValueDefinitions/Makefile
src/ValueDefinitions/cmake_install.cmake
CMAKE_MINIMUM_REQUIRED (VERSION 2.6)
PROJECT (OPAL)
SET (OPAL_VERSION_MAJOR 1)
SET (OPAL_VERSION_MINOR 1.9)
SET (CMAKE_CXX_COMPILER ${MPI_COMPILER})
IF (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
SET (CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
FORCE
)
ENDIF (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
MESSAGE (STATUS "Build type is: " ${CMAKE_BUILD_TYPE})
# Select flags.
SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
SET (CMAKE_CXX_FLAGS_RELEASE "-O2")
SET (CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
# Resolve all library dependencies
SET (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules")
FIND_PACKAGE (IPPL REQUIRED HINTS $ENV{IPPL_PREFIX})
MESSAGE (STATUS "Found IPPL library: ${IPPL_LIBRARY}")
MESSAGE (STATUS "Found IPPL include dir: ${IPPL_INCLUDE_DIR}")
FIND_PACKAGE (H5Hut REQUIRED)
FIND_PACKAGE (HDF5 REQUIRED)
FIND_PACKAGE (GSL REQUIRED)
FIND_PACKAGE (MPI REQUIRED)
# Handle options
OPTION (ENABLE_ML_SOLVER "Enable iteartive SA-AMG-PCG self field solver" OFF)
OPTION (DBG_SCALARFIELD "Enable dump of scalar field rho_m" OFF)
OPTION (DBG_STENCIL "Dump stencil of iterative solver in matlab format" OFF)
OPTION (BUILD_LIBOPAL "Enable building the OPAL library" OFF)
OPTION (NOCPLUSPLUS11_FOREACH "Disable C++11 foreach support" OFF)
OPTION (NOCPLUSPLUS11_NULLPTR "Disable C++11 nullptr support" OFF)
OPTION (NO_FIELD_ASSIGN_OPTIMIZATION "Disable compiler optimization of IPPL field assignment" OFF)
IF (DBG_SCALARFIELD)
MESSAGE (STATUS "\nWrite scalar rho_m field is enabled ")
SET (CMAKE_CXX_FLAGS "-DDBG_SCALARFIELD ${CMAKE_CXX_FLAGS}")
ENDIF (DBG_SCALARFIELD)
IF (DBG_STENCIL)
MESSAGE (STATUS "\nWrite stencil is enabled ")
SET (CMAKE_CXX_FLAGS "-DDBG_STENCIL ${CMAKE_CXX_FLAGS}")
ENDIF (DBG_STENCIL)
IF (BUILD_LIBOPAL)
MESSAGE (STATUS "\nBuilding OPAL library")
ENDIF (BUILD_LIBOPAL)
IF (NOCPLUSPLUS11_FOREACH)
MESSAGE (STATUS "\nBuilding OPAL without c++11 foreach support")
SET (CMAKE_CXX_FLAGS
"-DOPAL_NOCPLUSPLUS11_FOREACH ${CMAKE_CXX_FLAGS}"
)
ENDIF (NOCPLUSPLUS11_FOREACH)
IF (NOCPLUSPLUS11_NULLPTR)
MESSAGE (STATUS "\nBuilding OPAL without c++11 nullptr support")
SET (CMAKE_CXX_FLAGS
"-DOPAL_NOCPLUSPLUS11_NULLPTR ${CMAKE_CXX_FLAGS}"
)
ENDIF (NOCPLUSPLUS11_NULLPTR)
IF (NO_FIELD_ASSIGN_OPTIMIZATION)
MESSAGE (STATUS "\nCompiler will not try to optimize field assignment")
SET (CMAKE_CXX_FLAGS
"-DdontOPTIMIZE_FIELD_ASSIGNMENT ${CMAKE_CXX_FLAGS}"
)
ENDIF (NO_FIELD_ASSIGN_OPTIMIZATION)
IF (ENABLE_ML_SOLVER)
# Get Trilinos as one entity
FIND_PACKAGE(Trilinos REQUIRED HINTS $ENV{TRILINOS_PREFIX})
# Echo trilinos build info just for fun
MESSAGE (STATUS "Found Trilinos: ${Trilinos_DIR}")
MESSAGE (STATUS " Trilinos version: ${Trilinos_VERSION}")
MESSAGE (STATUS " Trilinos package list: ${Trilinos_PACKAGE_LIST}")
MESSAGE (STATUS " Trilinos libraries: ${Trilinos_LIBRARIES}")
MESSAGE (STATUS " Trilinos TPL libraries: ${Trilinos_TPL_LIBRARIES}")
# Make sure to use same compilers and flags as Trilinos
SET(CMAKE_C_COMPILER ${Trilinos_C_COMPILER} )
SET(CMAKE_CXX_COMPILER ${Trilinos_CXX_COMPILER} )
SET(CMAKE_Fortran_COMPILER ${Trilinos_Fortran_COMPILER} )
#SET(CMAKE_CXX_FLAGS "${Trilinos_CXX_COMPILER_FLAGS} ${CMAKE_CXX_FLAGS}")
#SET(CMAKE_C_FLAGS "${Trilinos_C_COMPILER_FLAGS} ${CMAKE_C_FLAGS}")
#SET(CMAKE_Fortran_FLAGS "${Trilinos_Fortran_COMPILER_FLAGS} ${CMAKE_Fortran_FLAGS}")
ENDIF (ENABLE_ML_SOLVER)
# compiler dependent flags
SET (MPI_UNDERLYING_COMPILER "")
EXECUTE_PROCESS (COMMAND ${CMAKE_CXX_COMPILER} -show
OUTPUT_VARIABLE MPI_COMPILER_OUTPUT
ERROR_VARIABLE MPI_COMPILER_ERROR)
IF ("${MPI_COMPILER_ERROR}" STREQUAL "")
STRING (REGEX REPLACE "([A-Za-z.0-9/]*) .*$" "\\1" MPI_UNDERLYING_COMPILER ${MPI_COMPILER_OUTPUT})
STRING (REGEX REPLACE "/" ";" MPI_UNDERLYING_COMPILER_SPLIT ${MPI_UNDERLYING_COMPILER})
LIST (REVERSE MPI_UNDERLYING_COMPILER_SPLIT)
LIST (GET MPI_UNDERLYING_COMPILER_SPLIT 0 MPI_UNDERLYING_COMPILER_NAME)
ENDIF ("${MPI_COMPILER_ERROR}" STREQUAL "")
IF ("${MPI_UNDERLYING_COMPILER_NAME}" STREQUAL "icpc")
# using intel compiler
MESSAGE (STATUS "The underlying compiler is: icpc")
SET (OTHER_CMAKE_CXX_FLAGS
"-diag-disable 383 -diag-disable 981 ${OTHER_CMAKE_CXX_FLAGS}")
ELSEIF ("${MPI_UNDERLYING_COMPILER_NAME}" STREQUAL "clang++")
# using clang compiler
MESSAGE (STATUS "The underlying compiler is: clang++")
SET (OTHER_CMAKE_CXX_FLAGS
"-Wsign-compare -Wunused-variable -Warray-bounds -DIPPL_RESTRICT_BUG ${OTHER_CMAKE_CXX_FLAGS}")
ELSEIF ("${MPI_UNDERLYING_COMPILER_NAME}" STREQUAL "g++")
# using gnu compiler
MESSAGE (STATUS "The underlying compiler is: g++")
EXECUTE_PROCESS (COMMAND ${MPI_UNDERLYING_COMPILER} --version
OUTPUT_VARIABLE GCC_VERSION_OUTPUT
ERROR_VARIABLE GCC_VERSION_ERROR)
STRING (REGEX REPLACE ".*([0-9]\\.[0-9]\\.[0-9]).*" "\\1" GCC_VERSION ${GCC_VERSION_OUTPUT})
MESSAGE (STATUS "Your gcc version is: ${GCC_VERSION}")
IF (${GCC_VERSION} VERSION_LESS "4.5.0")
MESSAGE (FATAL_ERROR "To build OPAL you need gcc version 4.5.0 or greater")
ELSEIF (${GCC_VERSION} VERSION_LESS "4.6.0")
SET (OTHER_CMAKE_CXX_FLAGS