Dear Niki,
I am actually a rookie of mako python language. I tried add ${c['nu']} to
the baseadvec kernel to test whether constant variables in .ini file can be
quoted. It looks like:
% for i, ex in enumerate(srcex):
tdivtconf[${i}] = -rcpdjac*tdivtconf[${i}] + ${ex};
% endfor
tdivtconf[1] = tdivtconf[1] - 4.0*${c['nu']};
When to run, the error showed again "'Undefined' object is not
subscriptable". It seems that the kernel file cannot quote variables in
'constants' dict. There is "c=self.cfg.items_as('
constants', float)" in base folder and I tried to import base folder to
baseadvec, but nothing helped.
I dont understand why the constants cannot be quoted by baseadvec kernel.
Is there anyway to solve it?
Best regards,
Will
--
You received this message because you are subscribed to the Google Groups "PyFR
Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send an email to [email protected].
Visit this group at https://groups.google.com/group/pyfrmailinglist.
For more options, visit https://groups.google.com/d/optout.