Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
SWIFTsim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
70
Issues
70
List
Boards
Labels
Milestones
Merge Requests
13
Merge Requests
13
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
SWIFT
SWIFTsim
Commits
7001251e
Commit
7001251e
authored
Apr 19, 2018
by
Peter W. Draper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't assume we have 4 ranks, generalize that
parent
86db3dab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
examples/process_cells
examples/process_cells
+3
-3
No files found.
examples/process_cells
View file @
7001251e
...
...
@@ -38,7 +38,7 @@ ranks=$(ls -v cells_*.dat | sed 's,cells_\(.*\)_.*.dat,\1,' | sort | uniq | wc -
echo
"Number of ranks =
$ranks
"
# Now construct a list of files ordered by rank, not step.
files
=
$(
ls
cells_
*
.dat |
sort
-t
"_"
-k
3,3
-n
| xargs
-n
4
)
files
=
$(
ls
cells_
*
.dat |
sort
-t
"_"
-k
3,3
-n
| xargs
-n
$ranks
)
# Need number of steps.
nfiles
=
$(
echo
$files
|
wc
-w
)
...
...
@@ -48,10 +48,10 @@ echo "Number of steps = $steps"
# And process them,
echo
"Processing cell dumps files..."
echo
$files
| xargs
-P
$NPROCS
-n
4 /bin/bash
-c
"
${
SCRIPTHOME
}
/process_cells_helper
$NX
$NY
$NZ
\$
0
\$
1
\$
2
\$
3"
echo
$files
| xargs
-P
$NPROCS
-n
$ranks
${
SCRIPTHOME
}
/process_cells_helper
$NX
$NY
$NZ
# Create summary.
grep
"top cells"
step
*
-active-cells
.dat |
sort
-
h
>
active_cells.log
grep
"top cells"
step
*
-active-cells
.dat |
sort
-
n
-k
1.5
>
active_cells.log
# And plot of active cells to edge cells.
stilts plot2plane
ifmt
=
ascii
in
=
active_cells.log
xmin
=
-0
.1
xmax
=
1.1
ymin
=
0
ymax
=
$steps
grid
=
1
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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