Thesis work done in Petsc (GMRF)