added boxcheckpoint.f90 which can be used with -DBOXDUMP