Removed an unnecessary include from the root CMakeLists.txt
This commit is contained in:
@@ -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)
|
||||
|
@@ -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]))
|
||||
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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)
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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)};
|
||||
|
@@ -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);
|
||||
|
||||
|
@@ -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)
|
||||
|
@@ -25,7 +25,7 @@
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
#include "core/errchk.h"
|
||||
#include "src/core/errchk.h"
|
||||
|
||||
typedef long double MODEL_REAL;
|
||||
|
||||
|
@@ -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&);
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user