boutproject / zoidberg

A Flux-Coordinate Independent (FCI) Grid Generator for BOUT++
GNU Lesser General Public License v3.0
2 stars 2 forks source link

bug in Dommaschk field computation, if R0 not equal 1 #28

Closed fhindenlang closed 8 months ago

fhindenlang commented 8 months ago

https://github.com/boutproject/zoidberg/blob/6df12093c5bfe64576710e1667fd1edaa4c04306/zoidberg/field.py#L591C1-L593C38

Bz is missing the R_0 factor: Bz = diff(self.P, self.Z) -> Bz = R_0 * diff(self.P, self.Z)

bshanahan commented 8 months ago

Fixed in #29