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

Function ispow2

Source/radiation/HypreMultiABec.cpp:21–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

addLevelMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected