*If(DebugControl==1)
// *MatProp(Material_Prototype)
*EndIf

*If(MatProp(User_Defined_Softening_Hardening,int)==1)
FUNCTION ID *Operation(matvar*IncrAdvancedFunID+1)
  NAME "TENSION_SOFT_HARD_FUNCTION Function for *MatProp(Material_Prototype) material"
  TYPE "CCMultiLinearFunction" REMOVE_ALL 
  xvalues *\
*for(i=1;i<=MatProp(TENSION_SOFT_HARD_FUNCTION,INT);i=i+2)
    *MatProp(TENSION_SOFT_HARD_FUNCTION,*i) *\
*End

  yvalues *\
*for(i=2;i<=MatProp(TENSION_SOFT_HARD_FUNCTION,INT);i=i+2)
    *MatProp(TENSION_SOFT_HARD_FUNCTION,*i) *\
*End

FUNCTION ID *Operation(matvar*IncrAdvancedFunID+2)
  NAME "COHESION_SOFT_HARD_FUNCTION Function for *MatProp(Material_Prototype) material"
  TYPE "CCMultiLinearFunction" REMOVE_ALL 
  xvalues *\
*for(i=1;i<=MatProp(COHESION_SOFT_HARD_FUNCTION,INT);i=i+2)
    *MatProp(COHESION_SOFT_HARD_FUNCTION,*i) *\
*End

  yvalues *\
*for(i=2;i<=MatProp(COHESION_SOFT_HARD_FUNCTION,INT);i=i+2)
    *MatProp(COHESION_SOFT_HARD_FUNCTION,*i) *\
*End

*EndIf
