Skip to content

Commit

Permalink
Remove worldtube substep observations
Browse files Browse the repository at this point in the history
  • Loading branch information
nikwit committed Sep 6, 2024
1 parent c68f8e7 commit 14e7d55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "NumericalAlgorithms/SphericalHarmonics/Tags.hpp"
#include "Parallel/GlobalCache.hpp"
#include "Parallel/Reduction.hpp"
#include "Time/Tags/TimeStepId.hpp"
#include "Utilities/ConstantExpressions.hpp"
#include "Utilities/TMPL.hpp"
#include "Utilities/TaggedTuple.hpp"
Expand Down Expand Up @@ -53,7 +54,8 @@ struct ObserveWorldtubeSolution {
Parallel::GlobalCache<Metavariables>& cache,
const ArrayIndex& /*array_index*/, const ActionList /*meta*/,
const ParallelComponent* const /*meta*/) {
if (db::get<Tags::ObserveCoefficientsTrigger>(box).is_triggered(box)) {
if (db::get<Tags::ObserveCoefficientsTrigger>(box).is_triggered(box) and
db::get<::Tags::TimeStepId>(box).substep() == 0) {
const size_t expansion_order = db::get<Tags::ExpansionOrder>(box);
const auto& psi_monopole = db::get<
Stf::Tags::StfTensor<Tags::PsiWorldtube, 0, Dim, Frame::Inertial>>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ struct MockWorldtubeSingleton {
Parallel::Phase::Initialization,
tmpl::list<ActionTesting::InitializeDataBox<
db::AddSimpleTags<
::Tags::Time, Tags::ObserveCoefficientsTrigger, Tags::Psi0,
Tags::dtPsi0,
::Tags::Time, ::Tags::TimeStepId,
Tags::ObserveCoefficientsTrigger, Tags::Psi0, Tags::dtPsi0,
Stf::Tags::StfTensor<Tags::PsiWorldtube, 0, Dim,
Frame::Inertial>,
Stf::Tags::StfTensor<::Tags::dt<Tags::PsiWorldtube>, 0, Dim,
Expand Down

0 comments on commit 14e7d55

Please sign in to comment.