diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b2d2d04..ba59069 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,7 +68,7 @@ jobs: cmake_prefix_path: "" cmake_flags: "" build_type: "Release" - cxx_flags: "" + cxx_flags: "/EHsc" python_version: "3.12" pffdtd_engine_2d: "build/src/cpp/pffdtd-engine.exe" pffdtd_engine_3d: "build/src/cpp/pffdtd-engine.exe" diff --git a/src/cpp/pffdtd/engine_cpu_2d.cpp b/src/cpp/pffdtd/engine_cpu_2d.cpp index bf0caec..ef507cb 100644 --- a/src/cpp/pffdtd/engine_cpu_2d.cpp +++ b/src/cpp/pffdtd/engine_cpu_2d.cpp @@ -31,7 +31,7 @@ auto run(Simulation2D const& sim) { auto const Nb = static_cast(sim.adj_bn.size()); auto const Ns = static_cast(sim.in_ixy.size()); auto const Nr = static_cast(sim.out_ixy.size()); - auto const lossFactor = sim.loss_factor; + auto const lossFactor = static_cast(sim.loss_factor); auto u0_buf = stdex::mdarray>(Npts); auto u1_buf = stdex::mdarray>(Npts);