Skip to content

Commit

Permalink
ensure that vm_co2capture has the correct dimensions in reportEmi
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Schreyer authored and Felix Schreyer committed Nov 19, 2024
1 parent c555590 commit 7499307
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/reportEmi.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ reportEmi <- function(gdx, output = NULL, regionSubsetList = NULL,
### Carbon management variables
# total captured CO2
vm_co2capture <- readGDX(gdx, c("vm_co2capture","v_co2capture"), field = "l", restore_zeros = F)[, t, ]
vm_co2capture <- magclass::matchDim(vm_co2capture, vm_co2eq, dim = 1)

vm_emiCdr_co2 <- readGDX(gdx, "vm_emiCdr", field = "l", restore_zeros = F)[, t, "co2"]
vm_emiCdrTeDetail <- readGDX(gdx, c("vm_emiCdrTeDetail","v33_emi"), field = "l", restore_zeros = F, react = "silent")[, t, ]

Expand Down

0 comments on commit 7499307

Please sign in to comment.