Skip to content

Fix generation of random numbers in stochastic CG solver

James Willenbring requested to merge hkthorn:develop into develop

Created by: hkthorn

This change modifies the generation of the random numbers used to compute the stochastic vector to ensure that they are synchronized across multiple processors.

@trilinos/

Description

This change modifies the generation of the random numbers used to compute the stochastic vector to ensure that they are synchronized across multiple processors.

Motivation and Context

There could be issues with the linear algebra interface when scalar values are not the same across processors. This may lead to indeterminate behavior.

How Has This Been Tested?

OSX, gcc 7.2 / RHEL6 intel 17.0 openmpi 1.10

Checklist

  • My commit messages mention the appropriate GitHub issue numbers.
  • My code follows the code style of the affected package(s).
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the code contribution guidelines for this project.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • No new compiler warnings were introduced.
  • These changes break backwards compatibility.

Merge request reports