Skip to content

Commit 10c1abe

Browse files
committed
Also move implementation of normalise() method to cxx file
1 parent 2f99a73 commit 10c1abe

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

include/bout/tokamak_coordinates.hxx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,7 @@ namespace bout {
2222

2323
TokamakOptions(Mesh &mesh);
2424

25-
void normalise(BoutReal Lbar, BoutReal Bbar, BoutReal ShearFactor) {
26-
Rxy /= Lbar;
27-
Bpxy /= Bbar;
28-
Btxy /= Bbar;
29-
Bxy /= Bbar;
30-
hthe /= Lbar;
31-
I *= Lbar * Lbar * Bbar * ShearFactor;
32-
dx /= Lbar * Lbar * Bbar;
33-
}
25+
void normalise(BoutReal Lbar, BoutReal Bbar, BoutReal ShearFactor);
3426
};
3527

3628
BoutReal get_sign_of_bp(const Field2D &Bpxy);

src/mesh/tokamak_coordinates.cxx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ namespace bout {
2828
}
2929
}
3030

31+
void TokamakOptions::normalise(BoutReal Lbar, BoutReal Bbar, BoutReal ShearFactor) {
32+
Rxy /= Lbar;
33+
Bpxy /= Bbar;
34+
Btxy /= Bbar;
35+
Bxy /= Bbar;
36+
hthe /= Lbar;
37+
I *= Lbar * Lbar * Bbar * ShearFactor;
38+
dx /= Lbar * Lbar * Bbar;
39+
}
40+
3141
void set_tokamak_coordinates_on_mesh(TokamakOptions &tokamak_options, Mesh &mesh, BoutReal Lbar,
3242
BoutReal
3343
Bbar, BoutReal

0 commit comments

Comments
 (0)