def recursive_update(dst, src):
	"""
	This function was obtained from Mikael Mortensen on July, 2019.
	Source code can be found here:
	https://bitbucket.org/simula_cbc/cbcpdesys/src/master/cbc/pdesys/PDESystem.py

	Description:
	Update dict dst with items from src deeply ("deep update").
	"""
	for key, val in src.items():
		if key in dst and isinstance(val, dict) and isinstance(dst[key], dict):
			dst[key] = recursive_update(dst[key], val)
		else:
			dst[key] = val
	return dst