From deb28720b6e0838e8faba517a1957c3fdc00e84a Mon Sep 17 00:00:00 2001 From: loikki <loic.hausammann@protonmail.ch> Date: Mon, 18 Feb 2019 09:52:04 +0100 Subject: [PATCH] Remove output_mode in grackle --- src/cooling/grackle/cooling_io.h | 9 --------- src/cooling/grackle/cooling_struct.h | 3 --- 2 files changed, 12 deletions(-) diff --git a/src/cooling/grackle/cooling_io.h b/src/cooling/grackle/cooling_io.h index 83f0bcbac7..3905cafd05 100644 --- a/src/cooling/grackle/cooling_io.h +++ b/src/cooling/grackle/cooling_io.h @@ -61,8 +61,6 @@ __attribute__((always_inline)) INLINE static int cooling_write_particles( int num = 0; - if (cooling->output_mode == 0) return num; - #if COOLING_GRACKLE_MODE >= 1 /* List what we want to write */ list[0] = io_make_output_field("HI", FLOAT, 1, UNIT_CONV_NO_UNITS, xparts, @@ -86,8 +84,6 @@ __attribute__((always_inline)) INLINE static int cooling_write_particles( num += 6; #endif - if (cooling->output_mode == 1) return num; - #if COOLING_GRACKLE_MODE >= 2 list += num; @@ -103,8 +99,6 @@ __attribute__((always_inline)) INLINE static int cooling_write_particles( num += 3; #endif - if (cooling->output_mode == 2) return num; - #if COOLING_GRACKLE_MODE >= 3 list += num; @@ -153,9 +147,6 @@ __attribute__((always_inline)) INLINE static void cooling_read_parameters( cooling->self_shielding_method = parser_get_opt_param_int( parameter_file, "GrackleCooling:SelfShieldingMethod", 0); - cooling->output_mode = - parser_get_opt_param_int(parameter_file, "GrackleCooling:OutputMode", 0); - cooling->max_step = parser_get_opt_param_int( parameter_file, "GrackleCooling:MaxSteps", 10000); diff --git a/src/cooling/grackle/cooling_struct.h b/src/cooling/grackle/cooling_struct.h index 2f1b187761..66c385234c 100644 --- a/src/cooling/grackle/cooling_struct.h +++ b/src/cooling/grackle/cooling_struct.h @@ -59,9 +59,6 @@ struct cooling_function_data { /* Self shielding method (<= 3) means grackle modes */ int self_shielding_method; - /* Output mode (correspond to primordial chemistry mode */ - int output_mode; - /* convergence limit for first init */ float convergence_limit; -- GitLab