I've 2 files, both I believe valid ncf files, with a single variable x of about 1000 elements. nccmp has been running for 11 mins and not yet reported that there's any diff even though I know the 12th element differs...
Files attached
Please advise, M
Anonymous
file1 for comparison (compressed version)
file2 used in comparison (compressed)
File Added: fastOpt_water-nosymm.pot.ncf.gz
It seems that putting values in for -t forces it to give some results (why is this required?), but despite outputting the values for elements close to the end it apparently never gets there...
Actually, I'd have to say I've given up with nccmp and gone with the NCO option which appears to be fast and does the job I required.
Thanks
My apologies. This was filtered by my email client long ago. 2GB files compare in 15 seconds on my desktop, and 10 milliseconds for your attachments. The first value is different (19,137 actually), shown in hex too.
$ time nccmp -md -p '%.15g' /d/tmp/noOpt_water-nosymm.pot.ncf /d/tmp/fastOpt_water-nosymm.pot.ncf
DIFFER : VARIABLE : x : POSITION : [0] : VALUES : 0.0045688536225282 <> 0.0045688536225281
real 0m0.010s
$ nccmp -md -p '%x' /d/tmp/noOpt_water-nosymm.pot.ncf /d/tmp/fastOpt_water-nosymm.pot.ncf
DIFFER : VARIABLE : x : POSITION : [0] : VALUES : 0x5838394ECAB6723F <> 0xE437394ECAB6723F