# This is the transformation catalog. It lists information about each of the
# executables that are used by the workflow.

tr preprocess {
    site {{sitename}} {
        pfn "{{workflowdir}}/bin/preprocess"
        arch "{{arch}}"
        os "{{os}}"
        type "INSTALLED"

{% if tutorial_setup == "bw-glite" %}
	profile pegasus "cores" "1"
	profile pegasus "ppn" "1"
{% endif %}
{% if tutorial_setup == "wrangler-glite" %}
        profile pegasus "cores" "1"
        profile pegasus "nodes" "1"
{% endif %}
    }
}

tr findrange {
    site {{sitename}} {
        pfn "{{workflowdir}}/bin/findrange"
        arch "{{arch}}"
        os "{{os}}"
        type "INSTALLED"
{% if tutorial_setup == "bw-glite" %}
        profile pegasus "cores" "1"
        profile pegasus "ppn" "1"
{% endif %}
{% if tutorial_setup == "wrangler-glite" %}
        profile pegasus "cores" "1"
        profile pegasus "nodes" "1"
{% endif %}
    }
}

tr analyze {
    site {{sitename}} {
        pfn "{{workflowdir}}/bin/analyze"
        arch "{{arch}}"
        os "{{os}}"
        type "INSTALLED"
{% if tutorial_setup == "bw-glite" %}
        profile pegasus "cores" "1"
        profile pegasus "ppn" "1"
{% endif %}
{% if tutorial_setup == "wrangler-glite" %}
        profile pegasus "cores" "1"
        profile pegasus "nodes" "1"
{% endif %}
    }
}

{% if generate_tutorial == true and tutorial_setup == "wrangler-glite" %}
tr pegasus::mpiexec {
  site {{sitename}} {
    profile pegasus "cores" "48"
    profile pegasus "nodes" "1"
    profile pegasus "runtime" "3600"
    profile pegasus "change.dir" "true"
    pfn "{{workflowdir}}/bin/pmc-wrapper"
    type "INSTALLED"
  }
}
{% endif %}

{% if generate_tutorial == true and tutorial_setup == "titan-glite" %}
tr pegasus::mpiexec {
  site {{sitename}} {
    profile pegasus "nodes" "1"
    profile pegasus "runtime" "1800"
    profile env "PEGASUS_TITAN_MPI_CORES" "16"
#    profile pegasus "change.dir" "true"
    pfn "{{workflowdir}}/bin/pmc-wrapper"
    type "INSTALLED"
  }
}
{% endif %}

