Skip to content

Commit

Permalink
oops forgot to use hook
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahm-LANL committed Nov 6, 2023
1 parent 281994a commit 1387606
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions example/advection/advection_package.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//========================================================================================
// (C) (or copyright) 2020-2021. Triad National Security, LLC. All rights reserved.
// (C) (or copyright) 2020-2023. Triad National Security, LLC. All rights reserved.
//
// This program was produced under U.S. Government contract 89233218CNA000001 for Los
// Alamos National Laboratory (LANL), which is operated by Triad National Security, LLC
Expand Down Expand Up @@ -217,14 +217,16 @@ std::shared_ptr<StateDescriptor> Initialize(ParameterInput *pin) {
}
pkg->CheckRefinementBlock = CheckRefinement;
pkg->EstimateTimestepBlock = EstimateTimestepBlock;
pkg->UserWorkBeforeLoopMesh = AdvectionGreetings;

return pkg;
}

void AdvectionGreetings(Mesh *pmesh, ParameterInput *pin, parthenon::SimTime &tm) {
if (parthenon::Globals::my_rank == 0) {
std::cout << "Hello from the advection package in the advection example!\n"
<< "This run is a restart: " << pmesh->is_restart << std::endl;
<< "This run is a restart: " << pmesh->is_restart << "\n"
<< std::endl;
}
}

Expand Down
2 changes: 1 addition & 1 deletion example/advection/advection_package.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//========================================================================================
// (C) (or copyright) 2020. Triad National Security, LLC. All rights reserved.
// (C) (or copyright) 2020-2023. Triad National Security, LLC. All rights reserved.
//
// This program was produced under U.S. Government contract 89233218CNA000001 for Los
// Alamos National Laboratory (LANL), which is operated by Triad National Security, LLC
Expand Down

0 comments on commit 1387606

Please sign in to comment.