adjtomo / pyadjoint

Measure waveform misfits and generate adjoint sources for a variety of measurement quantities
http://adjtomo.github.io/pyadjoint/
BSD 3-Clause "New" or "Revised" License
14 stars 26 forks source link

A typo for writing adjoint source in ASDF format #5

Closed ziyixi closed 4 years ago

ziyixi commented 4 years ago

https://github.com/krischer/pyadjoint/blob/e42f24acd46a981b85a57ca4039313e1886f1223/src/pyadjoint/adjoint_source.py#L190

Hi Lion, It seems that this line should be changed to specfem_adj_source[:, 0] += time_offset.

krischer commented 4 years ago

You are of course right. Fixed in 8a20e47bdd2796ff1e8266cf5a9d2fce8e084e9a

Thanks for reporting!