/* Copyright 2019-2020 Andrew Myers, Axel Huebl, * Maxence Thevenet * * This file is part of WarpX. * * License: BSD-3-Clause-LBNL */ #include "Particles/ElementaryProcess/QEDPhotonEmission.H" #include "WarpX.H" #include #include #include #include PhotonEmissionTransformFunc:: PhotonEmissionTransformFunc (QuantumSynchrotronGetOpticalDepth opt_depth_functor, int const opt_depth_runtime_comp, QuantumSynchrotronPhotonEmission const emission_functor, const WarpXParIter& a_pti, int lev, amrex::IntVect ngEB, amrex::FArrayBox const& exfab, amrex::FArrayBox const& eyfab, amrex::FArrayBox const& ezfab, amrex::FArrayBox const& bxfab, amrex::FArrayBox const& byfab, amrex::FArrayBox const& bzfab, int a_offset) :m_opt_depth_functor{opt_depth_functor}, m_opt_depth_runtime_comp{opt_depth_runtime_comp}, m_emission_functor{emission_functor} { using namespace amrex::literals; m_get_position = GetParticlePosition(a_pti, a_offset); m_get_externalEB = GetExternalEBField(a_pti, a_offset); m_ex_arr = exfab.array(); m_ey_arr = eyfab.array(); m_ez_arr = ezfab.array(); m_bx_arr = bxfab.array(); m_by_arr = byfab.array(); m_bz_arr = bzfab.array(); m_ex_type = exfab.box().ixType(); m_ey_type = eyfab.box().ixType(); m_ez_type = ezfab.box().ixType(); m_bx_type = bxfab.box().ixType(); m_by_type = byfab.box().ixType(); m_bz_type = bzfab.box().ixType(); amrex::Box box = a_pti.tilebox(); box.grow(ngEB); const std::array& dx = WarpX::CellSize(std::max(lev, 0)); m_dx_arr = {dx[0], dx[1], dx[2]}; // Lower corner of tile box physical domain (take into account Galilean shift) const std::array& xyzmin = WarpX::LowerCorner(box, lev, 0._rt); m_xyzmin_arr = {xyzmin[0], xyzmin[1], xyzmin[2]}; m_galerkin_interpolation = WarpX::galerkin_interpolation; m_nox = WarpX::nox; m_n_rz_azimuthal_modes = WarpX::n_rz_azimuthal_modes; m_lo = amrex::lbound(box); } 1-2/+2 2023-07-05Bump golang.org/x/net from 0.11.0 to 0.12.0 (#103)Gravatar dependabot[bot] 2-3/+3 2023-06-13Bump golang.org/x/net from 0.10.0 to 0.11.0 (#102)Gravatar dependabot[bot] 2-3/+3 2023-06-06Bump github.com/stretchr/testify from 1.8.2 to 1.8.4 (#100)Gravatar dependabot[bot] 2-3/+3 2023-06-01ci: Update actions (#99)Gravatar Abhinav Gupta 2-3/+3 2023-06-01all(deps): Update Go dependencies (#98)Gravatar Abhinav Gupta 4-29/+28 2023-06-01CHANGELOG: Report #82, #92, and #93 (#97)Gravatar Abhinav Gupta 1-1/+9 2023-05-16Bump github.com/mgechev/revive from 1.3.1 to 1.3.2 in /tools (#95)Gravatar dependabot[bot] 2-13/+13 2023-05-09Remove branch from PackageConfig struct (#93)Gravatar Sung Yoon Whang 4-51/+6 2023-05-07Removing redundant go-source tag (#92)Gravatar Anurag Bandyopadhyay 4-9/+2 2023-04-29ci: gofmt, golint => revive, update tools and actions (#87)Gravatar Abhinav Gupta 7-31/+95 2023-04-29refactor(indexHandler): Don't retain configuration (#86)Gravatar Abhinav Gupta 2-12/+30 2023-04-28refactor(packageHandler): Don't retain configuration (#85)Gravatar Abhinav Gupta 1-20/+40 2023-04-28config: Rename Package to PackageConfig, add docs (#84)Gravatar Abhinav Gupta 4-16/+45 2023-04-27Bump golang.org/x/net from 0.8.0 to 0.9.0 (#81)Gravatar dependabot[bot] 2-3/+3 2023-04-21ci: Publish Docker image to ghcr.io on release (#82)Gravatar Abhinav Gupta 3-0/+70 2023-03-05Bump golang.org/x/net from 0.7.0 to 0.8.0 (#80)Gravatar dependabot[bot] 2-3/+3 2023-02-26Bump github.com/stretchr/testify from 1.8.1 to 1.8.2 (#79)Gravatar dependabot[bot] 2-3/+3 2023-02-14Bump golang.org/x/net from 0.6.0 to 0.7.0 (#78)Gravatar dependabot[bot] 2-3/+3 2023-02-08Bump golang.org/x/net from 0.5.0 to 0.6.0 (#77)Gravatar dependabot[bot] 2-3/+3 2023-02-04ci: Build against Go 1.20 (#76)Gravatar Abhinav Gupta 3-19/+20 2023-01-30Back to development (#75)Gravatar Sung Yoon Whang 1-0/+5 2023-01-23Fix typo on release notes (#74)Gravatar Sung Yoon Whang 1-1/+1 2023-01-23v1.3.0 release (#73)Gravatar Sung Yoon Whang 1-2/+4