def METHOD_NAME(self, u, F, flag):
    try:
        overlappingVector = Epetra.Vector(self.colMap, self.solver.var)
        overlappingVector.Import(u,
                                 Epetra.Import(self.colMap,
                                               self.domainMap),
                                 Epetra.Insert)
        self.solver.var.value = overlappingVector
        F[:] = self.solver.equation.justResidualVector(dt=self.dt)
        return True
    except Exception as e:
        print("TrilinosNonlinearSolver.computeF() has thrown an exception:")
        print(str(type(e))[18:-2] + ":", e)
        return False