Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CNMS
CNMS_Computing_Resources
Commits
931c9c07
Commit
931c9c07
authored
Mar 22, 2017
by
Doak, Peter W
Browse files
fixed indexing bug in batched run example
parent
e49c900b
Changes
1
Hide whitespace changes
Inline
Side-by-side
CADES/VASP_OneJob_Parallel_Runs/vasp_batched.pbs
View file @
931c9c07
...
...
@@ -51,10 +51,10 @@ done
vrdlen
=
${#
vrundirs
[@]
}
for
vrun
in
$(
seq
1
$vrdlen
)
do
rundir
=
${
vrundirs
[
$vrun
]
}
rundir
=
${
vrundirs
[
$
((
vrun
-1
))
]
}
start
=
$(
expr
1 +
$(
expr
$((
$vrun
-
1
))
\*
$CORES_PER_RUN
))
end
=
$(
expr
$vrun
\*
$CORES_PER_RUN
)
echo
"
$start
$end
"
echo
"
$vrun
$rundir
$start
$end
"
awk
-v
start
=
$start
-v
end
=
$end
'NR >= start && NR <= end'
pbs_nodefile
>
${
rundir
}
/pbs_nodefile
done
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment