...
 
Commits (5)
SET(${PROJECT_NAME}_CMAKE_CXX_FLAGS "${${PROJECT_NAME}_CXX_FLAGS}")
SET(${PROJECT_NAME}_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include")
SET(${PROJECT_NAME}_LIBRARY_DIR "${CMAKE_INSTALL_PREFIX}/lib")
SET(${PROJECT_NAME}_LIBRARY "ippl")
\ No newline at end of file
set (${PROJECT_NAME}_CMAKE_CXX_FLAGS "${${PROJECT_NAME}_CXX_FLAGS}")
set (${PROJECT_NAME}_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include")
set (${PROJECT_NAME}_LIBRARY_DIR "${CMAKE_INSTALL_PREFIX}/lib")
set (${PROJECT_NAME}_LIBRARY "ippl")
SET (_SRCS
set (_SRCS
)
SET (_HDRS
set (_HDRS
ParticleAmrLayout.h
AmrParticleBase.h
AmrParticleBase.hpp
AmrParticleLevelCounter.h
)
INCLUDE_DIRECTORIES (
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/AmrParticle)
install (FILES ${_HDRS} DESTINATION include/AmrParticle)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
set (_SRCS
)
SET (_HDRS
set (_HDRS
AntiSymTenzor.h
AppTypeTraits.h
dcomplex.h
......@@ -19,11 +19,20 @@ SET (_HDRS
Vektor.h
)
INCLUDE_DIRECTORIES (
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
install (FILES ${_HDRS} DESTINATION include/AppTypes)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
INSTALL (FILES ${_HDRS} DESTINATION include/AppTypes)
......@@ -23,47 +23,6 @@ set (IPPL_COMPILE_USER \"${WHOAMI_OUT}\")
configure_file (IpplVersions.h.in ${CMAKE_CURRENT_SOURCE_DIR}/IpplVersions.h)
if (UNUSED)
### print the compiler flags #############################
set (PRETTY_PRINT_WIDTH 78)
string (TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_STR)
set (COMPILE_FLAGS_STR
"${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_STR}}")
string (REGEX REPLACE " +" ";" COMPILE_FLAGS_LIST ${COMPILE_FLAGS_STR})
list (LENGTH COMPILE_FLAGS_LIST NUMBER_OF_COMPILE_FLAGS)
set (CURRENT_FLAG_INDEX 0)
message ("")
message ("Building IPPL with:")
while (${CURRENT_FLAG_INDEX} LESS ${NUMBER_OF_COMPILE_FLAGS})
set (FLAGS_PRETTY_PRINT "")
list (GET COMPILE_FLAGS_LIST ${CURRENT_FLAG_INDEX} CURRENT_FLAG)
string (LENGTH ${CURRENT_FLAG} LENGTH_INCL_NEXT)
while (${LENGTH_INCL_NEXT} LESS ${PRETTY_PRINT_WIDTH})
set (FLAGS_PRETTY_PRINT
"${FLAGS_PRETTY_PRINT} ${CURRENT_FLAG}")
math (EXPR CURRENT_FLAG_INDEX "(${CURRENT_FLAG_INDEX} + 1)")
if (${CURRENT_FLAG_INDEX} EQUAL ${NUMBER_OF_COMPILE_FLAGS})
set (LENGTH_INCL_NEXT ${PRETTY_PRINT_WIDTH})
else (${CURRENT_FLAG_INDEX} EQUAL ${NUMBER_OF_COMPILE_FLAGS})
list (GET COMPILE_FLAGS_LIST ${CURRENT_FLAG_INDEX} CURRENT_FLAG)
if (CURRENT_FLAG)
string (LENGTH ${CURRENT_FLAG} LENGTH_CURRENT_FLAG)
math (EXPR LENGTH_INCL_NEXT "${LENGTH_INCL_NEXT} + 1 + ${LENGTH_CURRENT_FLAG}")
endif ()
endif ()
endwhile ()
string (STRIP ${FLAGS_PRETTY_PRINT} FLAGS_PRETTY_PRINT)
message (STATUS "${FLAGS_PRETTY_PRINT}")
endwhile ()
message ("")
endif ()
set (IPPL_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR})
macro (add_ippl_sources)
file (RELATIVE_PATH _relPath "${IPPL_SRC_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
......@@ -147,6 +106,7 @@ install (TARGETS ippl DESTINATION lib)
install (FILES ${IPPL_BASEDIR_HDRS} DESTINATION include)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode:cmake
# cmake-tab-width: 4
......
SET (_SRCS
set (_SRCS
DataSource.cpp
DataConnect.cpp
DataConnectCreator.cpp
......@@ -7,7 +7,7 @@ SET (_SRCS
PtclBaseDataSource.cpp
)
SET (_HDRS
set (_HDRS
DataConnectCreator.h
DataConnect.h
DataSource.h
......@@ -31,11 +31,19 @@ SET (_HDRS
StringDataSource.h
)
INCLUDE_DIRECTORIES (
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/DataSource)
install (FILES ${_HDRS} DESTINATION include/DataSource)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
)
set (_SRCS
)
SET (_HDRS
DomainMap.hpp
DomainMap.h
)
set (_HDRS
DomainMap.hpp
DomainMap.h
)
INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/DomainMap)
install (FILES ${_HDRS} DESTINATION include/DomainMap)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
set (_SRCS
fftpack.cpp
)
fftpack.cpp
)
set (_HDRS
FFTBase.hpp
FFTBase.h
FFT.hpp
FFT.h
fftpack_FFT.h
)
FFTBase.hpp
FFTBase.h
FFT.hpp
FFT.h
fftpack_FFT.h
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
${CMAKE_CURRENT_SOURCE_DIR}
)
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
#install (FILES ${_HDRS} DESTINATION include/FFT)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
)
set (_SRCS
)
SET (_HDRS
Assign.hpp
AssignDefs.h
AssignGeneralBF.hpp
AssignGeneralIBF.hpp
Assign.h
AssignTags.h
BareField.hpp
BareField.h
BareFieldIterator.h
BCond.hpp
BCond.h
BrickExpression.hpp
BrickExpression.h
BrickIterator.hpp
BrickIterator.h
CompressedBrickIterator.hpp
CompressedBrickIterator.h
Field.hpp
Field.h
FieldLoc.h
FieldSpec.h
GuardCellSizes.hpp
GuardCellSizes.h
IndexedBareField.hpp
IndexedBareField.h
IndexedField.h
LField.hpp
LField.h
ReductionLoc.hpp
ReductionLoc.h
)
set (_HDRS
Assign.hpp
AssignDefs.h
AssignGeneralBF.hpp
AssignGeneralIBF.hpp
Assign.h
AssignTags.h
BareField.hpp
BareField.h
BareFieldIterator.h
BCond.hpp
BCond.h
BrickExpression.hpp
BrickExpression.h
BrickIterator.hpp
BrickIterator.h
CompressedBrickIterator.hpp
CompressedBrickIterator.h
Field.hpp
Field.h
FieldLoc.h
FieldSpec.h
GuardCellSizes.hpp
GuardCellSizes.h
IndexedBareField.hpp
IndexedBareField.h
IndexedField.h
LField.hpp
LField.h
ReductionLoc.hpp
ReductionLoc.h
)
INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
include_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/Field)
install (FILES ${_HDRS} DESTINATION include/Field)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
set (_SRCS
FieldLayoutUser.cpp
MultiBalancer.cpp
VRB.cpp
)
SET (_HDRS
set (_HDRS
BinaryBalancer.hpp
BinaryBalancer.h
CenteredFieldLayout.hpp
......@@ -21,11 +21,19 @@ SET (_HDRS
VRB.h
)
INCLUDE_DIRECTORIES (
include_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/FieldLayout)
install (FILES ${_HDRS} DESTINATION include/FieldLayout)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
Index.cpp
)
set (_SRCS
Index.cpp
)
SET (_HDRS
IndexedSIndex.h
Index.h
IndexInlines.h
LSIndex.h
NDIndex.h
NDIndexInlines.h
SIndexAssign.hpp
SIndexAssign.h
SIndex.hpp
SIndex.h
SOffset.h
)
set (_HDRS
IndexedSIndex.h
Index.h
IndexInlines.h
LSIndex.h
NDIndex.h
NDIndexInlines.h
SIndexAssign.hpp
SIndexAssign.h
SIndex.hpp
SIndex.h
SOffset.h
)
INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/Index)
install (FILES ${_HDRS} DESTINATION include/Index)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
Centering.cpp
)
set (_SRCS
Centering.cpp
)
SET (_HDRS
CartesianCentering.hpp
CartesianCentering.h
Cartesian.hpp
Cartesian.h
CartesianStencilSetup.h
Centering.h
Mesh.hpp
Mesh.h
UniformCartesian.hpp
UniformCartesian.h
)
set (_HDRS
CartesianCentering.hpp
CartesianCentering.h
Cartesian.hpp
Cartesian.h
CartesianStencilSetup.h
Centering.h
Mesh.hpp
Mesh.h
UniformCartesian.hpp
UniformCartesian.h
)
INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/Meshes)
install (FILES ${_HDRS} DESTINATION include/Meshes)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
CRC.cpp
Communicate.cpp
CommCreator.cpp
CommMPI.cpp
MessageFunctions.cpp
Formatter.cpp
)
set (_SRCS
CRC.cpp
Communicate.cpp
CommCreator.cpp
CommMPI.cpp
MessageFunctions.cpp
Formatter.cpp
)
SET (_HDRS
CommCreator.h
CommMPI.h
CommPM.h
CommSHMEMPI.h
Communicate.h
CRC.h
DataTypes.h
Formatter.h
GlobalComm.hpp
GlobalComm.h
Message.hpp
Message.h
Operations.h
TagMaker.h
Tags.h
)
set (_HDRS
CommCreator.h
CommMPI.h
CommPM.h
CommSHMEMPI.h
Communicate.h
CRC.h
DataTypes.h
Formatter.h
GlobalComm.hpp
GlobalComm.h
Message.hpp
Message.h
Operations.h
TagMaker.h
Tags.h
)
INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/Message)
install (FILES ${_HDRS} DESTINATION include/Message)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
set (_SRCS
)
SET (_HDRS
set (_HDRS
IpplExpressions.h
IpplTypeComputations.h
PETE.h
TypeComputations.h
)
INCLUDE_DIRECTORIES (
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/PETE)
install (FILES ${_HDRS} DESTINATION include/PETE)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
)
SET (_HDRS
BoxParticleCachingPolicy.h
CellParticleCachingPolicy.h
GenArrayParticle.h
GenParticle.h
IntCIC.h
Interpolator.h
IntNGP.h
IntTSC.h
IntSUDS.h
NoParticleCachingPolicy.h
PairBuilder/BasicPairBuilder.h
PairBuilder/HashPairBuilder.h
PairBuilder/HashPairBuilderPeriodic.h
PairBuilder/PairConditions.h
PairBuilder/SortingPairBuilder.h
ParticleAttribBase.h
ParticleAttrib.hpp
ParticleAttribElem.h
ParticleAttrib.h
ParticleBalancer.hpp
ParticleBalancer.h
IpplParticleBase.hpp
IpplParticleBase.h
ParticleBConds.h
ParticleCashedLayout.hpp
ParticleCashedLayout.h
ParticleInteractAttrib.hpp
ParticleInteractAttrib.h
ParticleInteractLayout.hpp
ParticleInteractLayout.h
ParticleLayout.hpp
ParticleLayoutFromGrid.h
ParticleLayout.h
ParticleSpatialLayout.hpp
ParticleSpatialLayout.h
ParticleUniformLayout.hpp
ParticleUniformLayout.h
PAssign.hpp
PAssignDefs.h
PAssign.h
)
INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/Particle)
ADD_SUBDIRECTORY (PairBuilder)
set (_SRCS
)
set (_HDRS
BoxParticleCachingPolicy.h
CellParticleCachingPolicy.h
GenArrayParticle.h
GenParticle.h
IntCIC.h
Interpolator.h
IntNGP.h
IntTSC.h
IntSUDS.h
NoParticleCachingPolicy.h
PairBuilder/BasicPairBuilder.h
PairBuilder/HashPairBuilder.h
PairBuilder/HashPairBuilderPeriodic.h
PairBuilder/PairConditions.h
PairBuilder/SortingPairBuilder.h
ParticleAttribBase.h
ParticleAttrib.hpp
ParticleAttribElem.h
ParticleAttrib.h
ParticleBalancer.hpp
ParticleBalancer.h
IpplParticleBase.hpp
IpplParticleBase.h
ParticleBConds.h
ParticleCashedLayout.hpp
ParticleCashedLayout.h
ParticleInteractAttrib.hpp
ParticleInteractAttrib.h
ParticleInteractLayout.hpp
ParticleInteractLayout.h
ParticleLayout.hpp
ParticleLayoutFromGrid.h
ParticleLayout.h
ParticleSpatialLayout.hpp
ParticleSpatialLayout.h
ParticleUniformLayout.hpp
ParticleUniformLayout.h
PAssign.hpp
PAssignDefs.h
PAssign.h
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
install (FILES ${_HDRS} DESTINATION include/Particle)
add_subdirectory (PairBuilder)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
set (_SRCS
)
SET (_HDRS
set (_HDRS
BasicPairBuilder.h
HashPairBuilder.h
HashPairBuilderPeriodic.h
......@@ -9,11 +9,19 @@ SET (_HDRS
SortingPairBuilder.h
)
INCLUDE_DIRECTORIES (
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/Particle/PairBuilder)
install (FILES ${_HDRS} DESTINATION include/Particle/PairBuilder)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
)
set (_SRCS
)
SET (_HDRS
Profiler.h
)
set (_HDRS
Profiler.h
)
INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/Profile)
install (FILES ${_HDRS} DESTINATION include/Profile)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
)
set (_SRCS
)
SET (_HDRS
NDRegion.h
PRegion.h
RegionLayout.hpp
RegionLayout.h
Rnode.h
)
set (_HDRS
NDRegion.h
PRegion.h
RegionLayout.hpp
RegionLayout.h
Rnode.h
)
INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/Region)
install (FILES ${_HDRS} DESTINATION include/Region)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
)
set (_SRCS
)
SET (_HDRS
SubBareField.hpp
SubBareField.h
SubFieldAssign.hpp
SubFieldAssignDefs.h
SubFieldAssign.h
SubField.hpp
SubField.h
SubFieldIter.h
SubFieldTraits.h
)
set (_HDRS
SubBareField.hpp
SubBareField.h
SubFieldAssign.hpp
SubFieldAssignDefs.h
SubFieldAssign.h
SubField.hpp
SubField.h
SubFieldIter.h
SubFieldTraits.h
)
INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/SubField)
install (FILES ${_HDRS} DESTINATION include/SubField)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
set (_SRCS
)
SET (_HDRS
set (_HDRS
SubParticleAssign.hpp
SubParticleAssignDefs.h
SubParticleAssign.h
......@@ -9,11 +9,19 @@ SET (_HDRS
SubParticleAttrib.h
)
INCLUDE_DIRECTORIES (
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/SubParticle)
install (FILES ${_HDRS} DESTINATION include/SubParticle)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
DiscBuffer.cpp
DiscConfig.cpp
DiscMeta.cpp
DiscParticleFunctions.cpp
FieldDebugFunctions.cpp
ParticleDebugFunctions.cpp
Inform.cpp
Pool.cpp
IpplCounter.cpp
IpplStats.cpp
IpplTimings.cpp
IpplMessageCounter.cpp
IpplMemoryUsage.cpp
IpplInfo.cpp
RNGSimple.cpp
RNGXDiv.cpp
RNGXCI.cpp
RandomNumberGen.cpp
StaticIpplInfo.cpp
Timer.cpp
Unique.cpp
User.cpp
UserList.cpp
PAssert.cpp
)
set (_SRCS
DiscBuffer.cpp
DiscConfig.cpp
DiscMeta.cpp
DiscParticleFunctions.cpp
FieldDebugFunctions.cpp
ParticleDebugFunctions.cpp
Inform.cpp
Pool.cpp
IpplCounter.cpp
IpplStats.cpp
IpplTimings.cpp
IpplMessageCounter.cpp
IpplMemoryUsage.cpp
IpplInfo.cpp
RNGSimple.cpp
RNGXDiv.cpp
RNGXCI.cpp
RandomNumberGen.cpp
StaticIpplInfo.cpp
Timer.cpp
Unique.cpp
User.cpp
UserList.cpp
PAssert.cpp
)
SET (_HDRS
DiscBuffer.h
DiscConfig.h
DiscField.hpp
DiscField.h
DiscMeta.h
DiscParticle.hpp
DiscParticle.h
DiscType.h
FieldBlock.hpp
FieldBlock.h
FieldDebug.hpp
FieldDebug.h
FieldDebugFunctions.h
FieldDebugPrint.hpp
FieldDebugPrint.h
FieldPrint.hpp
FieldPrint.h
FieldView.hpp
FieldView.h
Inform.h
IplCounter.h
IpplCounter.h
IpplInfo.h
IpplMemoryUsage.h
IpplMessageCounter.h
IpplStats.h
IpplTimings.h
my_auto_ptr.h
NamedObj.h
ParticleDebug.hpp
ParticleDebug.h
ParticleDebugFunctions.h
PAssert.h
Pooled.hpp
Pooled.h
Pool.h
RandomNumberGen.h
RefBlock.h
RefCounted.h
RNGAssignDefs.h
RNGBitReverse.h
RNGLattice.h
RNGRand.h
RNGSimple.h
RNGXCI.h
RNGXDiv.h
SequenceGen.h
StaticIpplInfo.h
Timer.h
Unique.h
User.h
UserList.h
Vec.h
vmap.hpp
vmap.h
)
set (_HDRS
DiscBuffer.h
DiscConfig.h
DiscField.hpp
DiscField.h
DiscMeta.h
DiscParticle.hpp
DiscParticle.h
DiscType.h
FieldBlock.hpp
FieldBlock.h
FieldDebug.hpp
FieldDebug.h
FieldDebugFunctions.h
FieldDebugPrint.hpp
FieldDebugPrint.h
FieldPrint.hpp
FieldPrint.h
FieldView.hpp
FieldView.h
Inform.h
IplCounter.h
IpplCounter.h
IpplInfo.h
IpplMemoryUsage.h
IpplMessageCounter.h
IpplStats.h
IpplTimings.h
my_auto_ptr.h
NamedObj.h
ParticleDebug.hpp
ParticleDebug.h
ParticleDebugFunctions.h
PAssert.h
Pooled.hpp
Pooled.h
Pool.h
RandomNumberGen.h
RefBlock.h
RefCounted.h
RNGAssignDefs.h
RNGBitReverse.h
RNGLattice.h
RNGRand.h
RNGSimple.h
RNGXCI.h
RNGXDiv.h
SequenceGen.h
StaticIpplInfo.h
Timer.h
Unique.h
User.h
UserList.h
Vec.h
vmap.hpp
vmap.h
)
INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/Utility)
\ No newline at end of file
install (FILES ${_HDRS} DESTINATION include/Utility)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
FILE (RELATIVE_PATH _relPath "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
MESSAGE (STATUS "Only found stub of CMakeList.txt in ${_relPath}")
file (RELATIVE_PATH _relPath "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
message (STATUS "Only found stub of CMakeList.txt in ${_relPath}")
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
IF ( ENABLE_AMR )
if (ENABLE_AMR)
# FIXME Why do we need this?
# remove digits from hostname: edison03 -> edison
STRING(REGEX MATCH "[^0-9]*" HOSTNAME_BASE "${HOSTNAME}")
string (REGEX MATCH "[^0-9]*" HOSTNAME_BASE "${HOSTNAME}")
IF (${HOSTNAME_BASE} MATCHES "daint")
if (${HOSTNAME_BASE} MATCHES "daint")
set(MPI_CXX_LIBRARIES "-lmpich -lmpichcxx -lfmpich -lmpichf90")
ENDIF (${HOSTNAME_BASE} MATCHES "daint")
endif ()
set (CMAKE_Fortran_FLAGS
${CMAKE_Fortran_FLAGS}
-Wno-c-binding-type)
add_compile_options (-Wno-unused-variable
-Wno-unused-but-set-variable
-Wno-maybe-uninitialized)
add_compile_options (-Wno-unused-variable)
add_compile_options (-Wno-unused-but-set-variable)
add_compile_options (-Wno-maybe-uninitialized)
add_definitions(${AMREX_DEFINES})
# add_subdirectory(boxlib-amr) still using BoxLib
#add_subdirectory(boxlib-amr) still using BoxLib
add_subdirectory(ippl-amr)
IF ( ${AMREX_DIM} EQUAL 3 )
if (${AMREX_DIM} EQUAL 3)
add_subdirectory(amrex-only)
add_subdirectory(ippl-bunch)
ENDIF ( ${AMREX_DIM} EQUAL 3 )
endif ()
IF ( ENABLE_AMR_MG_SOLVER )
add_subdirectory(trilinos)
set (CMAKE_CXX_FLAGS
"${IPPL_CMAKE_CXX_FLAGS} -DPARALLEL_IO ${CMAKE_CXX_FLAGS} -Wno-unused-function -DIPPL_AMR"
)
if (ENABLE_AMR_MG_SOLVER)
add_subdirectory (trilinos)
add_definitions (-DPARALLEL_IO)
add_definitions (-DIPPL_AMR)
add_compile_options (-Wno-unused-function)
include_directories (
${CMAKE_SOURCE_DIR}/src
......@@ -47,7 +45,7 @@ IF ( ENABLE_AMR )
${AMREX_INCLUDE_DIR}
${Trilinos_INCLUDE_DIRS}
${Trilinos_TPL_INCLUDE_DIRS}
)
)
link_directories (
${CMAKE_CURRENT_SOURCE_DIR}
......@@ -57,38 +55,49 @@ IF ( ENABLE_AMR )
${AMREX_LIBRARY_DIR}
${Trilinos_LIBRARY_DIRS}
${Trilinos_TPL_LIBRARY_DIRS}
)
)
add_library(multigrid
trilinos/AmrMultiGridCore.h
trilinos/AmrMultiGridDefs.h
trilinos/BelosBottomSolver.hpp
trilinos/Amesos2BottomSolver.hpp
trilinos/MueLuBottomSolver.hpp
# trilinos/FFTBottomSolver.cpp
trilinos/AmrSmoother.cpp
trilinos/AmrMultiGrid.cpp
trilinos/AmrRedistributor.cpp
trilinos/Ifpack2Preconditioner.hpp
trilinos/MueLuPreconditioner.hpp
${CMAKE_SOURCE_DIR}/src/Classic/Algorithms/Quaternion.cpp
${CMAKE_SOURCE_DIR}/src/Classic/Utilities/Util.cpp
${CMAKE_SOURCE_DIR}/src/Solvers/FFTPoissonSolver.cpp
${CMAKE_SOURCE_DIR}/src/Classic/Utilities/GeneralClassicException.cpp
${CMAKE_SOURCE_DIR}/src/Classic/Utilities/ClassicException.cpp
${CMAKE_SOURCE_DIR}/src/Utilities/OpalException.cpp)
add_library (
multigrid
trilinos/AmrMultiGridCore.h
trilinos/AmrMultiGridDefs.h
trilinos/BelosBottomSolver.hpp
trilinos/Amesos2BottomSolver.hpp
trilinos/MueLuBottomSolver.hpp
#trilinos/FFTBottomSolver.cpp
trilinos/AmrSmoother.cpp
trilinos/AmrMultiGrid.cpp
trilinos/AmrRedistributor.cpp
trilinos/Ifpack2Preconditioner.hpp
trilinos/MueLuPreconditioner.hpp
${CMAKE_SOURCE_DIR}/src/Classic/Algorithms/Quaternion.cpp
${CMAKE_SOURCE_DIR}/src/Classic/Utilities/Util.cpp
${CMAKE_SOURCE_DIR}/src/Solvers/FFTPoissonSolver.cpp
${CMAKE_SOURCE_DIR}/src/Classic/Utilities/GeneralClassicException.cpp
${CMAKE_SOURCE_DIR}/src/Classic/Utilities/ClassicException.cpp
${CMAKE_SOURCE_DIR}/src/Utilities/OpalException.cpp
)
target_link_libraries(multigrid
${MPI_CXX_LIBRARIES}
${MPI_Fortran_LIBRARIES}
${Fortran_LIBS}
${Trilinos_LIBRARIES}
${Trilinos_TPL_LIBRARIES}
${IPPL_LIBRARY}
${H5Hut_LIBRARY}
${HDF5_LIBRARIES}
${AMREX_EXTRA_Fortran_LINK_LINE}
${AMREX_LIBRARIES})
target_link_libraries (
multigrid
${MPI_CXX_LIBRARIES}
${MPI_Fortran_LIBRARIES}
${Fortran_LIBS}
${Trilinos_LIBRARIES}
${Trilinos_TPL_LIBRARIES}
${IPPL_LIBRARY}
${H5Hut_LIBRARY}
${HDF5_LIBRARIES}
${AMREX_EXTRA_Fortran_LINK_LINE}
${AMREX_LIBRARIES})
ENDIF ( ENABLE_AMR_MG_SOLVER )
ENDIF (ENABLE_AMR )
endif ()
endif ()
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
FILE (RELATIVE_PATH _relPath "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
MESSAGE (STATUS "Adding test AMR found in ${_relPath}")
file (RELATIVE_PATH _relPath "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
message (STATUS "Adding test AMR found in ${_relPath}")
set (CMAKE_CXX_FLAGS
"-O3 ${CMAKE_CXX_FLAGS}"
)
set (CMAKE_CXX_FLAGS
"${IPPL_CMAKE_CXX_FLAGS} -std=c++11 ${CMAKE_CXX_FLAGS} -DIPPL_AMR"
)
add_definitions(${AMREX_DEFINES})
add_compile_options (-O3)
add_compile_options (-stdc=c++11)
add_definitions (-DIPPL_AMR)
add_definitions (${AMREX_DEFINES})
include_directories (
${CMAKE_SOURCE_DIR}/ippl/src
......@@ -30,7 +26,7 @@ link_directories (
${HYPRE_LIBRARY_DIR}
)
SET (LIBS
set (LIBS
${IPPL_LIBRARY}
ippl
${MPI_CXX_LIBRARIES}
......@@ -42,50 +38,49 @@ SET (LIBS
z
)
if ( ${AMREX_DIM} EQUAL 3 )
add_executable( testDeposition
testDeposition.cpp)
if (${AMREX_DIM} EQUAL 3)
add_executable (testDeposition
testDeposition.cpp)
add_executable( AssignMultiLevelDensity
AssignMultiLevelDensity.cpp)
add_executable (AssignMultiLevelDensity
AssignMultiLevelDensity.cpp)
# add_executable( testGeometry
# testGeometry.cpp)
#add_executable( testGeometry
# testGeometry.cpp)
add_executable( testDepositionFail
testDepositionFail.cpp)
testDepositionFail.cpp)
add_executable( testSolverFail
testSolverFail.cpp
../Solver.cpp)
testSolverFail.cpp
../Solver.cpp)
# 4. March 2017,
# http://stackoverflow.com/questions/13429656/cmake-how-to-copy-contents-of-a-directory-into-build-directory-after-make
add_custom_command(TARGET testDeposition testDepositionFail POST_BUILD
COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/inputs $<TARGET_FILE_DIR:testDeposition>)
COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/inputs $<TARGET_FILE_DIR:testDeposition>)
target_link_libraries (testDeposition ${LIBS}
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
target_link_libraries (AssignMultiLevelDensity ${LIBS}
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
# target_link_libraries (testGeometry ${LIBS}
# ${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
#target_link_libraries (testGeometry ${LIBS}
# ${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
target_link_libraries (testDepositionFail ${LIBS}
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
target_link_libraries (testSolverFail ${LIBS}
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
set (EXECS
testDeposition
AssignMultiLevelDensity
testDepositionFail
testSolverFail
)
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
install (TARGETS ${EXECS} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/libexec/amr/amrex-only")
set (EXECS
testDeposition
AssignMultiLevelDensity
testDepositionFail
testSolverFail
)
install (TARGETS ${EXECS} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/libexec/amr/amrex-only")
endif ( ${AMREX_DIM} EQUAL 3)
This diff is collapsed.
This diff is collapsed.
FILE (RELATIVE_PATH _relPath "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
MESSAGE (STATUS "Adding test AMR found in ${_relPath}")
# MESSAGE (STATUS "MPI COMPILER ${MPI_UNDERLYING_COMPILER}")
set (CMAKE_CXX_FLAGS
"-O3 ${CMAKE_CXX_FLAGS}"
)
set (CMAKE_CXX_FLAGS
"${IPPL_CMAKE_CXX_FLAGS} -std=c++11 -DPARALLEL_IO -DIPPL_AMR ${CMAKE_CXX_FLAGS}"
)
file (RELATIVE_PATH _relPath "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
message (STATUS "Adding test AMR found in ${_relPath}")
add_compile_options (-O3)
add_compile_options (-std=c++11)
add_definitions (-DPARALLEL_IO)
add_definitions (-DIPPL_AMR)
add_definitions(${AMREX_DEFINES})
include_directories (
......@@ -66,3 +62,11 @@ set( EXECS
)
install (TARGETS ${EXECS} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/libexec/amr/ippl-bunch")
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
FILE (RELATIVE_PATH _relPath "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
MESSAGE (STATUS "Adding test AMR found in ${_relPath}")
# MESSAGE (STATUS "MPI COMPILER ${MPI_UNDERLYING_COMPILER}")
set (CMAKE_CXX_FLAGS
"-O3 ${CMAKE_CXX_FLAGS} -DBL_USE_FORTRAN_MPI -DUNIQUE_PTR -DHAVE_AMR_MG_SOLVER"
)
set (CMAKE_CXX_FLAGS
"${IPPL_CMAKE_CXX_FLAGS} -std=c++11 -DUSEH5FEDV2 -DPARALLEL_IO -DIPPL_AMR ${CMAKE_CXX_FLAGS}"
)
file (RELATIVE_PATH _relPath "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
message (STATUS "Adding test AMR found in ${_relPath}")
set (CMAKE_CXX_FLAGS "-DHAVE_AMR_MG_SOLVER ${CMAKE_CXX_FLAGS}")
add_compile_options (-O3)
add_compile_options (-std=c++11)
add_definitions(${AMREX_DEFINES})
add_definitions (-DBL_USE_FORTRAN_MPI)
add_definitions (-DUNIQUE_PTR)
add_definitions (-DHAVE_AMR_MG_SOLVER)
add_definitions (-DUSEH5FEDV2)
add_definitions (-DPARALLEL_IO)
add_definitions (-DIPPL_AMR)
add_definitions (${AMREX_DEFINES})
add_compile_options(-Wno-deprecated-declarations)
......@@ -48,99 +46,78 @@ link_directories (
set (TESTLIBS amropal multigrid)
set(EXECS "")
IF ( ${AMREX_DIM} EQUAL 2 )
add_executable( testRestrictionMatrix testRestrictionMatrix.cpp)
add_executable( testInterpolationMatrix testInterpolationMatrix.cpp)
add_executable( testBoundaryMatrix testBoundaryMatrix.cpp)
add_executable( testSmootherMatrix testSmootherMatrix.cpp)
add_executable( testPoissonMatrix testPoissonMatrix.cpp)
add_executable( testNoFine testNoFine.cpp)
add_executable( testWithFine testWithFine.cpp)
add_executable( testSpecialPoissonMatrix testSpecialPoissonMatrix.cpp)
add_executable( testLagrange testLagrange.cpp)
ENDIF ( ${AMREX_DIM} EQUAL 2 )
# add_executable( testAmrMultigrid
# testAmrMultigrid.cpp)
# add_executable( testSolverComparison
# testSolverComparison.cpp
# ../Solver.cpp)
IF ( ${AMREX_DIM} EQUAL 3 )
set (EXECS "")
if (${AMREX_DIM} EQUAL 2)
add_executable (testRestrictionMatrix testRestrictionMatrix.cpp)
add_executable (testInterpolationMatrix testInterpolationMatrix.cpp)
add_executable (testBoundaryMatrix testBoundaryMatrix.cpp)
add_executable (testSmootherMatrix testSmootherMatrix.cpp)
add_executable (testPoissonMatrix testPoissonMatrix.cpp)
add_executable (testNoFine testNoFine.cpp)
add_executable (testWithFine testWithFine.cpp)
add_executable (testSpecialPoissonMatrix testSpecialPoissonMatrix.cpp)
add_executable (testLagrange testLagrange.cpp)
endif ()
# add_executable (testAmrMultigrid
# testAmrMultigrid.cpp)
# add_executable (testSolverComparison
# testSolverComparison.cpp
# ../Solver.cpp)
if (${AMREX_DIM} EQUAL 3)
set (LIBS
${GSL_LIBRARY}
${GSL_CLBAS_LIBRARY}
${Trilinos_LIBRARIES}
${Trilinos_TPL_LIBRARIES}
${OTHER_CMAKE_EXE_LINKER_FLAGS}
${CMAKE_DL_LIBS})
)
add_executable( testCopy testCopy.cpp)
target_link_libraries (testCopy ${TESTLIBS} ${GSL_LIBRARY} ${GSL_CLBAS_LIBRARY}
${Trilinos_LIBRARIES} ${Trilinos_TPL_LIBRARIES}
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
target_link_libraries (testCopy
${TESTLIBS}
${LIBS}
)
add_executable( testBitPattern testBitPattern.cpp)
target_link_libraries (testBitPattern ${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
target_link_libraries (testBitPattern
${OTHER_CMAKE_EXE_LINKER_FLAGS}
${CMAKE_DL_LIBS}
)
add_executable( trilinos2ippl trilinos2ippl.cpp)
target_link_libraries (trilinos2ippl
${TESTLIBS}
${LIBS}
)
target_link_libraries (trilinos2ippl ${TESTLIBS} ${GSL_LIBRARY} ${GSL_CLBAS_LIBRARY}
${Trilinos_LIBRARIES} ${Trilinos_TPL_LIBRARIES}
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
set( EXECS
set (EXECS
${EXECS}
testBitPattern
trilinos2ippl
testCopy
)
ENDIF ( ${AMREX_DIM} EQUAL 3 )
IF ( ${AMREX_DIM} EQUAL 2 )
target_link_libraries (testRestrictionMatrix ${TESTLIBS}
${Trilinos_LIBRARIES} ${Trilinos_TPL_LIBRARIES}
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
target_link_libraries (testInterpolationMatrix ${TESTLIBS}
${Trilinos_LIBRARIES} ${Trilinos_TPL_LIBRARIES}
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
target_link_libraries (testBoundaryMatrix ${TESTLIBS}
${Trilinos_LIBRARIES} ${Trilinos_TPL_LIBRARIES}
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
target_link_libraries (testSmootherMatrix ${TESTLIBS}
${Trilinos_LIBRARIES} ${Trilinos_TPL_LIBRARIES}
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
target_link_libraries (testPoissonMatrix ${TESTLIBS}
${Trilinos_LIBRARIES} ${Trilinos_TPL_LIBRARIES}
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
target_link_libraries (testNoFine ${TESTLIBS}
${Trilinos_LIBRARIES} ${Trilinos_TPL_LIBRARIES}
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
target_link_libraries (testWithFine ${TESTLIBS}
${Trilinos_LIBRARIES} ${Trilinos_TPL_LIBRARIES}
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
target_link_libraries (testSpecialPoissonMatrix ${TESTLIBS}
${Trilinos_LIBRARIES} ${Trilinos_TPL_LIBRARIES}
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
target_link_libraries (testLagrange ${TESTLIBS}
${Trilinos_LIBRARIES} ${Trilinos_TPL_LIBRARIES}
${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
)
endif ()
if (${AMREX_DIM} EQUAL 2)
set (LIBS
${Trilinos_LIBRARIES}
${Trilinos_TPL_LIBRARIES}
${OTHER_CMAKE_EXE_LINKER_FLAGS}
${CMAKE_DL_LIBS}
)
target_link_libraries (testRestrictionMatrix ${TESTLIBS} ${LIBS})
target_link_libraries (testInterpolationMatrix ${TESTLIBS} ${LIBS})
target_link_libraries (testBoundaryMatrix ${TESTLIBS} ${LIBS})
target_link_libraries (testSmootherMatrix ${TESTLIBS} ${LIBS})
target_link_libraries (testPoissonMatrix ${TESTLIBS} ${LIBS})
target_link_libraries (testNoFine ${TESTLIBS} ${LIBS})
target_link_libraries (testWithFine ${TESTLIBS} ${LIBS})
target_link_libraries (testSpecialPoissonMatrix ${TESTLIBS} ${LIBS})
target_link_libraries (testLagrange ${TESTLIBS} ${LIBS})
set( EXECS
${EXECS}
......@@ -154,21 +131,23 @@ IF ( ${AMREX_DIM} EQUAL 2 )
testSpecialPoissonMatrix
testLagrange
)
ENDIF ( ${AMREX_DIM} EQUAL 2 )
# target_link_libraries (testAmrMultigrid ${TESTLIBS}
# ${Trilinos_LIBRARIES} ${Trilinos_TPL_LIBRARIES}
# ${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
endif ()
# target_link_libraries (testSolverComparison ${TESTLIBS}
# ${Trilinos_LIBRARIES} ${Trilinos_TPL_LIBRARIES}
# ${OTHER_CMAKE_EXE_LINKER_FLAGS} ${CMAKE_DL_LIBS})
set( EXECS
${EXECS}
# testAmrMultigrid
# testSolverComparison
)
# target_link_libraries (testAmrMultigrid ${TESTLIBS} ${LIBS})
# target_link_libraries (testSolverComparison ${TESTLIBS} ${LIBS})
#
# set( EXECS
# ${EXECS}
# testAmrMultigrid
# testSolverComparison
# )
install (TARGETS ${EXECS} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/libexec/amr/trilinos")
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
......@@ -13,3 +13,11 @@ list_subdirectories("TESTS" ${CMAKE_CURRENT_SOURCE_DIR})
foreach (test ${TESTS})
add_subdirectory (${test})
endforeach()
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4