Skip to content

Commit

Permalink
Update pikas.slim
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscrsmith authored Apr 24, 2024
1 parent 69ec153 commit 556b802
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions case_studies/pikas/pikas.slim
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ initialize() {
i2.setInteractionFunction("n", 1, SM);

// vector of temperature fluctuations
defineGlobal("FLUCTUATIONS", rep(0.0, RUNTIME));
fluc = rep(0.0, RUNTIME);
for (i in 1:(RUNTIME-1))
FLUCTUATIONS[i] = FLUCTUATIONS[i-1]*PERSISTENCE + rnorm(1, 0, SHOCK);
fluc[i] = fluc[i-1]*PERSISTENCE + rnorm(1, 0, SHOCK);
defineConstant("FLUCTUATIONS", fluc);
}

1 first() {
Expand Down

0 comments on commit 556b802

Please sign in to comment.