MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / identicalInterps

Method identicalInterps

Src/Amr/AMReX_StateDescriptor.cpp:400–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400bool
401StateDescriptor::identicalInterps (int a_scomp,
402 int a_ncomp) const noexcept
403{
404 BL_ASSERT(a_scomp >= 0);
405 BL_ASSERT(a_ncomp >= 1);
406
407 InterpBase* map = interp(a_scomp);
408
409 for (int i = a_scomp+1; i < a_scomp+a_ncomp; i++) {
410 if (!(map == interp(i))) {
411 return false;
412 }
413 }
414
415 return true;
416}
417
418std::vector< std::pair<int,int> >
419StateDescriptor::sameInterps (int a_scomp,

Callers 1

InitializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected