Commit bdd1533d authored by Philipp Arras's avatar Philipp Arras
Browse files

Add factor 0.5 in SymmetrizingOperator

parent 9e21f080
...@@ -42,4 +42,5 @@ class SymmetrizingOperator(EndomorphicOperator): ...@@ -42,4 +42,5 @@ class SymmetrizingOperator(EndomorphicOperator):
lead = (slice(None),)*i lead = (slice(None),)*i
v, loc = dobj.ensure_not_distributed(v, (i,)) v, loc = dobj.ensure_not_distributed(v, (i,))
loc[lead+(slice(1, None),)] -= loc[lead+(slice(None, 0, -1),)] loc[lead+(slice(1, None),)] -= loc[lead+(slice(None, 0, -1),)]
loc /= 2
return Field(self.target, dobj.ensure_default_distributed(v)) return Field(self.target, dobj.ensure_default_distributed(v))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment