Commit b119b9b7 authored by Philipp Arras's avatar Philipp Arras
Browse files

Input check for KL_Energy

parent aa58d6ae
......@@ -10,6 +10,8 @@ class KL_Energy(Energy):
def __init__(self, position, h, nsamp, constants=[],
constants_samples=None, _samples=None):
super(KL_Energy, self).__init__(position)
if h.domain is not position.domain:
raise TypeError
self._h = h
self._constants = constants
if constants_samples is None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment