def get_warning_msgs(outcarfile):
	"""
	Parse warning messages from VASP
	Args:
		outcarfile (string): parth to OUTCAR file

	Returns:
		warningmsg (list of strings): warning messages in OUTCAR
	"""

	warningmsg = []
	with open(outcarfile,'r') as rf:
		for line in rf:
			if 'You have a (more or less)' in line:
				warningmsg.append('large_supercell')
	warningmsg = list(set(warningmsg))

	return warningmsg