| 1477 | */ |
| 1478 | |
| 1479 | void 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 | |
| 1492 | void validate_newEpsilonValue(qreal eps, const char* caller) { |
| 1493 |
no test coverage detected