MCPcopy Create free account
hub / github.com/BLAST-WarpX/warpx / DepositMassMatrices

Method DepositMassMatrices

Source/Particles/MultiParticleContainer.cpp:525–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525void
526MultiParticleContainer::DepositMassMatrices (ablastr::fields::MultiFabRegister& fields,
527 int lev, amrex::Real dt)
528{
529 using ablastr::fields::Direction;
530
531 for (int n = 0; n < 3; ++n) {
532 fields.get(FieldType::MassMatrices_X, Direction{n}, lev)->setVal(0.0);
533 fields.get(FieldType::MassMatrices_Y, Direction{n}, lev)->setVal(0.0);
534 fields.get(FieldType::MassMatrices_Z, Direction{n}, lev)->setVal(0.0);
535 }
536
537 for (auto& pc : allcontainers) {
538 pc->DepositMassMatrices(fields, lev, dt);
539 }
540}
541
542void
543MultiParticleContainer::PushX (Real dt)

Callers

nothing calls this directly

Calls 2

setValMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected