diff --git a/src/hydro/Gadget2/hydro.h b/src/hydro/Gadget2/hydro.h index 480be1f20ab9c9c5156e236e656fae367fb5fe1c..b97567d44dd9ce1e1c4faabb912f428d939ccbac 100644 --- a/src/hydro/Gadget2/hydro.h +++ b/src/hydro/Gadget2/hydro.h @@ -304,7 +304,7 @@ __attribute__((always_inline)) INLINE static float hydro_get_pressure( __attribute__((always_inline)) INLINE static float hydro_get_entropy( const struct part *restrict p, float dt) { - return p->entropy + p->force.entropy_dt * dt; + return p->entropy + p->entropy_dt * dt; } /** diff --git a/tests/test125cells.c b/tests/test125cells.c index 3d96c6d370b7480ad349fa43fed9f668663288d3..5bc3d85ca011d81e2a8a0309af11eeddd3ac49f0 100644 --- a/tests/test125cells.c +++ b/tests/test125cells.c @@ -241,9 +241,9 @@ struct cell *make_cell(size_t n, const double offset[3], double size, double h, cell->count = count; cell->gcount = 0; cell->dx_max = 0.; - cell->h[0] = size; - cell->h[1] = size; - cell->h[2] = size; + cell->width[0] = size; + cell->width[1] = size; + cell->width[2] = size; cell->loc[0] = offset[0]; cell->loc[1] = offset[1]; cell->loc[2] = offset[2]; @@ -302,7 +302,7 @@ void dump_particle_fields(char *fileName, struct cell *main_cell, main_cell->parts[pid].a_hydro[0], main_cell->parts[pid].a_hydro[1], main_cell->parts[pid].a_hydro[2], main_cell->parts[pid].force.h_dt, main_cell->parts[pid].force.v_sig, - main_cell->parts[pid].force.entropy_dt, 0.f); + main_cell->parts[pid].entropy_dt, 0.f); } if (with_solution) {