Skip to content

Commit 3de1996

Browse files
committed
FEAT: pass time into calc_e- temp so it can use solver_conduction
1 parent 2ec6d25 commit 3de1996

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

include/ions.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,9 @@ class Ions {
348348
\brief Calculates the electron temperature on the given grid
349349
\param neutrals these are needed for the collision terms
350350
\param grid this is the grid to solve the equation on
351+
\param time the time class to know dt
351352
**/
352-
void calc_electron_temperature(Neutrals neutrals, Grid grid);
353+
void calc_electron_temperature(Neutrals neutrals, Grid grid, Times time);
353354

354355
/**********************************************************************
355356
\brief Check all of the variables for nonfinites, such as nans

src/advance.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ bool advance(Planets &planet,
200200
}
201201

202202
ions.calc_ion_temperature(neutrals, gGrid, time);
203-
ions.calc_electron_temperature(neutrals, gGrid);
203+
ions.calc_electron_temperature(neutrals, gGrid, time);
204204
//ionsMag.calc_ion_temperature(neutralsMag, mGrid, time);
205205
//ionsMag.calc_electron_temperature(neutralsMag, mGrid);
206206

src/calc_electron_temperature.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ std::vector<arma_cube> calc_thermoelectric_current(Ions &ions, Grid &grid);
8383
// TODO (#24): this currently just sets the electron temperature to the neutral temperature
8484
// --------------------------------------------------------------------------
8585

86-
void Ions::calc_electron_temperature(Neutrals neutrals, Grid grid) {
86+
void Ions::calc_electron_temperature(Neutrals neutrals, Grid grid, Times time) {
8787

8888
std::string function = "Ions::calc_electron_temperature";
8989
static int iFunction = -1;

0 commit comments

Comments
 (0)