MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / validate_randomSeeds

Function validate_randomSeeds

quest/src/core/validation.cpp:1479–1490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1477 */
1478
1479void validate_randomSeeds(unsigned* seeds, int numSeeds, const char* caller) {
1480
1481 // only the root node's seeds are consulted, so we permit all non-root
1482 // nodes to have invalid parameters. All nodes however must know/agree
1483 // when the root node's seeds are invalid, to synchronise validation
1484
1485 int numRootSeeds = numSeeds;
1486 if (getQuESTEnv().isDistributed)
1487 comm_broadcastIntsFromRoot(&numRootSeeds, 1);
1488
1489 assertThat(numRootSeeds > 0, report::INVALID_NUM_RANDOM_SEEDS, {{"${NUM_SEEDS}", numSeeds}}, caller);
1490}
1491
1492void validate_newEpsilonValue(qreal eps, const char* caller) {
1493

Callers 1

setSeedsFunction · 0.85

Calls 3

getQuESTEnvFunction · 0.85
assertThatFunction · 0.85

Tested by

no test coverage detected