From 129cf0f901b8a7c35ccc7f9dabc373c585d3dd3e Mon Sep 17 00:00:00 2001 From: Kyle Nelli Date: Fri, 7 Feb 2025 11:17:36 -0800 Subject: [PATCH] fixup --- .../TimeDependentOptions/BinaryCompactObject.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Domain/Creators/TimeDependentOptions/BinaryCompactObject.cpp b/src/Domain/Creators/TimeDependentOptions/BinaryCompactObject.cpp index d5da343a8dac..00156888a380 100644 --- a/src/Domain/Creators/TimeDependentOptions/BinaryCompactObject.cpp +++ b/src/Domain/Creators/TimeDependentOptions/BinaryCompactObject.cpp @@ -488,6 +488,9 @@ TimeDependentMapOptions::distorted_to_inertial_map( : RotScaleTrans{}; if (block_has_shape_map) { + // The skew map is only applied within the envelope, which is also where we + // apply the rigid RotScaleTrans map, so use `use_rigid_map` as a sentinel + // for where we put the skew map (if we have one). if (rot_scale_trans_map_.has_value() and (use_rigid_map and skew_map_.has_value())) { return std::make_unique>( @@ -601,6 +604,9 @@ TimeDependentMapOptions::grid_to_inertial_map( &gsl::at(gsl::at(shape_maps_, index), include_distorted_map.value()); } ASSERT(shape->has_value(), "Shape map was requested but not built."); + // The skew map is only applied within the envelope, which is also where we + // apply the rigid RotScaleTrans map, so use `use_rigid_map` as a sentinel + // for where we put the skew map (if we have one). if (rot_scale_trans_map_.has_value() and (use_rigid_map and skew_map_.has_value())) { return std::make_unique>( @@ -615,6 +621,9 @@ TimeDependentMapOptions::grid_to_inertial_map( return std::make_unique>(shape->value()); } } else { + // The skew map is only applied within the envelope, which is also where we + // apply the rigid RotScaleTrans map, so use `use_rigid_map` as a sentinel + // for where we put the skew map (if we have one). if (rot_scale_trans_map_.has_value() and (use_rigid_map and skew_map_.has_value())) { return std::make_unique>(