put in new options flag_richardson and flag_gradient. work around for ifort bug