Throw error when no initial temperature prescribed
Opened this issue · 1 comments
hoppe93 commented
At the moment, a default uniform cold electron temperature of
hoppe93 commented
Proposed solution: Change the following code in src/Settings/Equations/T_cold.cpp
real_t *Tcold_init = LoadDataR(MODULENAME, fluidGrid->GetRadialGrid(), s, "init");
eqsys->SetInitialValue(id_T_cold, Tcold_init);
delete [] Tcold_init;
to something along the lines of
real_t *Tcold_init = LoadDataR(MODULENAME, fluidGrid->GetRadialGrid(), s, "init");
if (Tcold_init == nullptr)
throw SettingsException("VERY INFORMATIVE ERROR MESSAGE");
eqsys->SetInitialValue(id_T_cold, Tcold_init);
delete [] Tcold_init;