Skip to content

Commit

Permalink
tidying package loading code
Browse files Browse the repository at this point in the history
  • Loading branch information
aestears committed May 22, 2024
1 parent c7b40ad commit c12c9a0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions main/implementation/01_main-simulation-runner.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,26 @@ rm(list=ls(all=TRUE))
# LDFLAGS=-L/sw/lib LIBS=-lhdf5 --with-mpicc=mpicc --with-mpiexec=mpiexec" \
# RNetCDF_2.9-1.tar.gz

remotes::install_github("DrylandEcology/rSW2st")
remotes::install_github("DrylandEcology/rSOILWAT2", build_vignettes = FALSE)
suppressMessages(library(rSOILWAT2, quiet = TRUE))

suppressMessages(library(rSW2data, quiet = TRUE))
suppressMessages(library(RSQLite, quietly = TRUE))
suppressMessages(library(DBI, quietly = TRUE))

suppressMessages(library(rSW2st, quietly = TRUE))
suppressMessages(library(raster, quietly = TRUE))
suppressMessages(library(data.table, quietly = TRUE))
suppressMessages(library(lubridate, quietly = TRUE))

#suppressMessages(library(pbdMPI, quiet = TRUE))
suppressMessages(library(pbdMPI, quiet = TRUE))

suppressMessages(library(pbdNCDF4, quiet = TRUE))
#suppressMessages(library(pbdNCDF4, quiet = TRUE))
suppressMessages(library(RNetCDF, quiet = TRUE))
suppressMessages(library(ncdf4, quiet = TRUE))

# variables --------------------------------------------------------------------
isParallel <- FALSE # set to FALSE if you dont want to use pbdMPI to execute runs in parallel
isParallel <- TRUE # set to FALSE if you dont want to use pbdMPI to execute runs in parallel
nRuns = 30 #is 30 for point based netCDF, but changed to 5 here for testing purposes (this is the number of simulations for each grid?? I think? )

# Begin ------------------------------------------------------------------------
Expand Down

0 comments on commit c12c9a0

Please sign in to comment.