Moved data routines from crustcool.cc to data.c