Commit 3f4e3f5a authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Raise exception when the sum of the escape fraction and f_dust is larger than 1.

parent 08d1ed49
......@@ -97,6 +97,8 @@ class Module(CreationModule):
(1. - self.parameters['escape_fraction'] -
self.parameters['f_dust'])
)
if self.conv < 0.:
raise Exception("Escape fraction+f_dust>1")
def process(self, sed):
......
Supports Markdown
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