On 31 January 2010 14:18, <nore...@launchpad.net> wrote:
------------------------------------------------------------ revno: 1342 committer: Anders Logg <l...@simula.no> branch nick: ffc-main timestamp: Sun 2010-01-31 14:16:20 +0100 message: Bug fix in code snippet for Jacobian in 1D, please check that it makes sense. modified: ffc/codesnippets.py
It looks OK. Kristian
-- lp:ffc https://code.launchpad.net/~ffc-core/ffc/main Your team FFC Core Team is subscribed to branch lp:ffc. To unsubscribe from this branch go to https://code.launchpad.net/~ffc-core/ffc/main/+edit-subscription. === modified file 'ffc/codesnippets.py' --- ffc/codesnippets.py 2010-01-31 13:04:39 +0000 +++ ffc/codesnippets.py 2010-01-31 13:16:20 +0000 @@ -88,7 +88,11 @@ # Jacobian is already initialized _inverse_jacobian_1D = """\ -const double K%(restriction)s_00 = 1.0/J%(restriction)s_00;""" +// Compute determinant of Jacobian +const double detJ%(restriction)s = J%(restriction)s_00; + +// Compute inverse of Jacobian +const double K%(restriction)s_00 = 1.0 / detJ%(restriction)s;""" _inverse_jacobian_2D = """\
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mailing list: https://launchpad.net/~ffc Post to : ffc@lists.launchpad.net Unsubscribe : https://launchpad.net/~ffc More help : https://help.launchpad.net/ListHelp