Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mkexp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esmenv
mkexp
Commits
8cb43763
Commit
8cb43763
authored
1 year ago
by
Karl-Hermann Wieners
Browse files
Options
Downloads
Patches
Plain Diff
Import: change restart file logic to option
parent
f36fe1f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
importexp
+8
-6
8 additions, 6 deletions
importexp
with
8 additions
and
6 deletions
importexp
+
8
−
6
View file @
8cb43763
...
...
@@ -9,9 +9,10 @@ HELP=false
INTAKE_ONLY
=
false
SLURM_JOB_CPUS_PER_NODE
=
256
DEBUG
=
false
RESTART
=
#% endhelp
while
getopts
b:B:d:D:e:Ehis:t:c:x OPTOPT
while
getopts
b:B:d:D:e:Ehis:t:c:
r:
x OPTOPT
do
case
$OPTOPT
in
#% help
...
...
@@ -26,6 +27,7 @@ do
s
)
CUSTOM_SUBDIR
=
$OPTARG
;;
t
)
EXP_TYPE
=
$OPTARG
;;
c
)
SLURM_JOB_CPUS_PER_NODE
=
$OPTARG
;;
r
)
RESTART
=
$OPTARG
;;
x
)
DEBUG
=
true
;;
#% endhelp
*
)
exit
1
;;
...
...
@@ -150,12 +152,12 @@ cd '$WORK_DIR'
# SLURM_JOB_CPUS_PER_NODE is defined above
export
SLURM_JOB_NUM_NODES SLURM_NODELIST SLURM_JOB_CPUS_PER_NODE
if
[
"x
$RESTART
"
!=
x
]
# Try to mimic restart logic
restart
=
.true.
case
$RUN_SCRIPT
in
*
start
*
)
restart
=
.false.
;;
esac
export
restart
then
restart
=
"
$RESTART
"
export
restart
fi
echo
"Running '
$RUN_SCRIPT
'"
>
&2
...
...
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