def function(out, strain, vg, fmode): if fmode == 2: out[:] = strain status = 0 else: status = terms.de_cauchy_strain(out, strain, vg, fmode) return status