agb32 / dasp

DASP the Durham Adaptive optics Simulation Platform: Modelling and simulation of adaptive optics systems
https://www.dur.ac.uk/cfai/adaptiveoptics/dasp/
GNU Affero General Public License v3.0
16 stars 10 forks source link

fix for corrupted poke matrix when DASPNOMPI=YES in util/Ctrl.py:doIn… #9

Closed sdimoudi closed 3 years ago

sdimoudi commented 3 years ago

…itialPokeThenRun()

Issue: When DASPNOMPI is set in the environment (DUMMY MPI object), if first simulation command is ctrl.doInitialPokeThenRun(), the poking is interfered by the the main simulation after 10 iterations, resulting in an incorrect poke matrix, and no AO performance. fix: in util/Ctrl.py:doInitialPokeThenRun() check for DASPNOMPI before updating maxmodes with the max shared processes value, and skip the maxmodes update if enabled. Should also fix issue #4.