devito icon indicating copy to clipboard operation
devito copied to clipboard

Redundant arguments for AcousticWaveSolver

Open philippwitte opened this issue 4 years ago • 5 comments

When looking at the dask tutorial, I noticed that AcousticWaveSolver takes a model and a geometry structure as input arguments. However, geometry already contains a model structure itself. Is it therefore necessary to pass both arguments instead of just passing geometry? Otherwise it's not clear which one is used for what.

Another thing I noticed is that it's possible to pass a geometry structure to AcousticWaveSolver which contains the coordinates for multiple sources. However, when you call the solver, it only returns results for the first source position. I think it would be good to either have a loop over shots in AcousticWaveSolver or throw an error (or at least a warning) if you pass it a geometry object with more than one source.

philippwitte avatar Feb 26 '20 19:02 philippwitte

I've assigned this to Mathias because usually he's the one taking care of the examples.

However, I do see what you mean, and yes, I think you're right, there's definitely some clean up that we should do. If you already have a patch in your mind, please don't be shy and file a PR :D

FabioLuporini avatar Feb 28 '20 11:02 FabioLuporini

@mloubout @philippwitte is this still an issue today? we've merged quite a few PRs that might have improved the situation

FabioLuporini avatar Jun 12 '20 10:06 FabioLuporini

ping @mloubout @philippwitte

FabioLuporini avatar Jun 17 '20 08:06 FabioLuporini

ping @mloubout

FabioLuporini avatar Mar 25 '21 14:03 FabioLuporini

I think it's still there as a legacy feature but throws a warning.

mloubout avatar Mar 25 '21 14:03 mloubout