Skip to content

Commit

Permalink
trying to get sda.rewind to work to get back to spin up. need to come…
Browse files Browse the repository at this point in the history
… up with something more intuitive in the future. NOTE: come back to this for lorimer paper because this is a key function for restarting the analysis every year
  • Loading branch information
araiho committed Jan 23, 2020
1 parent 82fee37 commit 2a0ecfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/assim.sequential/inst/sda.rewind.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ sda_rewind <- function(settings,run.id,time_to_rewind){
ANALYSIS[t] <- NULL
enkf.params[t] <- NULL

for(i in 1:length(new.state)) new.state[[i]] <- ANALYSIS[[t]][,i]
for(i in 1:length(new.state)) new.state[[i]] <- ANALYSIS[[t-1]][,i] #not sure if this should be t or t-1

t = t-1

Expand Down

0 comments on commit 2a0ecfb

Please sign in to comment.