From f263d7e070ed42c106632e722066e17f040ae5ba Mon Sep 17 00:00:00 2001
From: Peter Powers <pmpowers@usgs.gov>
Date: Fri, 11 Feb 2022 13:42:13 -0700
Subject: [PATCH] centered grid smoothing offset array

---
 .../java/gov/usgs/earthquake/nshmp/model/GridRuptureSet.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main/java/gov/usgs/earthquake/nshmp/model/GridRuptureSet.java b/src/main/java/gov/usgs/earthquake/nshmp/model/GridRuptureSet.java
index 79d5b2d8..38629940 100644
--- a/src/main/java/gov/usgs/earthquake/nshmp/model/GridRuptureSet.java
+++ b/src/main/java/gov/usgs/earthquake/nshmp/model/GridRuptureSet.java
@@ -1039,9 +1039,11 @@ public class GridRuptureSet extends AbstractRuptureSet<PointSource> {
   private static final int PRECISION = 5;
   private static final double[] OFFSET_SCALE_10 = Sequences
       .arrayBuilder(-0.45, 0.45, 0.1)
+      .centered()
       .build();
   private static final double[] OFFSET_SCALE_4 = Sequences
       .arrayBuilder(-0.375, 0.375, 0.25)
+      .centered()
       .build();
 
   /*
-- 
GitLab