Bug fixes for the N-state model minimise() function.
The variable is 'cdp.ref_domain', not 'cdp.ref'!
Authored by: bugman 2008-02-11
Parent: [r4948]
Child: [r4950]