[Hedge] Field type problem

Andreas Kloeckner lists at informa.tiker.net
Fri Jul 8 07:57:31 PDT 2011


On Thu, 7 Jul 2011 11:25:27 -0400, Paul Cazeaux wrote:
> Hi,
> I run into the following problem with my Hedge code: part of the
> equations of my model are ODEs at each point,
> and they involve their own right hand side (for an implicit-explicit
> solver). Now, because this right hand side
> does not involve any mass or differentiation matrix, Hedge is not
> able to compile it since cannot check at compilation
> time if the vector fields, created with make_vector_field(), are
> volume or boundary fields.
> 	Do you have a quick fix for this?

Sure! :)

When you compile your optemplate, you can pass an optional keyword arg 
called 'type_hints', where you can let the compiler know about types it 
can't figure out. (Usage example: hedge/models/gas_dynamics/lbm.py, line 
197)

Hope your trip to the great wild west was fun!

Andreas



More information about the Hedge mailing list