Skip to content

Commit

Permalink
change API for u_th
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Mar 20, 2024
1 parent 866f32b commit 9951e02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Particles/PhysicalParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,10 @@ PhysicalParticleContainer::PhysicalParticleContainer (AmrCore* amr_core, int isp

// currently supports only isotropic thermal distribution
// same distribution is applied to all boundaries
const amrex::ParmParse pp_species_boundary("boundary." + species_name);
if (WarpX::isAnyParticleBoundaryThermal()) {
amrex::Real boundary_uth;
utils::parser::getWithParser(pp_species_name,"boundary_uth",boundary_uth);
utils::parser::getWithParser(pp_species_boundary,"u_th",boundary_uth);
m_boundary_conditions.SetThermalVelocity(boundary_uth);
}
}
Expand Down

0 comments on commit 9951e02

Please sign in to comment.