[firedrake] Difference between u.split() and split(u)

Buesing, Henrik HBuesing at eonerc.rwth-aachen.de
Thu Nov 5 09:24:29 GMT 2015


Von: firedrake-bounces at imperial.ac.uk [mailto:firedrake-bounces at imperial.ac.uk] Im Auftrag von Andrew McRae
Gesendet: 04 November 2015 15:56
An: firedrake at imperial.ac.uk
Betreff: Re: [firedrake] Difference between u.split() and split(u)

Use split(u) when you're going to use the constituent parts in symbolic forms.
Use u.split() when you want to, e.g., look at the separate fields or manipulate them.
(you're about the 10,000th person to meet the split/split confusion!)

[Buesing, Henrik] Nevertheless, thank you for explaining it again. :-)

Henrik


On 4 November 2015 at 14:51, Buesing, Henrik <HBuesing at eonerc.rwth-aachen.de<mailto:HBuesing at eonerc.rwth-aachen.de>> wrote:
Dear all,

I have a multi-physics problem and u is my unknown. I was wondering what the difference between

u.split() and split(u)

is.

It seems that the Jacobian is only right, when I use split(u) and then further use this in subroutines. If I use u.split() my Jacobian is zero…

Thank you!

Henrik


--
Dipl.-Math. Henrik Büsing
Institute for Applied Geophysics and Geothermal Energy
E.ON Energy Research Center
RWTH Aachen University
------------------------------------------------------
Mathieustr. 10            |    Tel +49 (0)241 80 49907<tel:%2B49%20%280%29241%2080%2049907>
52074 Aachen, Germany     |    Fax +49 (0)241 80 49889<tel:%2B49%20%280%29241%2080%2049889>
------------------------------------------------------
http://www.eonerc.rwth-aachen.de/GGE
hbuesing at eonerc.rwth-aachen.de<mailto:hbuesing at eonerc.rwth-aachen.de>
------------------------------------------------------


-------------- next part --------------
HTML attachment scrubbed and removed


More information about the firedrake mailing list