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

Function ca_derlogden

Source/driver/Derive.cpp:91–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 }
90
91 void ca_derlogden(const Box& bx, FArrayBox& derfab, int /*dcomp*/, int /*ncomp*/,
92 const FArrayBox& datfab, const Geometry& /*geom*/,
93 Real /*time*/, const int* /*bcrec*/, int /*level*/)
94 {
95
96 auto const dat = datfab.array();
97 auto const der = derfab.array();
98
99 amrex::ParallelFor(bx,
100 [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept
101 {
102 der(i,j,k,0) = std::log10(dat(i,j,k,0));
103 });
104 }
105
106 void ca_deruplusc(const Box& bx, FArrayBox& derfab, int /*dcomp*/, int /*ncomp*/,
107 const FArrayBox& datfab, const Geometry& /*geom*/,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected