Incorrect Calculation of Battery Term in magnetic.f90
Brought to you by:
tobson
Originally created by: patrick....@gmail.com
What steps will reproduce the problem?
Not applicable.
What is the expected output? What do you see instead?
Not applicable.
Please provide any additional information below.
Line 3064 in file magnetic.f90 is incorrect, as noted by Professor Brandenburg. Line 3065 (containing the df update) should then read df(l1:l2,m,n,iax:iaz) = df(l1:l2,m,n,iax:iaz) + battery_term*p%fpres only, as we are solving for A and not B, again as noted by Professor Brandenburg.
What version of the product are you using? On what operating system?
Pencil code [r19590], Ubuntu 12.04 LTS.