[pyfr] 27/88: Cleanups.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Nov 16 12:05:26 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository pyfr.
commit b9e7032a42bd4ee75d331aeb8875da95e7c49612
Author: Freddie Witherden <freddie at witherden.org>
Date: Tue Apr 26 09:39:48 2016 -0700
Cleanups.
---
pyfr/solvers/base/elements.py | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/pyfr/solvers/base/elements.py b/pyfr/solvers/base/elements.py
index bc06cde..faf7e6c 100644
--- a/pyfr/solvers/base/elements.py
+++ b/pyfr/solvers/base/elements.py
@@ -260,15 +260,14 @@ class BaseElements(object, metaclass=ABCMeta):
smats_mpts, djacs_mpts = self._smats_djacs_mpts
# Interpolation matrix to pts
- M0 = self.basis.mbasis.nodal_basis_at(pts)
+ m0 = self.basis.mbasis.nodal_basis_at(pts)
# Interpolate smats
- smats = np.array([np.dot(M0, smat) for smat in smats_mpts])
+ smats = np.array([np.dot(m0, smat) for smat in smats_mpts])
smats = smats.reshape(self.ndims, npts, self.ndims, -1)
- # Interpolate djacs
if retdets:
- return smats, np.dot(M0, djacs_mpts)
+ return smats, np.dot(m0, djacs_mpts)
else:
return smats
@@ -300,7 +299,6 @@ class BaseElements(object, metaclass=ABCMeta):
smats = np.empty_like(jac)
if ndims == 2:
- # Just compute smats whose order is q-1
a, b, c, d = jac[0,:,0], jac[0,:,1], jac[1,:,0], jac[1,:,1]
smats[0,:,0], smats[0,:,1] = d, -b
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyfr.git
More information about the debian-science-commits
mailing list