-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of multiprocessing for simpack.DynamicalModel #140
Comments
How many periods/layers you have in your superlattice? Can you provide an example script and specify what "quite a while" means? I need to think about the possibilities of parallelization, but I think it's not as easy as in PowderModel. It might be actually easier in this case to look into numexpr. |
Thanks for you very fast answer. 555 periods ! I know its a lot (and relaxation may occur). I will have look to numexpr. |
yes 555 is a lot and the main loop in DynamicalModel goes over the layers and this is one which I think can't be parallelized, but its execution (loop body) could likely be optimized (maybe by numexpr). Any pull requests/patches are certainly welcome. |
Hi Dominique |
I don't know why Darwin model could be faster. See xrayutilities/examples/simpack_xrd_dyn_AlGaAs.py Lines 118 to 120 in 0af8aa7
Note: xrayutilities/lib/xrayutilities/simpack/smaterials.py Lines 50 to 66 in 0af8aa7
Currently the names of the layers are automatically generated from the underlaying materials name. An optional keyword argument in the mentioned function would likely be better and one can still fall back to using the materials name if nothing is specified. |
#169 picks up this idea and implements it. |
Hello
I am a new and happy user of xrayutities, for high resolution omega-2theta scans. My scans extend over several degrees since I analyse GaAs/AlAs SL with period from 20 to 200 nm. Calculations within the DynamicalModel take quite a while, and it would be great to have multiprocessing features as for the powder model. Is that something that could be implemented easily?
Thanks a lot for making rayutilities available open-source, thanks for this great work.
The text was updated successfully, but these errors were encountered: