Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Parallel Coupling
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paleoclimate Dynamics
Projects
AWIESM-2.2 Development
Parallel Coupling
Commits
5d3a1521
Commit
5d3a1521
authored
4 years ago
by
Paul Gierz
Browse files
Options
Downloads
Patches
Plain Diff
style: apply better indentation to Enrico's script
parent
ef4f781f
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
minimal_example/test.run
+11
-13
11 additions, 13 deletions
minimal_example/test.run
with
11 additions
and
13 deletions
minimal_example/test.run
+
11
−
13
View file @
5d3a1521
...
@@ -52,19 +52,17 @@ tmp=${nodeslurm#"m["}
...
@@ -52,19 +52,17 @@ tmp=${nodeslurm#"m["}
nodes
=
${
tmp
%]*
}
nodes
=
${
tmp
%]*
}
myarray
=(
`
echo
$nodes
|
sed
's/,/\n/g'
`
)
myarray
=(
`
echo
$nodes
|
sed
's/,/\n/g'
`
)
idx
=
0
idx
=
0
for
element
in
"
${
myarray
[@]
}
"
for
element
in
"
${
myarray
[@]
}
"
;
do
do
if
[[
"
$element
"
==
*
"-"
*
]]
;
then
if
[[
"
$element
"
==
*
"-"
*
]]
;
then
array
=(
`
echo
$element
|
sed
's/-/\n/g'
`
)
array
=(
`
echo
$element
|
sed
's/-/\n/g'
`
)
for
node
in
$(
seq
${
array
[0]
}
${
array
[1]
}
)
;
do
for
node
in
$(
seq
${
array
[0]
}
${
array
[1]
}
)
nodelist[
$idx
]=
$node
do
idx
=
$idx
+1
nodelist[
$idx
]=
$node
done
idx
=
$idx
+1
else
done
nodelist[
$idx
]=
$element
else
idx
=
$idx
+1
nodelist[
$idx
]=
$element
fi
idx
=
$idx
+1
fi
done
done
for
element
in
"
${
nodelist
[@]
}
"
for
element
in
"
${
nodelist
[@]
}
"
...
...
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