← Back to team overview

ffc team mailing list archive

Re: [Branch ~ffc-core/ffc/main] Rev 1342: Bug fix in code snippet for Jacobian in 1D, please check that it makes sense.

 



On 31 January 2010 14:18,  <noreply@xxxxxxxxxxxxx> wrote:
------------------------------------------------------------
revno: 1342
committer: Anders Logg <logg@xxxxxxxxx>
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 = """\





Attachment: signature.asc
Description: OpenPGP digital signature