Removed an unnecessary include from the root CMakeLists.txt

This commit is contained in:
jpekkila
2019-07-26 14:18:11 +03:00
parent 818893a0ea
commit b90d261e89
13 changed files with 20 additions and 21 deletions

View File

@@ -55,9 +55,8 @@ else ()
endif ()
## Include directories
include_directories(.)
include_directories(include)
include_directories(.) # TODO remove
include_directories(src) # TODO remove
## Subdirectories
add_subdirectory(src/core)

View File

@@ -29,7 +29,7 @@
#include <stdio.h>
#include "config_loader.h"
#include "core/math_utils.h"
#include "src/core/math_utils.h"
#include "model/host_forcing.h"
#include "model/host_memory.h"
#include "model/host_timestep.h"
@@ -37,7 +37,7 @@
#include "model/model_reduce.h"
#include "model/model_rk3.h"
#include "core/errchk.h"
#include "src/core/errchk.h"
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))

View File

@@ -211,7 +211,7 @@ run_benchmark(void)
#if AUTO_OPTIMIZE
const char* benchmark_path = "benchmark.out";
#include "core/kernels/rk3_threadblock.conf"
#include "src/core/kernels/rk3_threadblock.conf"
static int
write_result_to_file(const float& ms_per_step)
{

View File

@@ -31,8 +31,8 @@
#include <stdio.h> // print
#include <string.h> // memset
#include "core/errchk.h"
#include "core/math_utils.h"
#include "src/core/errchk.h"
#include "src/core/math_utils.h"
static inline void
print(const AcMeshInfo& config)

View File

@@ -1,5 +1,5 @@
/*
Copyright (C) 2014-2019, Johannes Pekkilae, Miikka Vaeisalae.
Copyright (C) 2014-2018, Johannes Pekkilae, Miikka Vaeisalae.
This file is part of Astaroth.
@@ -28,7 +28,7 @@
#include <stdlib.h>
#include <string.h>
#include "core/errchk.h"
#include "src/core/errchk.h"
#include "run.h"
// Write all errors from stderr to an <errorlog_name> in the current working

View File

@@ -26,7 +26,7 @@
*/
#include "host_forcing.h"
#include "core/math_utils.h"
#include "src/core/math_utils.h"
// The is a wrapper for genering random numbers with a chosen system.
AcReal

View File

@@ -28,7 +28,7 @@
#include <math.h>
#include "core/errchk.h"
#include "src/core/errchk.h"
#define AC_GEN_STR(X) #X
const char* init_type_names[] = {AC_FOR_INIT_TYPES(AC_GEN_STR)};

View File

@@ -1,5 +1,5 @@
/*
Copyright (C) 2014-2019, Johannes Pekkilae, Miikka Vaeisalae.
Copyright (C) 2014-2018, Johannes Pekkilae, Miikka Vaeisalae.
This file is part of Astaroth.
@@ -26,7 +26,7 @@
*/
#include "host_timestep.h"
#include "core/math_utils.h"
#include "src/core/math_utils.h"
static AcReal timescale = AcReal(1.0);

View File

@@ -26,7 +26,7 @@
*/
#include "model_boundconds.h"
#include "core/errchk.h"
#include "src/core/errchk.h"
void
boundconds(const AcMeshInfo& mesh_info, ModelMesh* mesh)

View File

@@ -25,7 +25,7 @@
*
*/
#pragma once
#include "core/errchk.h"
#include "src/core/errchk.h"
typedef long double MODEL_REAL;

View File

@@ -28,7 +28,7 @@
#include <math.h>
#include "core/errchk.h"
#include "src/core/errchk.h"
// Function pointer definitions
typedef ModelScalar (*ReduceFunc)(const ModelScalar&, const ModelScalar&);

View File

@@ -32,8 +32,8 @@
#include <string.h> // memcpy
#include "config_loader.h"
#include "core/errchk.h"
#include "core/math_utils.h"
#include "src/core/errchk.h"
#include "src/core/math_utils.h"
#include "model/host_memory.h"
#include "model/host_timestep.h"
#include "model/model_reduce.h"
@@ -423,7 +423,7 @@ run_renderer(void)
return 0;
}
#else // BUILD_RT_VISUALIZATION == 0
#include "core/errchk.h"
#include "src/core/errchk.h"
int
run_renderer(void)
{

View File

@@ -27,8 +27,8 @@
#include "run.h"
#include "config_loader.h"
#include "core/errchk.h"
#include "core/math_utils.h"
#include "src/core/errchk.h"
#include "src/core/math_utils.h"
#include "model/host_forcing.h"
#include "model/host_memory.h"
#include "model/host_timestep.h"