Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81700278
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
Sat, Sep 7, 12:20
Size
443 B
Mime Type
text/x-shellscript
Expires
Mon, Sep 9, 12:20 (2 d)
Engine
blob
Format
Raw Data
Handle
20608397
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