Skip to content

Commit

Permalink
Correct regression test.
Browse files Browse the repository at this point in the history
  • Loading branch information
DongWuTUM committed Feb 13, 2023
1 parent 65a2ac4 commit ae66a37
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
Expand Up @@ -98,9 +98,7 @@ namespace SPH
Real temp = three_gaussian_points_[l] * average_spacing_k * 0.5 + average_spacing_k * 0.5;
contact_temp = 2.0 * (kernel_->W(h_ratio_k, temp, ZeroVecd) - offset_W_ij_[l]) *
average_spacing_k * 0.5 * three_gaussian_weights_[l];
contact_max += contact_temp;
if (Dimensions == 3)
contact_max += contact_temp * Pi * temp;
contact_max += Dimensions == 2 ? contact_temp : contact_temp * Pi * temp;
}
/** a calibration factor to avoid particle penetration into shell structure */
calibration_factor_.push_back(solid_.ReferenceDensity() / (contact_max + Eps));
Expand Down
Expand Up @@ -234,7 +234,7 @@ int main(int ac, char *av[])

if (sph_system.generate_regression_data_)
{
write_ball_center_displacement.generateDataBase(1.0e-2);
write_ball_center_displacement.generateDataBase(0.05);
}
else
{
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8" ?>
<dtw_distance>
<DTWDistance Position_0="0.0086099999999995624" />
<DTWDistance Position_0="0.016639999999999988" />
</dtw_distance>

0 comments on commit ae66a37

Please sign in to comment.