IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 1272bc31 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan: Committed by Alan Coleman
Browse files

RNG injection for CONEX/cxroot (rmmard_())

parent 6b396e50
No related branches found
No related tags found
1 merge request!559Resolve "make friendly example scripts for the release"
......@@ -3,6 +3,6 @@
url = ../../AirShowerPhysics/corsika-data.git
shallow = true
[submodule "modules/conex"]
path = modules/conex
path = modules/conex/cxroot
url = ../../AirShowerPhysics/cxroot.git
shallow = true
add_subdirectory(cxroot)
add_library(conex_random STATIC conex_random.cpp)
target_link_libraries(conex_random PUBLIC modules_common)
target_link_libraries(CONEXsibyll conex_random)
#
# add to combined CORSIKA8 target
#
add_dependencies (CORSIKA8 CONEXsibyll)
target_link_libraries (CORSIKA8 INTERFACE CONEXsibyll)
#
# install and export
#
install (
TARGETS CONEXsibyll conex_random
EXPORT CORSIKA8PublicTargets
ARCHIVE DESTINATION lib/corsika
PUBLIC_HEADER DESTINATION include/corsika_modules/conex
)
#include <rng_impl.hpp>
IMPLEMENT_RNG(conex)
extern "C" void rmmard_(double field[], int const* N, int*) {
for (int i = 0; i < *N; ++i) { field[i] = draw_std_rnd(); }
}
/*
* (c) Copyright 2023 CORSIKA Project, corsika-project@lists.kit.edu
*
* This software is distributed under the terms of the GNU General Public
* Licence version 3 (GPL Version 3). See file LICENSE for a full version of
* the license.
*/
#pragma once
#include <rng_decl.hpp>
DECLARE_RNG(conex)
extern "C" void rmmard_(double[] field, int const* N, int*);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment