Commit 558aba3b authored by Martin Bauer's avatar Martin Bauer
Browse files

New free energy formulation works - produces same result as before

parent 0ead004b
......@@ -347,8 +347,8 @@ class Field:
def center_vector(self):
index_shape = self.index_shape
if len(index_shape) == 0:
elif len(index_shape) == 1:
return sp.Matrix([])
if len(index_shape) == 1:
return sp.Matrix([self(i) for i in range(index_shape[0])])
elif len(index_shape) == 2:
def cb(*args):
Supports Markdown
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