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

[base] add new tags to class prj_source term

    add source_term_object
    add flush_stout
parent 63f171bf
No related branches found
No related tags found
1 merge request!55[base] update package to OGS6.4.2
...@@ -285,6 +285,7 @@ new_prj_boundary_condition <- function(type, ...@@ -285,6 +285,7 @@ new_prj_boundary_condition <- function(type,
#' @param geometry Optional: string: #' @param geometry Optional: string:
#' @param mesh Optional: string: #' @param mesh Optional: string:
#' @param source_term_object Optional: string: #' @param source_term_object Optional: string:
#' @param flush_stdout Optional: string:
#' @example man/examples/ex_prj_source_term.R #' @example man/examples/ex_prj_source_term.R
#' @export #' @export
prj_source_term <- function(type, prj_source_term <- function(type,
...@@ -292,7 +293,8 @@ prj_source_term <- function(type, ...@@ -292,7 +293,8 @@ prj_source_term <- function(type,
geometrical_set = NULL, geometrical_set = NULL,
geometry = NULL, geometry = NULL,
mesh = NULL, mesh = NULL,
source_term_object = NULL){ source_term_object = NULL,
flush_stdout = NULL){
#Coerce input #Coerce input
...@@ -301,7 +303,8 @@ prj_source_term <- function(type, ...@@ -301,7 +303,8 @@ prj_source_term <- function(type,
geometrical_set, geometrical_set,
geometry, geometry,
mesh, mesh,
source_term_object) source_term_object,
flush_stdout)
} }
...@@ -310,7 +313,8 @@ new_prj_source_term <- function(type, ...@@ -310,7 +313,8 @@ new_prj_source_term <- function(type,
geometrical_set = NULL, geometrical_set = NULL,
geometry = NULL, geometry = NULL,
mesh = NULL, mesh = NULL,
source_term_object = NULL){ source_term_object = NULL,
flush_stdout = NULL){
assertthat::assert_that(assertthat::is.string(type)) assertthat::assert_that(assertthat::is.string(type))
...@@ -318,7 +322,8 @@ new_prj_source_term <- function(type, ...@@ -318,7 +322,8 @@ new_prj_source_term <- function(type,
geometrical_set, geometrical_set,
geometry, geometry,
mesh, mesh,
source_term_object) source_term_object,
flush_stdout)
structure(list(type = type, structure(list(type = type,
parameter = parameter, parameter = parameter,
...@@ -326,11 +331,11 @@ new_prj_source_term <- function(type, ...@@ -326,11 +331,11 @@ new_prj_source_term <- function(type,
geometry = geometry, geometry = geometry,
mesh = mesh, mesh = mesh,
source_term_object = source_term_object, source_term_object = source_term_object,
flush_stdout = flush_stdout,
xpath = paste0("process_variables/process_variable/", xpath = paste0("process_variables/process_variable/",
"source_terms/source_term"), "source_terms/source_term"),
attr_names = character(), attr_names = character(),
flatten_on_exp = character() flatten_on_exp = character()),
),
class = "prj_source_term" class = "prj_source_term"
) )
} }
......
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