Skip to content

Commit

Permalink
refactor: use submodule to manage c_array_tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Zncl2222 committed Jun 9, 2024
1 parent 82db992 commit 8bf3e05
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 909 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ variogram*
.coverage
*.o
*.exe
*.so
*.dll
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "uc_sgsim/c_core/c_array_tools"]
path = uc_sgsim/c_core/c_array_tools
url = https://github.com/Zncl2222/c_array_tools.git
branch = main
4 changes: 2 additions & 2 deletions uc_sgsim/c_core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3")
# Link each file
add_library(
uc_sgsim ${LIB_TYPE}
lib/c_array.c
lib/c_array_mt.c
c_array_tools/src/c_array.c
c_array_tools/src/c_array_mt.c
src/cov_model.c
src/kriging.c
src/matrix_tools.c
Expand Down
1 change: 1 addition & 0 deletions uc_sgsim/c_core/c_array_tools
Submodule c_array_tools added at f9e570
2 changes: 1 addition & 1 deletion uc_sgsim/c_core/include/kriging.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#ifndef UC_SGSIM_C_CORE_INCLUDE_KRIGING_H_
#define UC_SGSIM_C_CORE_INCLUDE_KRIGING_H_

# include "../lib/c_array.h"
# include "../c_array_tools/src/c_array.h"
# include "../include/cov_model.h"

/**
Expand Down
2 changes: 1 addition & 1 deletion uc_sgsim/c_core/include/random_tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#ifndef UC_SGSIM_C_CORE_INCLUDE_RANDOM_TOOLS_H_
#define UC_SGSIM_C_CORE_INCLUDE_RANDOM_TOOLS_H_

# include "../lib/c_array.h"
# include "../c_array_tools/src/c_array.h"

/**
* @brief Generate a random path of integers.
Expand Down
2 changes: 1 addition & 1 deletion uc_sgsim/c_core/include/sgsim.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#define UC_SGSIM_C_CORE_INCLUDE_SGSIM_H_

# include "cov_model.h"
# include "../lib/c_array.h"
# include "../c_array_tools/src/c_array.h"

/**
* @struct sgsim_t
Expand Down
159 changes: 0 additions & 159 deletions uc_sgsim/c_core/lib/c_array.c

This file was deleted.

Loading

0 comments on commit 8bf3e05

Please sign in to comment.