> What will happen if two threads increment the value at the same time? Pretty much random things (garbage, not incremented, etc), depending on atomicity of reads/writes. There is OpenMPAcuumulator template for this purpose, used e.g. for unbalanced force callback.
Cheers, v. _______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

