def convert(tree,fileName=None):
  """
    Converts input files to be compatible with merge request #460:
     - Removes "all" node
     - Sets default variable names
    @ In, tree, xml.etree.ElementTree.ElementTree object, the contents of a RAVEN input file
    @ In, fileName, the name for the raven input file
    @Out, tree, xml.etree.ElementTree.ElementTree object, the modified RAVEN input file
  """
  simulation = tree.getroot()
  models = simulation.find('Models')
  if models is not None:
    for child in models:
      if child.tag == 'ROM' and child.attrib['subType'] == 'ARMA':
        toRemove = None
        # get targets
        targets = child.find('Target').text
        # find truncation node
        trunc = child.find('outTruncation')
        # only fix it if the syntax is wrong
        if trunc is not None and 'domain' not in trunc.attrib:
          domain = trunc.text.strip()
          trunc.attrib['domain'] = domain
          trunc.text = targets
  return tree