The effect of opposing stress on shape memory and martensitic reversion