Skip to content

Commit a633f6e

Browse files
committed
Removed redundant code which causes access error
1 parent f47585d commit a633f6e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/hydro/srcterms/tabular_cooling.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,7 @@ void TabularCooling::SubcyclingFixedIntSrcTerm(MeshData<Real> *md, const Real dt
355355
std::string dust_cooling_table_path;
356356

357357
int dust_on = hydro_pkg->Param<bool>("dust_on") ? 1 : 0;
358-
if (dust_on and dust_cooling_mode_ != dust::DustCoolingMode::OFF) {
359-
dust_cooling_table_path = hydro_pkg->Param<std::string>("dust_cooling_table_path");
360-
}
358+
361359

362360
// FJJ Machinery for recording the AGB wind mass contributions
363361
int agb_history_num_rbins = 2; // some small number for low-memory usage if no AGB winds

0 commit comments

Comments
 (0)