Rename determinePref -> determineDiscretization. And changes on inputs/outputs, and
check if fourcolloc outside clearPeriodicBCs.