Skip to content

Commit

Permalink
update Jtvec to work with Rx classes
Browse files Browse the repository at this point in the history
  • Loading branch information
lheagy committed May 8, 2016
1 parent cb042ac commit 0a71466
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions SimPEG/EM/FDEM/FDEM.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,9 @@ def Jtvec(self, m, v, f=None):
df_dmT = df_dmT + du_dmT

# TODO: this should be taken care of by the reciever?
real_or_imag = rx.projComp
if real_or_imag is 'real':
if rx.real_or_imag is 'real':
Jtv += np.array(df_dmT, dtype=complex).real
elif real_or_imag is 'imag':
elif rx.real_or_imag is 'imag':
Jtv += - np.array(df_dmT, dtype=complex).real
else:
raise Exception('Must be real or imag')
Expand Down

0 comments on commit 0a71466

Please sign in to comment.