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

Function ispow2

Source/radiation/HypreABec.cpp:19–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17using namespace amrex;
18
19static int ispow2(int i)
20{
21 return (i == 1) ? 1 : (((i <= 0) || (i & 1)) ? 0 : ispow2(i / 2));
22}
23
24Real HypreABec::flux_factor = 1.0;
25

Callers 1

HypreABecMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected