Skip to content

Commit

Permalink
fix: Update launch script to use modern random number generator syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
abensonca committed Dec 15, 2024
1 parent 42123de commit 5eda1e0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/aux/launch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,11 @@ sub Construct_Models {
= &{$Galacticus::Launch::Hooks::moduleHooks{$launchScript->{'launchMethod'}}->{'outputFileName'}}
($galacticusOutputFile,$launchScript);
# Set the random seed.
$parameters->{'randomSeed'}->{'value'} = $randomSeed
unless ( exists($parameters->{'randomSeed'}) );
$parameters->{'randomNumberGenerator'} = {
value => "GSL",
seed => {value => $randomSeed}
}
unless ( exists($parameters->{'randomNumberGenerator'}) );
# Set a state restore file.
if ( $launchScript->{'useStateFile'} eq "yes" ) {
(my $stateFile = $parameters->{'outputFileName'}->{'value'}) =~ s/\.hdf5//;
Expand Down

0 comments on commit 5eda1e0

Please sign in to comment.