Skip to content

Commit

Permalink
add RMSD calculations on nodes positions
Browse files Browse the repository at this point in the history
  • Loading branch information
nsimakov committed Jul 20, 2015
1 parent 411d79a commit acab7cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/testutil/compare_hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
if ds1.shape!=ds2.shape:
print "\tDatasets have different size!"
else:
ds=ds1-ds2
ds=(ds1-ds2)*(ds1-ds2)
rmsd=math.sqrt(ds.mean())
print "\tRMSD=%.3e"%(rmsd,)
print "\tRMSD=%.3e Mean1=%.3e RMSD/Mean1=%.3e"%(rmsd,ds1.mean(),rmsd/ds1.mean())

#compare Mash
print "Comparing Mesh/Connections"
Expand Down

0 comments on commit acab7cb

Please sign in to comment.