Commit 1af88506 authored by inhuszar's avatar inhuszar
Browse files

Bugfix: sum of linear + non-linear tx

parent c70bf54a
......@@ -195,8 +195,10 @@ class TxDisplacementField(TxNonLinear):
xp = self.domain.get_physical_coordinates()
oitx = other.inverse()
du = xp - oitx.map(xp)
tx = self.copy()
tx = self.copy().absolute()
tx.parameters.parameters[:] += du.T.ravel()
if self.mode == NL_REL:
tx = tx.relative()
domain = self.domain[:] # preserves txs in a new domain instance
tx.metaparameters.update(domain=domain)
tx.domain.chain.append(oitx)
......
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