Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77560988
compare.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, Aug 15, 04:46
Size
404 B
Mime Type
text/x-shellscript
Expires
Sat, Aug 17, 04:46 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19888213
Attached To
rLAMMPS lammps
compare.sh
View Options
#!/bin/sh
for s in *.data-*-* ; do \
t=`echo $s | sed -e 's/.data-/.ref-/'`
c=`echo $s | sed -e 's/.data-/.coeff-/'`
grep -v LAMMPS $s | sed -e 's/-0\.0000000000/0.0000000000 /g' > ${t}
test -f $c && grep -v LAMMPS $c | sed -e 's/-0\.0000000000/0.0000000000 /g' >> ${t}
if [ -f refoutput/${t} ]
then
diff refoutput/${t} $t && rm $t
else
echo no reference output for $s
fi
done
Event Timeline
Log In to Comment