Commit 83e87342 authored by Martin Bauer's avatar Martin Bauer Committed by Martin Bauer
Browse files

lbmpy: various small improvements

- getShearRelaxationRate is a free function now -> works also with cumulant methods
- better error message when calling kernels with wrong or too few parameters
- entropic & incompressible is not working by default due to pdf shift -> added NotImplemented exception
- new creation function for 'raw_mrt' where all relaxation rates can be independently specified
- enhanced entropic creation funtion, supports omega output field now
parent dbbfba4a
......@@ -400,7 +400,11 @@ def buildCTypeArgumentList(parameterSpecification, argumentDict):
arrayShapes = set()
for arg in parameterSpecification:
if arg.isFieldArgument:
field = argumentDict[arg.fieldName]
field = argumentDict[arg.fieldName]
except KeyError:
raise KeyError("Missing field parameter for kernel call " + arg.fieldName)
symbolicField = arg.field
if arg.isFieldPtrArgument:
......@@ -429,7 +433,10 @@ def buildCTypeArgumentList(parameterSpecification, argumentDict):
assert False
param = argumentDict[]
param = argumentDict[]
except KeyError:
raise KeyError("Missing parameter for kernel call " +
expectedType = ctypeFromString(arg.dtype)
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