31 using Tscal = shambase::VecComponent<Tvec>;
32 using Tgridscal = shambase::VecComponent<TgridVec>;
48 inline void init_required_fields() {
49 context.pdata_layout_add_field<TgridVec>(
"cell_min", 1);
50 context.pdata_layout_add_field<TgridVec>(
"cell_max", 1);
51 context.pdata_layout_add_field<Tscal>(
"rho", AMRBlock::block_size);
52 context.pdata_layout_add_field<Tscal>(
"eint", AMRBlock::block_size);
53 context.pdata_layout_add_field<Tvec>(
"vel", AMRBlock::block_size);
58 Tscal evolve_once(Tscal t_current, Tscal dt_input);
T & get_check_ref(const std::unique_ptr< T > &ptr, SourceLocation loc=SourceLocation())
Takes a std::unique_ptr and returns a reference to the object it holds. It throws a std::runtime_erro...