Skip to content

Commit

Permalink
Fix ATMOSPH.in file creation to be displayed
Browse files Browse the repository at this point in the history
correctly in GUI! (requires "weird" adding of RootDepth and deleting of all cTop/cBot headers besides cTop/cBot
  • Loading branch information
mrustl committed Jul 5, 2024
1 parent 7fec900 commit 13364fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/convert_atmosphere_to_string.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ convert_atmosphere_to_string <- function(
names(atm)[is_short] <- do_pad_short(names(atm)[is_short])
names(atm)[is_long] <- do_pad_long(names(atm)[is_long])

header_text <- c(names(atm)[!grepl("(cTop|cBot)[2-9][1-9]?[0-9]?", names(atm))], "RootDepth") %>%
do_pad_long() %>%
header_text <- c(names(atm)[!grepl("[cTop|cBot][1-9]0?", names(atm))],
do_pad_long("RootDepth")) %>%
kwb.utils::collapsed(collapse = "")

body_lines <- apply(atm, 1L, kwb.utils::collapsed, "")
Expand Down

0 comments on commit 13364fb

Please sign in to comment.