Skip to content

Commit b098e7e

Browse files
committed
psc_bnd_fields_impl: fix vector t
1 parent e34760a commit b098e7e

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/libpsc/psc_bnd_fields/psc_bnd_fields_impl.hxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -557,10 +557,10 @@ struct BndFields_ : BndFieldsBase
557557
real_t s = 0.0;
558558
real_t p = 0.0;
559559
if (radiation) {
560-
Real3 x3_s =
561-
(Real3(edge_idx) + Real3::unit(d1) * real_t(0.5)) * grid.domain.dx;
562-
Real3 x3_p =
563-
(Real3(edge_idx) + Real3::unit(d2) * real_t(0.5)) * grid.domain.dx;
560+
Real3 x3_s = (Real3(edge_idx) + Real3::unit(d1) * real_t(0.5)) *
561+
Real3(grid.domain.dx);
562+
Real3 x3_p = (Real3(edge_idx) + Real3::unit(d2) * real_t(0.5)) *
563+
Real3(grid.domain.dx);
564564
s = radiation->pulse_s_lower(grid.time(), d0, p, x3_s);
565565
p = radiation->pulse_p_lower(grid.time(), d0, p, x3_p);
566566
}
@@ -608,10 +608,10 @@ struct BndFields_ : BndFieldsBase
608608
real_t s = 0.0;
609609
real_t p = 0.0;
610610
if (radiation) {
611-
Real3 x3_s =
612-
(Real3(edge_idx) + Real3::unit(d1) * real_t(0.5)) * grid.domain.dx;
613-
Real3 x3_p =
614-
(Real3(edge_idx) + Real3::unit(d2) * real_t(0.5)) * grid.domain.dx;
611+
Real3 x3_s = (Real3(edge_idx) + Real3::unit(d1) * real_t(0.5)) *
612+
Real3(grid.domain.dx);
613+
Real3 x3_p = (Real3(edge_idx) + Real3::unit(d2) * real_t(0.5)) *
614+
Real3(grid.domain.dx);
615615
s = radiation->pulse_s_upper(grid.time(), d0, p, x3_s);
616616
p = radiation->pulse_p_upper(grid.time(), d0, p, x3_p);
617617
}

0 commit comments

Comments
 (0)