A generalized patch AMR platform that uses cell centered or cell vertex solvers