change float to double for FFD source codes