// Construct optimisation manager autoPtr optManagerPtr ( optimisationManager::New(mesh) ); optimisationManager& om = optManagerPtr();