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
ca73c230
Commit
ca73c230
authored
4 years ago
by
David Klein
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix for restarting runs: do not execute prepare() for runs that already have full.gms.
parent
d8cbbdcb
No related branches found
No related tags found
1 merge request
!155
A coupled of fixes and improvements to the start scripts
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/start/choose_slurmConfig.R
+1
-1
1 addition, 1 deletion
scripts/start/choose_slurmConfig.R
scripts/start/prepare_and_run.R
+5
-5
5 additions, 5 deletions
scripts/start/prepare_and_run.R
with
6 additions
and
6 deletions
scripts/start/choose_slurmConfig.R
+
1
−
1
View file @
ca73c230
...
...
@@ -70,7 +70,7 @@ choose_slurmConfig <- function() {
return
(
comp
)
}
# combine_slurmconfig takes two strings with SLURM parameters (e.g. "--qos=priority --time=
400
00")
# combine_slurmconfig takes two strings with SLURM parameters (e.g. "--qos=priority --time=
03:30:
00")
# and combines them into one sting of SLURM parameters overwriting the parameters in "original"
# if they also exist in "update_with".
...
...
This diff is collapsed.
Click to expand it.
scripts/start/prepare_and_run.R
+
5
−
5
View file @
ca73c230
...
...
@@ -852,15 +852,15 @@ run <- function(start_subsequent_runs = TRUE) {
# Call prepare and run without cfg, because cfg is read from results folder, where it has been
# copied to by submit(cfg)
if
(
!
file.exists
(
"full
data.gdx
"
))
{
# If no "full
data.gdx
" exists, the script assumes that REMIND did not run before and
if
(
!
file.exists
(
"full
.gms
"
))
{
# If no "full
.gms
" exists, the script assumes that REMIND did not run before and
# prepares all inputs before starting the run.
prepare
()
start_subsequent_runs
<-
TRUE
}
else
{
# If "full
data.gdx
" exists, the script assumes that
REMIND did run
before and you want
# to restart REMIND in the same folder using the gdx that it previously produced.
file.copy
(
"fulldata.gdx"
,
"input.gdx"
,
overwrite
=
TRUE
)
# If "full
.gms
" exists, the script assumes that
a full.gms has been generated
before and you want
# to restart REMIND in the same folder using the gdx that it
eventually
previously produced.
if
(
file.exists
(
"fulldata.gdx"
))
file.copy
(
"fulldata.gdx"
,
"input.gdx"
,
overwrite
=
TRUE
)
start_subsequent_runs
<-
FALSE
}
...
...
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