MCPcopy Create free account
hub / github.com/AMReX-Astro/Castro / ca_dervel

Function ca_dervel

Source/driver/Derive.cpp:517–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515#endif
516
517 void ca_dervel(const Box& bx, FArrayBox& derfab, int /*dcomp*/, int /*ncomp*/,
518 const FArrayBox& datfab, const Geometry& /*geom*/,
519 Real /*time*/, const int* /*bcrec*/, int /*level*/)
520 {
521
522 auto const dat = datfab.array();
523 auto const der = derfab.array();
524
525 amrex::ParallelFor(bx,
526 [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept
527 {
528 der(i,j,k,0) = dat(i,j,k,1) / dat(i,j,k,0);
529 });
530 }
531
532
533 void ca_dermagvel(const Box& bx, FArrayBox& derfab, int /*dcomp*/, int /*ncomp*/,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected