Skip to content
Snippets Groups Projects
Commit 3a4f415d authored by Ruben Heinrich's avatar Ruben Heinrich
Browse files

[base] Changed read_in function to fit new vtu class

parent 03e70298
No related branches found
No related tags found
1 merge request!6Merge branch 7 fixed functionality into master
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
#'pick_vtu_file #'pick_vtu_file
#'@description Lets the user pick a .vtu file and adds it to the specified OGS6 class object #'@description Lets the user pick a .vtu file and adds it to the specified OGS6
#'@param ogs6_obj A OGS6 class object #' class object
#'@param ogs6_obj OGS6: Simulation object
#'@export #'@export
pick_vtu_file <- function(ogs6_obj) { pick_vtu_file <- function(ogs6_obj) {
...@@ -14,13 +15,13 @@ pick_vtu_file <- function(ogs6_obj) { ...@@ -14,13 +15,13 @@ pick_vtu_file <- function(ogs6_obj) {
file <- file.choose() file <- file.choose()
check_file_extension(file, "vtu") check_file_extension(file, "vtu")
ogs6_obj$add_mesh(r2ogs6_mesh(basename(file))) ogs6_obj$add_mesh(OGS6_mesh$new(file))
file.copy(file, ogs6_obj$sim_path) file.copy(file, ogs6_obj$sim_path)
} }
#'read_in_vtu #'read_in_vtu
#'@description Wrapper function to read in a whole .vtu file #'@description Wrapper function to read in a whole .vtu file
#'@param ogs6_obj A OGS6 class object #'@param ogs6_obj OGS6: Simulation object
#'@param vtu_path The path to the mesh file that should be read in #'@param vtu_path The path to the mesh file that should be read in
#'@export #'@export
read_in_vtu <- function(ogs6_obj, vtu_path) { read_in_vtu <- function(ogs6_obj, vtu_path) {
......
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