Skip to content
GitLab
    • Explore Projects Groups Topics Snippets
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • R Rsic2
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

La forge institutionnelle d'INRAE étant en production depuis le 10 juin 2025, nous vous invitons à y créer vos nouveaux projets.

  • SIC2SIC2
  • Rsic2
  • Merge requests
  • !6

Resolve "Read result simulation in sections from a binary result files"

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Dorchies David requested to merge 9-read-result-simulation-in-sections-from-a-binary-result-files into main 3 years ago
  • Overview 0
  • Commits 11
  • Pipelines 6
  • Changes 6

Closes #9 (closed)

Edited 3 years ago by Dorchies David
Viewing commit 3a60152c
Show latest version
6 files
+ 12
− 2

    Preferences

    File browser
    Compare changes
  • 3a60152c
    Dorchies David
    ci: add dontrun to examples running SIC · 3a60152c
    Dorchies David authored 3 years ago
R/cfg_tmp_project.R
+ 2
− 0
  • View file @ 3a60152c

  • Edit in single-file editor

  • Open in Web IDE


@@ -7,8 +7,10 @@
#' @export
#'
#' @examples
#' \dontrun{
#' cfg <- cfg_tmp_project()
#' cfg$project$xml_path
#' }
#'
cfg_tmp_project <- function(xml_path = system.file("sic_project_test1.xml", package = "rsic2"), cfg = loadConfig(xml_path = xml_path)) {
cfg$project$path <- tempfile("sic_project", fileext = ".xml")
R/get_result.R
+ 2
− 0
  • View file @ 3a60152c

  • Edit in single-file editor

  • Open in Web IDE


@@ -9,9 +9,11 @@
#' @import magrittr
#'
#' @examples
#' \dontrun{
#' cfg <- cfg_tmp_project()
#' sic_run_fortran("fluvia", list(SCE = 1), cfg = cfg)
#' get_result(cfg, 1, filters = c("bf==4", "var=='Z'"))
#' }
get_result <- function(cfg,
scenario,
variant = 0,
R/sic_run_fortran.R
+ 2
− 1
  • View file @ 3a60152c

  • Edit in single-file editor

  • Open in Web IDE


@@ -13,8 +13,9 @@
#' @examples
#' \dontrun{
#' # Run steady simulation for the scenario #1
#' cfg <- cfg_tmp_project()
#' params <- list(SCE=1)
#' sic_run_fortran("fluvia", params)
#' sic_run_fortran("fluvia", params, cfg = cfg)
#'}
sic_run_fortran <- function(prog, params = list(), cfg = loadConfig()) {
if (is.list(params)) params <- convert_sic_params(params, cfg)
man/cfg_tmp_project.Rd
+ 2
− 0
  • View file @ 3a60152c

  • Edit in single-file editor

  • Open in Web IDE


@@ -21,7 +21,9 @@ The updated configuration with the temporary project directory
Set a configuration with a temporary project directory
}
\examples{
\dontrun{
cfg <- cfg_tmp_project()
cfg$project$xml_path
}
}
man/get_result.Rd
+ 2
− 0
  • View file @ 3a60152c

  • Edit in single-file editor

  • Open in Web IDE


@@ -30,7 +30,9 @@ get_result(
Get a selection of variables from a simulation result
}
\examples{
\dontrun{
cfg <- cfg_tmp_project()
sic_run_fortran("fluvia", list(SCE = 1), cfg = cfg)
get_result(cfg, 1, filters = c("bf==4", "var=='Z'"))
}
}
man/sic_run_fortran.Rd
+ 2
− 1
  • View file @ 3a60152c

  • Edit in single-file editor

  • Open in Web IDE


@@ -26,7 +26,8 @@ If argument \code{params} is a \link{list}, arguments are injected in the comman
\examples{
\dontrun{
# Run steady simulation for the scenario #1
cfg <- cfg_tmp_project()
params <- list(SCE=1)
sic_run_fortran("fluvia", params)
sic_run_fortran("fluvia", params, cfg = cfg)
}
}
Assignee
Dorchies David's avatar
Dorchies David
Assign to
0 Reviewers
None
Request review from
Labels
1
enhancement
1
enhancement
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
1
1 Participant
Dorchies David
Reference: SIC2/rsic2!6
Source branch: 9-read-result-simulation-in-sections-from-a-binary-result-files

Menu

Explore Projects Groups Topics Snippets