Skip to content

Commit

Permalink
Initialize carbon before simulation run
Browse files Browse the repository at this point in the history
  • Loading branch information
N1ckP3rsl3y committed Nov 18, 2024
1 parent f4a3495 commit 4e36c16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/SW_netCDF_Input.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "include/filefuncs.h" // for LogError, FileExists, CloseFile
#include "include/generic.h" // for Bool, swFALSE, LOGERROR, swTRUE
#include "include/myMemory.h" // for Str_Dup, Mem_Malloc
#include "include/SW_Carbon.h" // for SW_CBN_init_run
#include "include/SW_datastructs.h" // for LOG_INFO, SW_NETCDF_OUT, SW_DOMAIN
#include "include/SW_Defines.h" // for MAX_FILENAMESIZE, OutPeriod
#include "include/SW_Domain.h" // for SW_DOM_calc_ncSuid
Expand Down Expand Up @@ -7156,6 +7157,11 @@ void SW_NCIN_read_inputs(
if (LogInfo->stopRun) {
return;
}

SW_CBN_init_run(sw->VegProd.veg, &sw->Model, &sw->Carbon, LogInfo);
if (LogInfo->stopRun) {
return;
}
}

if (readSoil) {
Expand Down

0 comments on commit 4e36c16

Please sign in to comment.