gitlab is upgraded to version 13, please report any issues and enjoy

Commit b0de294f authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Merge branch 'rt-header-files' into 'master'

created rt header files

See merge request !1146
parents 10979e50 71ab62e5
......@@ -208,6 +208,7 @@ nobase_noinst_HEADERS = align.h approx_math.h atomic.h barrier.h cycle.h error.h
riemann/riemann_hllc.h riemann/riemann_trrs.h \
riemann/riemann_exact.h riemann/riemann_vacuum.h \
riemann/riemann_checks.h \
rt.h rt/none/rt.h rt/debug/rt.h rt/M1closure/rt.h \
stars.h stars_io.h \
stars/Default/stars.h stars/Default/stars_iact.h stars/Default/stars_io.h \
stars/Default/stars_debug.h stars/Default/stars_part.h stars/Default/stars_logger.h \
......
/*******************************************************************************
* This file is part of SWIFT.
* Copyright (c) 2020 Mladen Ivkovic (mladen.ivkovic@hotmail.com)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#ifndef SWIFT_RT_H
#define SWIFT_RT_H
/**
* @file src/rt.h
* @brief Branches between the different radiative transfer schemes.
*/
/* Config parameters. */
#include "../config.h"
/* Import the right cooling definition */
#if defined(RT_NONE)
#include "./rt/none/rt.h"
#elif defined(RT_DEBUG)
#include "./rt/debug/rt.h"
#elif defined(RT_M1)
#include "./rt/M1closure/rt.h"
#else
#error "Invalid choice of radiation scheme"
#endif
#endif /* SWIFT_RT_H */
/*******************************************************************************
* This file is part of SWIFT.
* Copyright (c) 2020 Mladen Ivkovic (mladen.ivkovic@hotmail.com)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#ifndef SWIFT_RT_M1_H
#define SWIFT_RT_M1_H
/**
* @file src/rt/M1closure/rt.h
* @brief Main header file for the M1 Closure radiative transfer scheme.
*/
/**
* @brief Dummy function to test whether inclusions work properly.
*/
void rt_dummy_function(void) { message("Called M1 closure RT scheme."); }
#endif /* SWIFT_RT_M1_H */
/*******************************************************************************
* This file is part of SWIFT.
* Copyright (c) 2020 Mladen Ivkovic (mladen.ivkovic@hotmail.com)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#ifndef SWIFT_RT_DEBUG_H
#define SWIFT_RT_DEBUG_H
/**
* @file src/rt/debug/rt.h
* @brief Main header file for the debug radiative transfer scheme.
*/
/**
* @brief Dummy function to test whether inclusions work properly.
*/
void rt_dummy_function(void) { message("Called debug RT scheme."); }
#endif /* SWIFT_RT_DEBUG_H */
/*******************************************************************************
* This file is part of SWIFT.
* Copyright (c) 2020 Mladen Ivkovic (mladen.ivkovic@hotmail.com)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#ifndef SWIFT_RT_NONE_H
#define SWIFT_RT_NONE_H
/**
* @file src/rt/debug/rt.h
* @brief Main header file for no radiative transfer scheme.
*/
/**
* @brief Dummy function to test whether inclusions work properly.
*/
void rt_dummy_function(void) { message("Called no RT scheme."); }
#endif /* SWIFT_RT_NONE_H */
......@@ -75,6 +75,7 @@
#include "queue.h"
#include "random.h"
#include "restart.h"
#include "rt.h"
#include "runner.h"
#include "scheduler.h"
#include "serial_io.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment