def __str__(self):
res = "DynArgDescriptor03 object" + os.linesep
res += " argument_type[0]='{0}'".format(self._type)
if self._vector_size > 1:
res += "*"+str(self._vector_size)
res += os.linesep
res += " access_descriptor[1]='{0}'".format(self._access_descriptor) \
+ os.linesep
if self._type == "gh_field":
res += " function_space[2]='{0}'".format(self._function_space1) \
+ os.linesep
elif self._type in VALID_OPERATOR_NAMES:
res += " function_space_to[2]='{0}'".\
format(self._function_space1) + os.linesep
res += " function_space_from[3]='{0}'".\
format(self._function_space2) + os.linesep
elif self._type in VALID_SCALAR_NAMES:
pass # we have nothing to add if we're a scalar
else: # we should never get to here
raise ParseError("Internal error in DynArgDescriptor03.__str__")
return res
评论列表
文章目录