Skip to content

Commit

Permalink
bugfix capital cost w adj cost
Browse files Browse the repository at this point in the history
  • Loading branch information
tabeado committed Dec 7, 2023
1 parent 061fbdd commit 8d845f2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions R/reportTechnology.R
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,13 @@ reportTechnology <- function(gdx, output = NULL, regionSubsetList = NULL, t = c(

tmp <- bind_category(tmp, v_investcost, category, unit, factor, techmap)
int2ext <- get_global_mapping(category, unit, techmap)

if (CDR_mod != "off") {
unit <- "US$2005/tCO2 yr"
factor <- 1000 / 3.6
tmp <- bind_category(tmp, v_investcost, category, unit, factor, cdrmap)
int2ext <- c(int2ext, get_global_mapping(category, unit, cdrmap))
}

### Capital cost including adjustment cost ----
if (!is.null(v_adjustteinv_avg)) {
Expand All @@ -263,14 +270,14 @@ reportTechnology <- function(gdx, output = NULL, regionSubsetList = NULL, t = c(

if (tran_mod == "complex") {
unit <- "US$2005/veh"
tmp <- bind_category(tmp, v_investcost, category, unit, factor, carmap)
tmp <- bind_category(tmp, v_investcost + v_adjustteinv_avg, category, unit, factor, carmap)
int2ext <- c(int2ext, get_global_mapping(category, unit, carmap))
}

if (CDR_mod != "off") {
unit <- "US$2005/tCO2 yr"
factor <- 1000 / 3.6
tmp <- bind_category(tmp, v_investcost, category, unit, factor, cdrmap)
tmp <- bind_category(tmp, v_investcost + v_adjustteinv_avg, category, unit, factor, cdrmap)
int2ext <- c(int2ext, get_global_mapping(category, unit, cdrmap))
}

Expand Down

0 comments on commit 8d845f2

Please sign in to comment.