Skip to content

Commit 8147a5c

Browse files
committed
Fix z velocity in line features.
1 parent 9273bd3 commit 8147a5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/world_builder/features/fault.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ namespace WorldBuilder
718718
std::array<double,3> velocity_current_section;// = Point<3>(cartesian);
719719
velocity_current_section[0] = output[entry_in_output[i_property]];
720720
velocity_current_section[1] = output[entry_in_output[i_property]+1];
721-
velocity_current_section[2] = output[entry_in_output[i_property]]+2;
721+
velocity_current_section[2] = output[entry_in_output[i_property]+2];
722722
std::array<double,3> velocity_next_section = velocity_current_section;// output[entry_in_output[i_property]];
723723

724724
for (const auto &velocity_model: segment_vector[current_section][current_segment].velocity_systems)

source/world_builder/features/subducting_plate.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ namespace WorldBuilder
751751
std::array<double,3> velocity_current_section;// = Point<3>(cartesian);
752752
velocity_current_section[0] = output[entry_in_output[i_property]];
753753
velocity_current_section[1] = output[entry_in_output[i_property]+1];
754-
velocity_current_section[2] = output[entry_in_output[i_property]]+2;
754+
velocity_current_section[2] = output[entry_in_output[i_property]+2];
755755
std::array<double,3> velocity_next_section = velocity_current_section;// output[entry_in_output[i_property]];
756756

757757
for (const auto &velocity_model: segment_vector[current_section][current_segment].velocity_systems)

0 commit comments

Comments
 (0)