San Marcos and the colleges of San Carlos and San Fernando ( after incorporated to the university ) were monitored by the Viceroy . In 1840 Schools `` San Carlos '' and `` San Fernando '' , are assumed by the University of San Marcos .