fdm solution