Skip to content

Commit

Permalink
Added call to operation function
Browse files Browse the repository at this point in the history
  • Loading branch information
sbuis committed Dec 16, 2024
1 parent 0d402f1 commit 322303c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions R/stics_wrapper.R
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,14 @@ stics_wrapper <- function(model_options,
)
}

# Compute user defined operations if any
if (is.function(model_options$compute_operations)) {
model_options$compute_operations(
model_options = model_options,
usm_name = situation,
param_values = param_values_sit,
)
}

## Run the model, forcing not to check the model executable (saves time)
usm_out <- run_stics(stics_exe, run_dir, check = FALSE)
Expand Down

0 comments on commit 322303c

Please sign in to comment.