dic function

Calculate DIC from a model output