Commit 67cd3ab2 authored by Shawn Waldon's avatar Shawn Waldon

Made the halo finder into a vtk module

Change-Id: I0febfcaac70e87a893164e0109f865fb1f1e1eaf
parent 9b35a696
include(vtkMPI)
set(${vtk-module}_SYSTEM_INCLUDE_DIRS
${MPI_C_INCLUDE_PATH}
${GENERIC_IO_INCLUDE_DIR}
)
find_package(GenericIO REQUIRED)
find_package(Threads REQUIRED)
set (${vtk-module}_HDRS
${CMAKE_CURRENT_SOURCE_DIR}/CosmoHaloFinderP.h
# ${CMAKE_CURRENT_SOURCE_DIR}/Timings.h
# ${CMAKE_CURRENT_SOURCE_DIR}/Timer.h
${CMAKE_CURRENT_SOURCE_DIR}/SubHaloFinder.h
# ${CMAKE_CURRENT_SOURCE_DIR}/SubHaloFinderDev.h
# ${CMAKE_CURRENT_SOURCE_DIR}/SUBFIND.h
${CMAKE_CURRENT_SOURCE_DIR}/SODHalo.h
${CMAKE_CURRENT_SOURCE_DIR}/SimpleTimings.h
${CMAKE_CURRENT_SOURCE_DIR}/Partition.h
${CMAKE_CURRENT_SOURCE_DIR}/ParticleExchange.h
${CMAKE_CURRENT_SOURCE_DIR}/ParticleDistribute.h
${CMAKE_CURRENT_SOURCE_DIR}/Message.h
# ${CMAKE_CURRENT_SOURCE_DIR}/InitialExchange.h
# ${CMAKE_CURRENT_SOURCE_DIR}/HaloFinderInput.h
${CMAKE_CURRENT_SOURCE_DIR}/HaloCenterFinder.h
${CMAKE_CURRENT_SOURCE_DIR}/GridExchange.h
${CMAKE_CURRENT_SOURCE_DIR}/FOFHaloProperties.h
${CMAKE_CURRENT_SOURCE_DIR}/FOFDistribute.h
# ${CMAKE_CURRENT_SOURCE_DIR}/dims-local-init.h
${CMAKE_CURRENT_SOURCE_DIR}/dims.h
${CMAKE_CURRENT_SOURCE_DIR}/Definition.h
${CMAKE_CURRENT_SOURCE_DIR}/CosmoHaloFinderP.h
${CMAKE_CURRENT_SOURCE_DIR}/CosmoHalo.h
${CMAKE_CURRENT_SOURCE_DIR}/CosmoHaloFinder.h
${CMAKE_CURRENT_SOURCE_DIR}/ChainingMesh.h
${CMAKE_CURRENT_SOURCE_DIR}/bigchunk.h
${CMAKE_CURRENT_SOURCE_DIR}/BHTree.h
${CMAKE_CURRENT_SOURCE_DIR}/BasicDefinition.h
${CMAKE_CURRENT_SOURCE_DIR}/CosmoToolsDefinitions.h
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}Module.h
)
include_directories(
${GENERIC_IO_INCLUDE_DIR}
)
set(Module_SRCS
BHTree.cxx
bigchunk.cxx
ChainingMesh.cxx
CMakeLists.txt
CosmoHaloFinder.cxx
CosmoHaloFinderP.cxx
dims.cxx
# dims-local-init.cxx
FOFDistribute.cxx
FOFHaloProperties.cxx
GridExchange.cxx
HaloCenterFinder.cxx
# HaloFinderInput.cxx
# InitialExchange.cxx
Message.cxx
ParticleDistribute.cxx
ParticleExchange.cxx
Partition.cxx
SimpleTimings.cxx
SODHalo.cxx
# SUBFIND.cxx
SubHaloFinder.cxx
# SubHaloFinderDev.cxx
# Timer.cxx
# Timings.cxx
)
vtk_module_library(${vtk-module} ${Module_SRCS})
target_link_libraries(${vtk-module} LINK_PRIVATE
${GENERIC_IO_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT})
vtk_mpi_link(${vtk-module})
......@@ -56,6 +56,8 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef ChainingMesh_h
#define ChainingMesh_h
#include "vtkCosmoHaloFinderModule.h"
#include "Definition.h"
#include <vector>
......@@ -64,7 +66,7 @@ using std::vector;
namespace cosmotk {
class ChainingMesh {
class VTKCOSMOHALOFINDER_EXPORT ChainingMesh {
public:
// Chaining mesh for all particles on a processor
......
......@@ -70,6 +70,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef CosmoHaloFinderP_h
#define CosmoHaloFinderP_h
#include "vtkCosmoHaloFinderModule.h"
#include "Definition.h"
......@@ -84,7 +85,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
namespace cosmotk {
class CosmoHaloFinderP {
class VTKCOSMOHALOFINDER_EXPORT CosmoHaloFinderP {
public:
CosmoHaloFinderP();
~CosmoHaloFinderP();
......
......@@ -10,9 +10,9 @@
#include <mpi.h>
// Type compatible with HACC
#ifdef ID_64
//#ifdef ID_64
#define TYPE_IDS_64BITS
#endif
//#endif
#ifdef USEDIY
// DIY library
......
......@@ -51,6 +51,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef FOFHaloProperties_h
#define FOFHaloProperties_h
#include "vtkCosmoHaloFinderModule.h"
#include "Definition.h"
......@@ -64,7 +65,7 @@ using std::string;
namespace cosmotk {
class FOFHaloProperties {
class VTKCOSMOHALOFINDER_EXPORT FOFHaloProperties {
public:
FOFHaloProperties();
......
......@@ -61,6 +61,8 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef HaloCenterFinder_h
#define HaloCenterFinder_h
#include "vtkCosmoHaloFinderModule.h"
#include "Definition.h"
#include "ChainingMesh.h"
......@@ -71,7 +73,7 @@ using std::string;
namespace cosmotk {
class HaloCenterFinder {
class VTKCOSMOHALOFINDER_EXPORT HaloCenterFinder {
public:
HaloCenterFinder();
......
......@@ -58,6 +58,8 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef ParticleDistribute_h
#define ParticleDistribute_h
#include "vtkCosmoHaloFinderModule.h"
#include "Message.h"
#include <cstdlib>
......@@ -75,7 +77,7 @@ using std::vector;
namespace cosmotk {
class ParticleDistribute {
class VTKCOSMOHALOFINDER_EXPORT ParticleDistribute {
public:
ParticleDistribute();
......
......@@ -66,6 +66,8 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef ParticleExchange_h
#define ParticleExchange_h
#include "vtkCosmoHaloFinderModule.h"
#include "Message.h"
#include "Definition.h"
......@@ -77,7 +79,7 @@ using std::vector;
namespace cosmotk {
class ParticleExchange {
class VTKCOSMOHALOFINDER_EXPORT ParticleExchange {
public:
ParticleExchange();
......
......@@ -54,7 +54,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef Partition_h
#define Partition_h
#include "vtkCosmoHaloFinderModule.h"
#include "Definition.h"
#include <string>
......@@ -62,7 +62,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
namespace cosmotk {
class Partition {
class VTKCOSMOHALOFINDER_EXPORT Partition {
public:
Partition();
~Partition();
......
......@@ -52,6 +52,8 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef SODHalo_h
#define SODHalo_h
#include "vtkCosmoHaloFinderModule.h"
#include "Definition.h"
#include <string>
#include <vector>
......@@ -86,7 +88,7 @@ public:
//
///////////////////////////////////////////////////////////////////////////
class SODHalo
class VTKCOSMOHALOFINDER_EXPORT SODHalo
{
public:
SODHalo();
......
......@@ -53,6 +53,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef SubHaloFinder_h
#define SubHaloFinder_h
#include "vtkCosmoHaloFinderModule.h"
#include "Definition.h"
#include "BHTree.h"
#include <string>
......@@ -109,7 +110,7 @@ public:
//
/////////////////////////////////////////////////////////////////////////
class SubHaloFinder {
class VTKCOSMOHALOFINDER_EXPORT SubHaloFinder {
public:
SubHaloFinder();
~SubHaloFinder();
......
vtk_module(vtkCosmoHaloFinder
EXCLUDE_FROM_WRAPPING)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment