Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F87078331
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
Thu, Oct 10, 11:32
Size
443 B
Mime Type
text/x-shellscript
Expires
Sat, Oct 12, 11:32 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
21531351
Attached To
rLAMMPS lammps
updateref.sh
View Options
#!/bin/sh
for
r in *.restart-*-* ;
do
\
t
=
`
echo
$r
| sed -e
's/.restart-/.ref-/'
`
c
=
`
echo
$r
| sed -e
's/.restart-/.coeff-/'
`
s
=
`
echo
$r
| sed -e
's/.restart-/.data-/'
`
test
-f
$s
||
echo
"no data file $s found for restart $r"
test
-f
$s
||
continue
grep -v LAMMPS
$s
| sed -e
's/-0\.0000000000/0.0000000000 /g'
> refoutput/
${
t
}
test
-f
$c
&&
grep -v LAMMPS
$c
| sed -e
's/-0\.0000000000/0.0000000000 /g'
>> refoutput/
${
t
}
done
Event Timeline
Log In to Comment