Closed joao-bapdm closed 3 years ago
It appears at first glance to be that the two wavefields are being saved in the same image.
I've made some kind of mistake, both orders give the same result now. So I wasn't adding the second source somehow..
Could someone just confirm swapping the order doesn't change anything?
Sure, but first how were you calling add_sources
that created this issue?
This is a good test @jaimesouza run several simulations and then reverse the order of the sources and compare the results.
# Source
source = Source(kws_half_width=1, wavelet=wavelet)
source.add(position=(255.5, 255.5))
source.add(position=(270, 240))
And what's the way that didn't produce the error?
And what's the way that didn't produce the error?
# Source source = Source(kws_half_width=1, wavelet=wavelet) source.add(position=(255.5, 255.5)) source.add(position=(270, 240))
Not sure what I did before. I would like someone to run the same code just swapping the sources orders to confirm it's working, then I'll close this issue.
Yep I got a different answer just switching the source add calls
After a careful look, I found the problem. It is a bug in the C implementation. I am gonna fix it.
It is fixed. @joao-bapdm and @krober10nd , can you try the latest commit, please?
The example that previously did not work now appears to be working. Thanks.
Was getting different results in 0b1b157, now the order doesn't matter anymore.
Doing a simulation with the same sources leads to different results depending on the order sources are added.
Using the 2d example from the example/ directory:
swapping lines 34 and 35 leads to different shot records:
Adding first (255.5, 255.5), then (270, 240):
Adding first (270, 240), then (255.5, 255.5):
Unfortunately the bug does not come from my latest pull request, as I generated these images in commit 0b1b157.