preparing PETSc comands