@@ -411,7 +411,7 @@ def visit_FunctionDef(self, node):
411411 # Create function declaration and argument list
412412 decl = c .Static (c .DeclSpecifier (c .Value ("ErrorCode" , node .name ), spec = 'inline' ))
413413 args = [c .Pointer (c .Value (self .ptype .name , "particle" )),
414- c .Value ("double" , "time" ), c . Value ( "float" , "dt" ) ]
414+ c .Value ("double" , "time" )]
415415 for field_name , field in self .field_args .items ():
416416 args += [c .Pointer (c .Value ("CField" , "%s" % field_name ))]
417417 for field_name , field in self .vector_field_args .items ():
@@ -908,7 +908,7 @@ def generate(self, funcname, field_args, const_args, kernel_ast, c_include):
908908 args += [c .Pointer (c .Value ("CField" , "%s" % field ))]
909909 for const , _ in const_args .items ():
910910 args += [c .Value ("float" , const )]
911- fargs_str = ", " .join (['particles[p].time' , 'sign_dt * __dt' ] + list (field_args .keys ())
911+ fargs_str = ", " .join (['particles[p].time' ] + list (field_args .keys ())
912912 + list (const_args .keys ()))
913913 # Inner loop nest for forward runs
914914 sign_dt = c .Assign ("sign_dt" , "dt > 0 ? 1 : -1" )
0 commit comments