modified cal_phys.c cal_phys1.c odefun.c formmat