@@ -33,13 +33,13 @@ struct cylinder_portal_config {
3333 // / Autofit the lower/upper z extend and inner/outer radii
3434 bool m_do_autofit{true };
3535 // / Minimal envelope for the portals (used in autofitting)
36- scalar_t m_envelope{100 . * unit<scalar_t >::um};
36+ scalar_t m_envelope{100 .f * unit<scalar_t >::um};
3737 // / Fixed inner radius during autofit
38- scalar_t m_fixed_inner_r{0 .};
38+ scalar_t m_fixed_inner_r{0 .f };
3939 // / Fixed outer radius during autofit
40- scalar_t m_fixed_outer_r{0 .};
40+ scalar_t m_fixed_outer_r{0 .f };
4141 // / Fixed length of the cylinder
42- scalar_t m_fixed_z{0 .};
42+ scalar_t m_fixed_z{0 .f };
4343 // / The portal volumes links (north, south, east, west)
4444 std::vector<dindex> m_volume_links{dindex_invalid, dindex_invalid,
4545 dindex_invalid, dindex_invalid};
@@ -137,10 +137,10 @@ class cylinder_portal_generator final
137137 public:
138138 // / Save the boundaries of the cylinder after autofitting the portals
139139 struct boundaries {
140- scalar_t inner_radius{0 .};
141- scalar_t outer_radius{0 .};
142- scalar_t lower_z{0 .};
143- scalar_t upper_z{0 .};
140+ scalar_t inner_radius{0 .f };
141+ scalar_t outer_radius{0 .f };
142+ scalar_t lower_z{0 .f };
143+ scalar_t upper_z{0 .f };
144144 };
145145
146146 // / Construct from configuration @param cfg
@@ -194,9 +194,9 @@ class cylinder_portal_generator final
194194
195195 if (!m_cfg.do_autofit ()) {
196196 // Without autofit, the portal bounds have to be given explicitly
197- assert (!(m_cfg.fixed_inner_radius () == 0 . &&
198- m_cfg.fixed_outer_radius () == 0 .) ||
199- m_cfg.fixed_half_length () != 0 .);
197+ assert (!(m_cfg.fixed_inner_radius () == 0 .f &&
198+ m_cfg.fixed_outer_radius () == 0 .f ) ||
199+ m_cfg.fixed_half_length () != 0 .f );
200200 } else {
201201 // Need surfaces in volume to do autofit
202202 assert (n_surfaces != 0u );
@@ -228,7 +228,7 @@ class cylinder_portal_generator final
228228 const point3_t box_max = world_box.template loc_max <point3_t >();
229229
230230 // Get the half lengths for the cylinder height and disc translation
231- const point3_t h_lengths = 0.5 * (box_max - box_min);
231+ const point3_t h_lengths = 0 .5f * (box_max - box_min);
232232 const scalar_t h_x{math::fabs (h_lengths[0 ])};
233233 const scalar_t h_y{math::fabs (h_lengths[1 ])};
234234 const scalar_t h_z{math::fabs (h_lengths[2 ])};
@@ -243,13 +243,13 @@ class cylinder_portal_generator final
243243 }
244244
245245 // Observe boundary conditions
246- if (m_cfg.fixed_inner_radius () > 0 .) {
246+ if (m_cfg.fixed_inner_radius () > 0 .f ) {
247247 inner_r = m_cfg.fixed_inner_radius ();
248248 }
249- if (m_cfg.fixed_outer_radius () > 0 .) {
249+ if (m_cfg.fixed_outer_radius () > 0 .f ) {
250250 outer_r = m_cfg.fixed_outer_radius ();
251251 }
252- if (m_cfg.fixed_half_length () > 0 .) {
252+ if (m_cfg.fixed_half_length () > 0 .f ) {
253253 lower_z = -m_cfg.fixed_half_length ();
254254 upper_z = m_cfg.fixed_half_length ();
255255 }
@@ -295,7 +295,7 @@ class cylinder_portal_generator final
295295 const scalar_t max_z{math::max (lower_z, upper_z)};
296296
297297 // translation
298- const point3_t tsl{0 ., 0 ., 0 .};
298+ const point3_t tsl{0 .f , 0 .f , 0 .f };
299299
300300 // Add transform and mask data
301301 transforms.emplace_back (ctx, tsl);
@@ -335,7 +335,7 @@ class cylinder_portal_generator final
335335 const scalar_t max_r{math::max (inner_r, outer_r)};
336336
337337 // translation
338- point3_t tsl{0 ., 0 ., z};
338+ point3_t tsl{0 .f , 0 .f , z};
339339
340340 // Add transform and mask data
341341 transforms.emplace_back (ctx, tsl);
0 commit comments