From 73cb07cb19106e3255735534918640e5f26e3b9c Mon Sep 17 00:00:00 2001 From: ralfulrich <ralf.ulrich@kit.edu> Date: Tue, 30 Mar 2021 09:13:09 +0200 Subject: [PATCH] curved --- cmake/FindSphinx.cmake | 11 +++++++++++ corsika/setup/SetupTrajectory.hpp | 8 ++++---- documentation/conf.py | 6 ++++++ documentation/index.rst | 7 +++++++ 4 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 cmake/FindSphinx.cmake create mode 100644 documentation/conf.py create mode 100644 documentation/index.rst diff --git a/cmake/FindSphinx.cmake b/cmake/FindSphinx.cmake new file mode 100644 index 000000000..9a6705c48 --- /dev/null +++ b/cmake/FindSphinx.cmake @@ -0,0 +1,11 @@ +# Look for an executable called sphinx-build +find_program (SPHINX_EXECUTABLE + NAMES sphinx-build + DOC "Path to sphinx-build executable") + +include (FindPackageHandleStandardArgs) + +#Handle standard arguments to find_package like REQUIRED and QUIET +find_package_handle_standard_args (Sphinx + "Failed to find sphinx-build executable" + SPHINX_EXECUTABLE) diff --git a/corsika/setup/SetupTrajectory.hpp b/corsika/setup/SetupTrajectory.hpp index c40351d26..8d8dd92bd 100644 --- a/corsika/setup/SetupTrajectory.hpp +++ b/corsika/setup/SetupTrajectory.hpp @@ -38,15 +38,15 @@ namespace corsika::setup { The default tracking algorithm. */ - // typedef corsika::tracking_leapfrog_curved::Tracking Tracking; + typedef corsika::tracking_leapfrog_curved::Tracking Tracking; // typedef corsika::tracking_leapfrog_straight::Tracking Tracking; - typedef corsika::tracking_line::Tracking Tracking; + //typedef corsika::tracking_line::Tracking Tracking; /** The default trajectory. */ /// definition of Trajectory base class, to be used in tracking and cascades - typedef StraightTrajectory Trajectory; - // typedef corsika::LeapFrogTrajectory Trajectory; + //typedef StraightTrajectory Trajectory; + typedef corsika::LeapFrogTrajectory Trajectory; } // namespace corsika::setup diff --git a/documentation/conf.py b/documentation/conf.py new file mode 100644 index 000000000..4693c2bfa --- /dev/null +++ b/documentation/conf.py @@ -0,0 +1,6 @@ +#... +extensions = [ "breathe" ] +#... + +# Breathe Configuration +breathe_default_project = "CORSIKA 8" diff --git a/documentation/index.rst b/documentation/index.rst new file mode 100644 index 000000000..9ce320811 --- /dev/null +++ b/documentation/index.rst @@ -0,0 +1,7 @@ +… + +Docs +==== + +.. doxygenstruct:: corsika + :members: -- GitLab