Skip to content
Snippets Groups Projects
Commit 5dde739c authored by Johannes Boog's avatar Johannes Boog
Browse files

[bugfix] data type of timesteps

parent 58953750
No related branches found
No related tags found
1 merge request!48Resolve "ogs6.4.1 - Minor Bugfixes"
......@@ -495,18 +495,21 @@ validate_timesteps <- function(timesteps, in_output = FALSE){
#Coerce input
if(assertthat::is.string(timesteps[[i]][[1]])){
timesteps[[i]][[1]] <- as.double(timesteps[[i]][[1]])
}
if(assertthat::is.string(timesteps[[i]][[2]])){
timesteps[[i]][[2]] <- as.double(timesteps[[i]][[2]])
timesteps[[i]][[1]] <- as.integer(timesteps[[i]][[1]])
}
if(!in_output){
names(timesteps[[i]])[[2]] <- "delta_t"
if(assertthat::is.string(timesteps[[i]][[2]])){
timesteps[[i]][[2]] <- as.double(timesteps[[i]][[2]])
}
}else{
names(timesteps[[i]])[[2]] <- "each_steps"
if(assertthat::is.string(timesteps[[i]][[2]])){
timesteps[[i]][[2]] <- as.integer(timesteps[[i]][[2]])
}
}
}
names(timesteps) <- rep("pair", length(timesteps))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment