Changed a bunch of CGridAdaptation to be unsigned long rather than int