-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #327 from DrylandEcology/feature_pcg_seeding
* Random number generators now produce sequences that can be exactly reproduced. * `RandSeed()` gains arguments "initstate" and "initseq" (and lost "seed") to fully seed a `pcg32` random number generator. * `RandNorm()` is now re-entrant and discards one of the two generated values. Compilation with `"RANDNORMSTATIC"` re-produces the old, not re-entrant implementation. * SOILWAT2 gains `rng_seed` as new user input (`"weathsetup.in"`). * `SW_MKV_construct()` now only seeds `markov_rng` (the random number generator of the weather generator) if run as `SOILWAT2` using the new input `rng_seed`; `SW_MKV_construct()` does not seed `markov_rng` when run as part of `STEPWAT2` or `rSOILWAT2` (both of which use their own `RNG` initialization procedures). * `SW_WTH_init_run()` now also initializes yesterday's weather values.
- Loading branch information
Showing
12 changed files
with
410 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
# SOILWAT2 v6.6.0 | ||
* Random number generators now produce sequences that can be exactly reproduced. | ||
* `RandSeed()` gains arguments "initstate" and "initseq" (and lost "seed") to | ||
fully seed a `pcg32` random number generator. | ||
* `RandNorm()` is now re-entrant and discards one of the two generated values. | ||
Compilation with `"RANDNORMSTATIC"` re-produces the old, not re-entrant | ||
implementation. | ||
* SOILWAT2 gains `rng_seed` as new user input (`"weathsetup.in"`). | ||
* `SW_MKV_construct()` now only seeds `markov_rng` (the random number generator | ||
of the weather generator) if run as `SOILWAT2` using the new input `rng_seed`; | ||
`SW_MKV_construct()` does not seed `markov_rng` when run as part of `STEPWAT2` | ||
or `rSOILWAT2` (both of which use their own `RNG` initialization procedures). | ||
* `SW_WTH_init_run()` now also initializes yesterday's weather values. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.