def computeIndicators(TInd):
    aPatch = lambda: coef.localizeCoefficient(patchT[TInd], ABase)
    rPatch = lambda: coef.localizeCoefficient(patchT[TInd], ANew)

    epsFine = lod.computeBasisErrorIndicatorFine(patchT[TInd],
                                                 correctorsListT[TInd], aPatch,
                                                 rPatch)
    epsCoarse = 0
    return epsFine, epsCoarse
Ejemplo n.º 2
0
def computeIndicators(TInd):
    aPatch = lambda: coef.localizeCoefficient(patchT[TInd], aFine_ref)
    rPatch = lambda: coef.localizeCoefficient(patchT[TInd], aFine_trans)

    epsFine = lod.computeBasisErrorIndicatorFine(patchT[TInd],
                                                 correctorsListT[TInd], aPatch,
                                                 rPatch)
    epsCoarse = 0
    #epsCoarse = lod.computeErrorIndicatorCoarseFromCoefficients(patchT[TInd], csiT[TInd].muTPrime,  aPatch, rPatch)
    return epsFine, epsCoarse
Ejemplo n.º 3
0
def computeIndicators_classic(TInd):
    aPatch = lambda: coef.localizeCoefficient(patchT[TInd],
                                              aFine_ref_shaped.flatten())
    rPatch = lambda: coef.localizeCoefficient(patchT[TInd], aFine_pert)

    epsFine = lod.computeBasisErrorIndicatorFine(patchT[TInd],
                                                 correctorsListT[TInd], aPatch,
                                                 rPatch)
    epsCoarse = 0
    #epsCoarse = lod.computeErrorIndicatorCoarseFromCoefficients(patchT[TInd], csiT[TInd].muTPrime,  aPatch, rPatch)
    return epsFine, epsCoarse
def computeIndicators(TInd):
    aPatch = lambda: coef.localizeCoefficient(patchT[TInd], aFine_ref)
    rPatch = lambda: coef.localizeCoefficient(patchT[TInd], aFine_trans)

    epsCoarse = lod.computeBasisErrorIndicatorFine(patchT[TInd], correctorsListT[TInd], aPatch, rPatch)
    return epsCoarse