Commit 238dc46d authored by Misbah Mubarak's avatar Misbah Mubarak
Browse files

enabling nearest neighbor compilation

parent f6cf0fe9
......@@ -6,6 +6,7 @@ AC_INIT([swm], [0.1], [],[],[])
AC_CONFIG_MACRO_DIRS([m4])
LT_INIT
AC_CANONICAL_TARGET
AC_CANONICAL_SYSTEM
AC_CANONICAL_HOST
......@@ -15,6 +16,7 @@ AM_INIT_AUTOMAKE([foreign subdir-objects -Wall])
# we should remove this soon, only needed for automake 1.10 and older
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CONFIG_SRCDIR([README.md])
# Checks for programs.
......@@ -23,6 +25,7 @@ AM_PROG_CC_C_O
AC_PROG_CXX
AC_PROG_CXXCPP
AX_CXX_COMPILE_STDCXX(11, noext, mandatory)
AC_PROG_MKDIR_P
AC_REQUIRE_CPP
......
This diff is collapsed.
......@@ -10,8 +10,8 @@ include_HEADERS = \
src_libswm_la_SOURCES = src/lammps/lammps.cpp \
src/nekbone/cubiclattice.cpp \
src/nekbone/nekbone_swm_user_code.cpp
#src/nearest_neighbor/nearest_neighbor_swm_user_code.cpp
src/nekbone/nekbone_swm_user_code.cpp \
src/nearest_neighbor/nearest_neighbor_swm_user_code.cpp
dist_data_DATA = src/lammps/lammps_workload.json \
src/nearest_neighbor/skeleton.json \
......
......@@ -4,8 +4,7 @@
#include <assert.h>
#include <iostream>
template <typename T>
std::vector<T> boost_ptree_array_to_std_vector(boost::property_tree::ptree const& pt, boost::property_tree::ptree::key_type const& key, std::vector<T> def, bool disallow_empty_arrays=true)
template <typename T> std::vector<T> boost_ptree_array_to_std_vector(boost::property_tree::ptree const& pt, boost::property_tree::ptree::key_type const& key, std::vector<T> def, bool disallow_empty_arrays=true)
{
if(pt.count(key)) {
std::vector<T> r;
......
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