| 552 | |
| 553 | |
| 554 | void ca_dermaggrav(const Box& bx, FArrayBox& derfab, int /*dcomp*/, int /*ncomp*/, |
| 555 | const FArrayBox& datfab, const Geometry& /*geom*/, |
| 556 | Real /*time*/, const int* /*bcrec*/, int /*level*/) |
| 557 | { |
| 558 | |
| 559 | auto const dat = datfab.array(); |
| 560 | auto const der = derfab.array(); |
| 561 | |
| 562 | amrex::ParallelFor(bx, |
| 563 | [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept |
| 564 | { |
| 565 | |
| 566 | der(i,j,k,0) = std::sqrt(dat(i,j,k,0)*dat(i,j,k,0) + |
| 567 | dat(i,j,k,1)*dat(i,j,k,1) + |
| 568 | dat(i,j,k,2)*dat(i,j,k,2)); |
| 569 | |
| 570 | }); |
| 571 | } |
| 572 | |
| 573 | void ca_derradialvel(const Box& bx, FArrayBox& derfab, int /*dcomp*/, int /*ncomp*/, |
| 574 | const FArrayBox& datfab, const Geometry& geom, |
nothing calls this directly
no outgoing calls
no test coverage detected