optimad / bitpit

Open source library for scientific HPC
http://optimad.github.io/bitpit/
GNU Lesser General Public License v3.0
117 stars 34 forks source link

patchkernel: allow evaluating patch owner also when patch is dirty #301

Closed andrea-iob closed 2 years ago

andrea-iob commented 2 years ago

The functions isDistributed and getOwner can now be called also when the patch is not up-to-date (the argument allowDirty should be set to true). If dirty patches are allowed and the patch is actually dirty, the functions will evaluate the owner on-the-fly. Otherwise the functions will use the owner evaluated during the last update. In any case, if dirt patches are allowed, the function is a collective function and needs to be called by all processes (otherwise a deadlock will occur).