Skip to content

Commit

Permalink
back to troubleshooting the SOILWAT2 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aestears committed Feb 8, 2024
1 parent e2f4d0f commit 3a95437
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions main/implementation/01_main-simulation-runner.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ suppressMessages(library(lubridate, quietly = 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))

Expand Down Expand Up @@ -90,8 +90,6 @@ monthLeads <- makeMonthLeadRelationshipTable(TempAnomsWhole[1:12,], currMonth)
source('./main/implementation/01.1_create-netcdfs.R') # TO DO: Make this a function / obviously change this path
if(!interactive() & isParallel) comm.print('netCDFs created')

## this isn't running... I think there is a netCDF example file that is located on the HPC??

################### ------------------------------------------------------------
# Simulation begins
################### ------------------------------------------------------------
Expand Down Expand Up @@ -251,7 +249,7 @@ for (j in alljid) { # TO DO: use "while" not "for"
PPTAnoms <- PPTAnoms[1:Nleads,]

# function in "weatherFunctions.R"
AnomalyData1 <- runFutureSWwithAnomalies(sw_in0 = sw_in, wdata, SoilsDF,
AnomalyData1 <- runFutureSWwithAnomalies(sw_in0 = sw_example, wdata, SoilsDF, ##AES changed sw_in0 to sw_example, but should be sw_in!!
TempAnoms, PPTAnoms,
Nleads, n = nRuns,
currDOY, currMonth, currYear, currDate)
Expand Down

0 comments on commit 3a95437

Please sign in to comment.