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

[base] workaround of get_status when ogs6_obj contains include element

    the problem is that files references by an include tag
    in PRJ files may contain content of prj-classes that are
    required to start in OGS6 object. If the included file is not read
    in, but only referenced, the simulation still works as the content
    is in the referenced file but not in the OGS6 object. Here, get_status
    would thrown an error.
parent ef023c5e
No related branches found
No related tags found
1 merge request!55[base] update package to OGS6.4.2
...@@ -68,7 +68,8 @@ ogs6_export_sim_files <- function(ogs6_obj, ...@@ -68,7 +68,8 @@ ogs6_export_sim_files <- function(ogs6_obj,
# Call all validators # Call all validators
if(!test_mode && if(!test_mode &&
!ogs6_obj$get_status(print_status = FALSE)){ !ogs6_obj$get_status(print_status = FALSE) &&
is.null(ogs6_obj$include)){ # joboog: this is a workaround for now
stop("There are some components missing from your OGS6 object.", stop("There are some components missing from your OGS6 object.",
call. = FALSE) call. = FALSE)
} }
......
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