cooling_iact.h 1.27 KB
Newer Older
lhausamm's avatar
lhausamm committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*******************************************************************************
 * This file is part of SWIFT.
 * Coypright (c) 2016 Matthieu Schaller (matthieu.schaller@durham.ac.uk)
 *
 * 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/>.
 *
 ******************************************************************************/

#include "part.h"

/**
 * @brief Density loop
 */
__attribute__((always_inline)) INLINE static void cooling_density_iact(
    float wi, float wj, struct part *pi, struct part *pj) {

28
  /* float diff = pi->cooling_data.He_density - pj->cooling_data.He_density; */
lhausamm's avatar
lhausamm committed
29

30
31
  /* pi->cooling_data.He_density += wj * diff; */
  /* pj->cooling_data.He_density += wi * diff; */
lhausamm's avatar
lhausamm committed
32
};