Skip to content
Permalink
Browse files

Bugfix Laplacian

  • Loading branch information...
daveReeves committed Jul 12, 2019
1 parent ca74ac8 commit 5c847aeb67b6a307c123dd3b2d49fbf49b90a78b
Showing with 2 additions and 2 deletions.
  1. +2 −2 SpatialSlur/Fields/Extensions/MeshFieldExtensions.cs
@@ -86,7 +86,7 @@ void Body(int from, int to)
public static MeshField3d<double> GetLaplacian(this MeshField3d<double> field, Func<HeMesh3d.Halfedge, double> getWeight, bool parallel = true)
{
var result = MeshField3d.Double.Create(field);
GetLaplacian(result, getWeight, parallel);
GetLaplacian(field, getWeight, result, parallel);
return result;
}

@@ -98,7 +98,7 @@ public static MeshField3d<double> GetLaplacian(this MeshField3d<double> field, F
/// <param name="getWeight"></param>
/// <param name="result"></param>
/// <param name="parallel"></param>
public static void GetLaplacian(this MeshField3d<double> field, Func<HeMesh3d.Halfedge, double> getWeight, double[] result, bool parallel = true)
public static void GetLaplacian(this MeshField3d<double> field, Func<HeMesh3d.Halfedge, double> getWeight, ArrayView<double> result, bool parallel = true)
{
if (parallel)
Parallel.ForEach(Partitioner.Create(0, field.Count), range => Body(range.Item1, range.Item2));

0 comments on commit 5c847ae

Please sign in to comment.
You can’t perform that action at this time.