From a4d0a7f11bc9b7ea6dd66e51515811d2bb3276ff Mon Sep 17 00:00:00 2001 From: Tobias Hienzsch Date: Mon, 23 Sep 2024 20:39:28 +0200 Subject: [PATCH] [cpp] Fix Windows OMP build --- src/cpp/pffdtd/engine_2d_cpu.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cpp/pffdtd/engine_2d_cpu.cpp b/src/cpp/pffdtd/engine_2d_cpu.cpp index d79bfc2..ac049c1 100644 --- a/src/cpp/pffdtd/engine_2d_cpu.cpp +++ b/src/cpp/pffdtd/engine_2d_cpu.cpp @@ -27,10 +27,10 @@ auto Engine2DCPU::operator()(Simulation2D const& sim) const -> stdex::mdarray(sim.adj_bn.size()); auto const inx = sim.inx; auto const iny = sim.iny; - auto const Nr = sim.out_ixy.size(); + auto const Nr = static_cast(sim.out_ixy.size()); auto const lossFactor = sim.loss_factor; summary(sim); @@ -75,7 +75,7 @@ auto Engine2DCPU::operator()(Simulation2D const& sim) const -> stdex::mdarray stdex::mdarray stdex::mdarray