diff --git a/CMakeLists.txt b/CMakeLists.txt index ecfbc35..2d7e678 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,11 @@ cmake_minimum_required(VERSION 3.15.2) -project(GCTL_TOOLKITS VERSION 1.0) +project(GCTL_TOOLKITS VERSION 2.0) + +if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") + # ExprTK库在macOS 15.4中编译会有错误 添加以下命令对应检查项 + add_compile_options(-Wno-missing-template-arg-list-after-template-kw) +endif() find_package(GCTL REQUIRED) find_package(GCTL_MESH REQUIRED) diff --git a/cutprofile/cutprofile.h b/cutprofile/cutprofile.h index b037451..3dfe743 100644 --- a/cutprofile/cutprofile.h +++ b/cutprofile/cutprofile.h @@ -30,7 +30,7 @@ #include "gctl/core.h" #include "gctl/utility.h" -#include "gctl/algorithms.h" +#include "gctl/math.h" struct node { diff --git a/fractopo/FractalTopo.h b/fractopo/FractalTopo.h index d15ae17..e5b566d 100644 --- a/fractopo/FractalTopo.h +++ b/fractopo/FractalTopo.h @@ -45,8 +45,8 @@ #include "gctl/core.h" #include "gctl/utility.h" -#include "gctl/geometry.h" -#include "gctl/algorithms.h" +#include "gctl/poly.h" +#include "gctl/math.h" using namespace std; diff --git a/handyman/handyman.cpp b/handyman/handyman.cpp index fc5b0cb..0c46f57 100644 --- a/handyman/handyman.cpp +++ b/handyman/handyman.cpp @@ -26,9 +26,10 @@ ******************************************************/ #include "gctl/core.h" -#include "gctl/geometry.h" +#include "gctl/poly.h" #include "gctl/io.h" #include "gctl/utility.h" +#include "gctl/math/geometry3d.h" class HandyMan { @@ -353,7 +354,7 @@ void HandyMan::SR_GeoAngle() std::cin >> c[i].lon >> c[i].lat; } - std::cout << "The geo-centric angle is: " << gctl::geometry3d::angle(c[0].s2c(), c[1].s2c())*180.0/M_PI << " deg.\n"; + std::cout << "The geo-centric angle is: " << gctl::geometry3d::angle(s2c(c[0]), s2c(c[1]))*180.0/M_PI << " deg.\n"; return; } diff --git a/lbsi/lbsi.h b/lbsi/lbsi.h index 03af5e2..aaa3484 100644 --- a/lbsi/lbsi.h +++ b/lbsi/lbsi.h @@ -29,9 +29,10 @@ //#include "lcg/solver.h" // GCTL library #include "gctl/core.h" -#include "gctl/geometry.h" +#include "gctl/poly.h" #include "gctl/io.h" #include "gctl/utility.h" +#include "gctl/math/boxsort2d.h" #include "gctl/optimization.h" #if defined _WINDOWS || __WIN32__ diff --git a/lki/lki.h b/lki/lki.h index 6d7ba0b..15bdb0f 100644 --- a/lki/lki.h +++ b/lki/lki.h @@ -29,10 +29,11 @@ //#include "lcg/solver.h" // GCTL library #include "gctl/core.h" -#include "gctl/algorithms.h" -#include "gctl/geometry.h" +#include "gctl/poly.h" #include "gctl/io.h" #include "gctl/utility.h" +#include "gctl/math/boxsort2d.h" +#include "gctl/math/variogram.h" #include "gctl/optimization.h" #if defined _WINDOWS || __WIN32__ diff --git a/installer b/manager.sh similarity index 97% rename from installer rename to manager.sh index f7e978f..92335e3 100755 --- a/installer +++ b/manager.sh @@ -6,7 +6,7 @@ if [[ $# == 0 || ${1} == "help" ]]; then echo "School of Earth Sciences, Zhejiang University" echo "Yi Zhang (yizhang-geo@zju.edu.cn)" echo "" - echo "Usage: ./installer [option] [Cmake options]" + echo "Usage: ./manager.sh [option] [Cmake options]" echo "" echo "Options:" echo "(1) configure: Configure Cmake project(s). This option could take extra Cmake options as in