Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
remind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jerome Hilaire
remind
Commits
786cfd18
Commit
786cfd18
authored
4 years ago
by
David Klein
Browse files
Options
Downloads
Patches
Plain Diff
MAgPIE coupling: outcomment lines that modify the MAgPIE cfg based on the scenario name
parent
8fea4e03
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
start_bundle_coupled.R
+18
-18
18 additions, 18 deletions
start_bundle_coupled.R
with
18 additions
and
18 deletions
start_bundle_coupled.R
+
18
−
18
View file @
786cfd18
...
...
@@ -200,24 +200,24 @@ for(scen in common){
#cfg_rem$gms$biomass <- "magpie_linear"
# Configure Afforestation in MAgPIE
if
(
grepl
(
"-aff760"
,
scen
))
{
cat
(
"Setting MAgPIE max_aff_area to 760\n"
)
cfg_mag
$
gms
$
s32_max_aff_area
<-
760
}
else
if
(
grepl
(
"-aff900"
,
scen
))
{
cat
(
"Setting MAgPIE max_aff_area to 900\n"
)
cfg_mag
$
gms
$
s32_max_aff_area
<-
900
}
else
if
(
grepl
(
"-affInf"
,
scen
))
{
cat
(
"Setting MAgPIE max_aff_area to Inf\n"
)
cfg_mag
$
gms
$
s32_max_aff_area
<-
Inf
}
else
if
(
grepl
(
"-cost2"
,
scen
))
{
cat
(
"Setting MAgPIE cprice_red_factor to 0.2\n"
)
cfg_mag
$
gms
$
s56_cprice_red_factor
<-
0.2
cfg_mag
$
gms
$
s32_max_aff_area
<-
Inf
}
else
if
(
grepl
(
"-cost3"
,
scen
))
{
cat
(
"Setting MAgPIE cprice_red_factor to 0.3\n"
)
cfg_mag
$
gms
$
s56_cprice_red_factor
<-
0.3
cfg_mag
$
gms
$
s32_max_aff_area
<-
Inf
}
#
if (grepl("-aff760",scen)) {
#
cat("Setting MAgPIE max_aff_area to 760\n")
#
cfg_mag$gms$s32_max_aff_area <- 760
#
} else if (grepl("-aff900",scen)) {
#
cat("Setting MAgPIE max_aff_area to 900\n")
#
cfg_mag$gms$s32_max_aff_area <- 900
#
} else if (grepl("-affInf",scen)) {
#
cat("Setting MAgPIE max_aff_area to Inf\n")
#
cfg_mag$gms$s32_max_aff_area <- Inf
#
} else if (grepl("-cost2",scen)) {
#
cat("Setting MAgPIE cprice_red_factor to 0.2\n")
#
cfg_mag$gms$s56_cprice_red_factor <- 0.2
#
cfg_mag$gms$s32_max_aff_area <- Inf
#
} else if (grepl("-cost3",scen)) {
#
cat("Setting MAgPIE cprice_red_factor to 0.3\n")
#
cfg_mag$gms$s56_cprice_red_factor <- 0.3
#
cfg_mag$gms$s32_max_aff_area <- Inf
#
}
#cfg$logoption <- 2 # Have the log output written in a file (not on the screen)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment