Open pasansherath opened 1 year ago
@pasansherath, no reason to apologize. Your comments are very helpful for making PyRaysum better and may be valuable for other users. Thanks for raising them.
I'll come back to you later this week. In the meantime, could you please post the parameters that you were using (model file, and the non-default arguments to Control and Geometry)? Perhaps a minimal working example?
From your output, I understand that you have set mults=2
in combination with a model with 8 layers. I understand and expect that seemingly infinite run times result from this setup, as the code will compute a vast combination of reflected wave types. In the standard configuration, this would yield a segmentation fault. Please see curve Obs-M2-F-RF
or Num-M2
of Figure 6 of the PyRaysum paper.
You have several options to proceed from here:
Control.set_phaselist(descriptors)
. This is advanced usage and I am happy to get you started with that.To limit the number of phases, there is now a new method of Model
in the dev
branch: Model.get_phaselist()
gives you fine-grained control over which phases to include in your calculation. This could be useful for your use case. I'd be happy to get some feedback, if you'd like to give it a try :smile:
Hi @wsja, Thanks very much for your suggestions, and I am sorry for the delay in responding to you.
I was able to resolve the issue I had by splitting a ~20 km thick layer into two identical ~10 km thick layers.
I also need to model all possible phases, therefore setting the phase list is not ideal.
Hi @wsja
For some velocity models, receiver function computations take an infinite time. When I use
verbose=1
, I see the following output, and stays the same forever. What could be happening here? I tried tweaking the velocity model in question, but same outcome. I am sorry for opening all these issues, but it seems the only way to resolve them. Thanks in advance!