Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonas Plewinski
pystencils
Commits
558aba3b
Commit
558aba3b
authored
Jan 29, 2019
by
Martin Bauer
Browse files
New free energy formulation works - produces same result as before
parent
0ead004b
Changes
1
Hide whitespace changes
Inline
Side-by-side
field.py
View file @
558aba3b
...
...
@@ -347,8 +347,8 @@ class Field:
def
center_vector
(
self
):
index_shape
=
self
.
index_shape
if
len
(
index_shape
)
==
0
:
return
self
.
center
el
if
len
(
index_shape
)
==
1
:
return
sp
.
Matrix
([
self
.
center
])
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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment