Skip to content
Snippets Groups Projects
Commit 558aba3b authored by Martin Bauer's avatar Martin Bauer
Browse files

New free energy formulation works - produces same result as before

parent 0ead004b
Branches
Tags
No related merge requests found
...@@ -347,8 +347,8 @@ class Field: ...@@ -347,8 +347,8 @@ class Field:
def center_vector(self): def center_vector(self):
index_shape = self.index_shape index_shape = self.index_shape
if len(index_shape) == 0: if len(index_shape) == 0:
return self.center return sp.Matrix([self.center])
elif len(index_shape) == 1: if len(index_shape) == 1:
return sp.Matrix([self(i) for i in range(index_shape[0])]) return sp.Matrix([self(i) for i in range(index_shape[0])])
elif len(index_shape) == 2: elif len(index_shape) == 2:
def cb(*args): def cb(*args):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment