Added a check for the reference domain setup to __minimise_setup_tensors().
Authored by: bugman 2009-07-02
Parent: [r9183]
Child: [r9185]