Skip to content

Commit

Permalink
Fix "Make TokamakCoordinates a struct rather than a class"
Browse files Browse the repository at this point in the history
(Need to pass TokamakCoordinates to set_tokamak_coordinates_on_mesh(), now that it is a free function).
  • Loading branch information
tomchapman committed Jan 15, 2025
1 parent 6131033 commit c3e5823
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/bout/tokamak_coordinates.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ BoutReal get_sign_of_bp(Field2D Bpxy) {
return 1.0;
}

void set_tokamak_coordinates_on_mesh(Mesh& mesh, const bool noshear, BoutReal Lbar,
BoutReal Bbar, BoutReal ShearFactor = 1.0) {
void
set_tokamak_coordinates_on_mesh(TokamakCoordinates &tokamakCoordinates, Mesh &mesh, const bool noshear, BoutReal Lbar,
BoutReal Bbar, BoutReal ShearFactor = 1.0) {

tokamakCoordinates.normalise(Lbar, Bbar, ShearFactor);

Expand Down

0 comments on commit c3e5823

Please sign in to comment.