Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79437352
updateref.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Aug 26, 09:52
Size
496 B
Mime Type
text/x-shellscript
Expires
Wed, Aug 28, 09:52 (2 d)
Engine
blob
Format
Raw Data
Handle
20169844
Attached To
rLAMMPS lammps
updateref.sh
View Options
#!/bin/sh
if
[
$#
==
0
]
then
dirs
=
`
/bin/ls -d bench_*
`
else
dirs
=
"$@"
fi
for
d in
$dirs
do
\
pushd
$d
for
s in log.*-serial
do
\
t
=
`
echo
$s
| sed -e
's/log./ref./'
-e
's,-serial,,'
`
if
[
! -f
$s
]
then
popd
continue
fi
egrep -v
'(LAMMPS|OpenMP|MPI|serial|Memory|Loop|Perform|FFT)'
$s
\
| sed -e
's/-0\.0000000000/0.0000000000 /g'
\
-e
'/^Section.*/,$d'
-e
'/^.*Pair time.*/,$d'
\
| gzip -9 >
${
t
}
.gz
done
popd
done
Event Timeline
Log In to Comment