Skip to content

Commit

Permalink
fix MaxwellJuettner functor
Browse files Browse the repository at this point in the history
The PR ComputationalRadiationPhysics#5133 and ComputationalRadiationPhysics#5142 got merged together with ComputationalRadiationPhysics#4826.
Removed files and renamings for the unit systems collide therefore.
  • Loading branch information
psychocoderHPC committed Sep 27, 2024
1 parent c693b8d commit 2480af5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@

#pragma once

#include "picongpu/simulation_defines.hpp"

#include "picongpu/defines.hpp"
#include "picongpu/particles/manipulators/generic/FreeRng.def"
#include "picongpu/particles/manipulators/unary/FreeTotalCellOffsetRng.def"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

#pragma once

#include "picongpu/simulation_defines.hpp"

#include "picongpu/defines.hpp"
#include "picongpu/particles/functor/User.hpp"
#include "picongpu/traits/attribute/GetMass.hpp"

namespace picongpu::particles::manipulators::unary::acc
{
Expand Down Expand Up @@ -58,10 +58,10 @@ namespace picongpu::particles::manipulators::unary::acc
T_Particle& particle,
T_MaxwellJuettner temperatureKeV) const
{
float_X const energy = (temperatureKeV * sim.si.conv.ev2Joule(1.0e3)) / sim.unit.energy();
float_X const energy = (temperatureKeV * sim.si.conv().eV2Joule(1.0e3)) / sim.unit.energy();

float_X const macroWeighting = particle[weighting_];
float_X const macroMass = attribute::getMass(macroWeighting, particle);
float_X const macroMass = picongpu::traits::attribute::getMass(macroWeighting, particle);
float_X const mass = macroMass / macroWeighting;
float_X const theta = energy / (mass * sim.pic.getSpeedOfLight() * sim.pic.getSpeedOfLight());

Expand Down

0 comments on commit 2480af5

Please sign in to comment.