commit 025ae225d9165412ee7000d684078c1fb949fd52
parent 7a97fa240306d4d159042420314f473eb46043c6
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 20 Oct 2021 13:41:30 +0200
Handle the API breaks introduced by StarMC 0.5
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
@@ -38,8 +38,8 @@ find_package(RCMake 0.3 REQUIRED)
find_package(RSys 0.6 REQUIRED)
find_package(Star3D 0.8 REQUIRED)
find_package(Star3DAW 0.1.3 REQUIRED)
-find_package(StarSP 0.7 REQUIRED)
-find_package(StarMC 0.4 REQUIRED)
+find_package(StarSP 0.12 REQUIRED)
+find_package(StarMC 0.5 REQUIRED)
include_directories(
${RSys_INCLUDE_DIR}
@@ -56,7 +56,7 @@ include(rcmake_runtime)
# Configure and define the targets
################################################################################
set(VERSION_MAJOR 0)
-set(VERSION_MINOR 4)
+set(VERSION_MINOR 5)
set(VERSION_PATCH 0)
set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
diff --git a/src/s4vs.c b/src/s4vs.c
@@ -80,7 +80,7 @@ compute_4v_s
ctx.g = PI/4.0;
/* Setup Star-MC */
- SMC(device_create(NULL, NULL, SMC_NTHREADS_DEFAULT, NULL, &smc));
+ SMC(device_create(NULL, NULL, SMC_NTHREADS_DEFAULT, SSP_RNG_TYPE_NULL, &smc));
integrator.integrand = &s4vs_realization; /* Realization function */
integrator.type = &smc_double; /* Type of the Monte Carlo weight */
integrator.max_realisations = max_realisations; /* Realization count */