Skip to content

Commit ff5576c

Browse files
committed
Fix UpdateParam type detection
1 parent 64bd96c commit ff5576c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/hydro/hydro.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ TaskStatus FirstOrderFluxCorrect(MeshData<Real> *u0_data, MeshData<Real> *u1_dat
13221322

13231323
// update central counter
13241324
const auto counter = pkg->Param<std::int64_t>("fixed_num_cells_fofc");
1325-
pkg->UpdateParam("fixed_num_cells_fofc", counter + num_corrected);
1325+
pkg->UpdateParam<std::int64_t>("fixed_num_cells_fofc", counter + num_corrected);
13261326

13271327
return TaskStatus::complete;
13281328
}

src/hydro/hydro_driver.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,8 @@ TaskCollection HydroDriver::MakeTaskCollection(BlockList_t &blocks, int stage) {
594594
std::cout << msg.str() << "\n";
595595
}
596596

597-
hydro_pkg->UpdateParam("fixed_num_cells_fofc", 0); // reset counter for next stage
597+
// reset counter for next stage
598+
hydro_pkg->UpdateParam<std::int64_t>("fixed_num_cells_fofc", 0);
598599
return TaskStatus::complete;
599600
},
600601
pmesh, hydro_pkg.get(), stage);

0 commit comments

Comments
 (0)