Commit 30ac285b authored by Mladen Ivkovic's avatar Mladen Ivkovic

added rt_iact file for injection

parent 959d73d4
......@@ -27,13 +27,16 @@
/* Config parameters. */
#include "../config.h"
/* Import the right cooling definition */
/* Import the right RT definition */
#if defined(RT_NONE)
#include "./rt/none/rt.h"
#include "./rt/none/rt_iact.h"
#elif defined(RT_DEBUG)
#include "./rt/debug/rt.h"
#include "./rt/debug/rt_iact.h"
#elif defined(RT_M1)
#include "./rt/M1closure/rt.h"
#include "./rt/M1closure/rt_iact.h"
#else
#error "Invalid choice of radiation scheme"
#endif
......
/*******************************************************************************
* 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_IACT_M1CLOSURE_H
#define SWIFT_RT_IACT_M1CLOSURE_H
/**
* @file src/rt/M1closure/rt_iact.h
* @brief Main header file for the M1 closure radiative transfer scheme particle interactions.
*/
/**
* @brief Injection step interaction between star and hydro particles.
*/
__attribute__((always_inline)) INLINE static void runner_iact_rt_inject(int call) {};
#endif /* SWIFT_RT_IACT_M1CLOSURE_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_IACT_DEBUG_H
#define SWIFT_RT_IACT_DEBUG_H
/**
* @file src/rt/debug/rt_iact.h
* @brief Main header file for the debug radiative transfer scheme particle interactions.
*/
/**
* @brief Injection step interaction between star and hydro particles.
*/
__attribute__((always_inline)) INLINE static void runner_iact_rt_inject(int call) {
message("Called debug RT scheme with case=%d", call);
}
#endif /* SWIFT_RT_IACT_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_IACT_NONE_H
#define SWIFT_RT_IACT_NONE_H
/**
* @file src/rt/none/rt_iact.h
* @brief Main header file for no radiative transfer scheme particle interactions.
*/
/**
* @brief Injection step interaction between star and hydro particles.
*/
__attribute__((always_inline)) INLINE static void runner_iact_rt_inject(int call) {};
#endif /* SWIFT_RT_IACT_NONE_H */
......@@ -36,7 +36,7 @@
*/
void DOSELF1_RT(struct runner *r, struct cell *c, int timer) {
TIMER_TIC;
message("message from DOSELF1_RT");
IACT_RT(1);
if (timer) TIMER_TOC(TIMER_DOSELF_RT);
}
......@@ -50,7 +50,7 @@ void DOSELF1_RT(struct runner *r, struct cell *c, int timer) {
*/
void DOPAIR1_RT(struct runner *r, struct cell *ci, struct cell *cj, int timer) {
TIMER_TIC;
message("message from DOPAIR1_RT");
IACT_RT(2);
if (timer) TIMER_TOC(TIMER_DOPAIR_RT);
}
......
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