Skip to content

Commit

Permalink
update parthenon to openpmd branch
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWibking committed Jun 18, 2024
1 parent 0a2a063 commit 13a426a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion external/parthenon
4 changes: 3 additions & 1 deletion src/bc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ void ApplyBC(parthenon::MeshBlock *pmb, parthenon::VariablePack<Real> &q,
// used for reflections
const int offset = 2 * ref + (INNER ? -1 : 1);

// only used for fine fields
const bool fine = false;
pmb->par_for_bndry(
label, nvar, domain, parthenon::TopologicalElement::CC, coarse,
label, nvar, domain, parthenon::TopologicalElement::CC, coarse, fine,
KOKKOS_LAMBDA(const int &l, const int &k, const int &j, const int &i) {
if (!q.IsAllocated(l)) return;
if (TYPE == BCType::Reflect) {
Expand Down
3 changes: 2 additions & 1 deletion src/pgen/cloud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,10 @@ void InflowWindX2(std::shared_ptr<MeshBlockData<Real>> &mbd, bool coarse) {
const auto rhoe_wind_ = rhoe_wind;
const auto Bx_ = Bx;
const auto By_ = By;
const bool fine = false;
pmb->par_for_bndry(
"InflowWindX2", nb, IndexDomain::inner_x2, parthenon::TopologicalElement::CC,
coarse, KOKKOS_LAMBDA(const int, const int &k, const int &j, const int &i) {
coarse, fine, KOKKOS_LAMBDA(const int, const int &k, const int &j, const int &i) {
cons(IDN, k, j, i) = rho_wind_;
cons(IM2, k, j, i) = mom_wind_;
cons(IEN, k, j, i) = rhoe_wind_ + 0.5 * mom_wind_ * mom_wind_ / rho_wind_;
Expand Down

0 comments on commit 13a426a

Please sign in to comment.