Determining the optimum resources to run FDTD