diff --git a/src/black_holes/EAGLE/black_holes_iact.h b/src/black_holes/EAGLE/black_holes_iact.h index a338caca099d44212ff56edf6373e9bb46938dbb..30186f892e1eaf9b34e07ddcc5a419312696a78b 100644 --- a/src/black_holes/EAGLE/black_holes_iact.h +++ b/src/black_holes/EAGLE/black_holes_iact.h @@ -124,7 +124,7 @@ runner_iact_nonsym_bh_gas_density( error( "Invalid denominator for BH particle %lld and gas particle " "%lld in Bondi rate calculation.", - bp->id, pj->id); + bi->id, pj->id); #endif const double denominator_inv = 1. / sqrt(denominator2); diff --git a/src/output_options.c b/src/output_options.c index 7a0534405a44e3ee369a48769fd4b188a467c2e7..b16625311a7fa512321eb7506dfa3dda453938d9 100644 --- a/src/output_options.c +++ b/src/output_options.c @@ -1,4 +1,3 @@ - /******************************************************************************* * This file is part of SWIFT. * Copyright (c) 2020 Josh Borrow (josh.borrow@durham.ac.uk) @@ -17,14 +16,20 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * ******************************************************************************/ +#include "../config.h" +/* Some standard headers. */ #include <stdlib.h> +/* MPI headers. */ #ifdef WITH_MPI #include <mpi.h> #endif +/* This object's header. */ #include "output_options.h" + +/* Local headers. */ #include "parser.h" #include "part_type.h" #include "swift.h" @@ -143,4 +148,4 @@ int output_options_should_write_field(struct output_options* output_options, #endif return should_write; -} \ No newline at end of file +}