From 596b7fa128c95f4f49e0aed88e860b39d725a582 Mon Sep 17 00:00:00 2001 From: "Scott V. Luedtke" Date: Tue, 12 Oct 2021 16:29:57 -0600 Subject: [PATCH] Fixes issue #146 where vectorized hydro_p has an extra momentum update. --- src/species_advance/standard/pipeline/hydro_p_pipeline_v16.cc | 4 ---- src/species_advance/standard/pipeline/hydro_p_pipeline_v4.cc | 4 ---- src/species_advance/standard/pipeline/hydro_p_pipeline_v8.cc | 4 ---- 3 files changed, 12 deletions(-) diff --git a/src/species_advance/standard/pipeline/hydro_p_pipeline_v16.cc b/src/species_advance/standard/pipeline/hydro_p_pipeline_v16.cc index a984ce55..de088bec 100644 --- a/src/species_advance/standard/pipeline/hydro_p_pipeline_v16.cc +++ b/src/species_advance/standard/pipeline/hydro_p_pipeline_v16.cc @@ -170,10 +170,6 @@ accumulate_hydro_p_pipeline_v16( accumulate_hydro_p_pipeline_args_t * args, uy = fma( fms( v02, cbx, v00 * cbz ), v04, uy ); uz = fma( fms( v00, cby, v01 * cbx ), v04, uz ); - ux += hax; - uy += hay; - uz += haz; - //-------------------------------------------------------------------------- // Compute velocity. //-------------------------------------------------------------------------- diff --git a/src/species_advance/standard/pipeline/hydro_p_pipeline_v4.cc b/src/species_advance/standard/pipeline/hydro_p_pipeline_v4.cc index 9c82eee3..4cf5b953 100644 --- a/src/species_advance/standard/pipeline/hydro_p_pipeline_v4.cc +++ b/src/species_advance/standard/pipeline/hydro_p_pipeline_v4.cc @@ -153,10 +153,6 @@ accumulate_hydro_p_pipeline_v4( accumulate_hydro_p_pipeline_args_t * args, uy = fma( fms( v02, cbx, v00 * cbz ), v04, uy ); uz = fma( fms( v00, cby, v01 * cbx ), v04, uz ); - ux += hax; - uy += hay; - uz += haz; - //-------------------------------------------------------------------------- // Compute velocity. //-------------------------------------------------------------------------- diff --git a/src/species_advance/standard/pipeline/hydro_p_pipeline_v8.cc b/src/species_advance/standard/pipeline/hydro_p_pipeline_v8.cc index 27ca3714..3dbbc813 100644 --- a/src/species_advance/standard/pipeline/hydro_p_pipeline_v8.cc +++ b/src/species_advance/standard/pipeline/hydro_p_pipeline_v8.cc @@ -151,10 +151,6 @@ accumulate_hydro_p_pipeline_v8( accumulate_hydro_p_pipeline_args_t * args, uy = fma( fms( v02, cbx, v00 * cbz ), v04, uy ); uz = fma( fms( v00, cby, v01 * cbx ), v04, uz ); - ux += hax; - uy += hay; - uz += haz; - //-------------------------------------------------------------------------- // Compute velocity. //--------------------------------------------------------------------------