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

This reverts commit f2fc1fe4a578c89aebb09177b38458553367f965.