<%@ page import="WebFlow.*" %> <%@ page import="WebFlow.ContextManager.*" %> <%@ page import="WebFlow.submitJob.*" %> <%@ page import="java.util.Date" %> <% String code=request.getParameter("codeName"); String machine=request.getParameter("machineName"); String problemName=request.getParameter("probName"); String userName=storeInfo.getTableVal("userName"); Date currentDate = new Date(); long time = currentDate.getTime(); String timestring = (new Long(time).toString()); String sessionName = "session"+timestring; ContextManager cm=ServerServlet.getContextManager(userName); submitJob sj=ServerServlet.getSubmitJob(userName); cm.addNewProblem(problemName); storeInfo.setTablePair("probName",problemName); String pdir = "/a/birch.csit.fsu.edu/shared/home/cyoun/GATEWAY/apache1.3.12/WWW/GOW/WEB-INF/Descriptors/users/JSPClient/gateway/"+problemName; String sdir = "/a/birch.csit.fsu.edu/shared/home/cyoun/GATEWAY/apache1.3.12/WWW/GOW/WEB-INF/Descriptors/users/JSPClient/gateway/"+problemName+"/"+sessionName; sj.execLocalCommand("/usr/local/bin/chmod 777 "+pdir); String problemNameContext = problemName+".PC"; cm.addNewSession(problemNameContext,sessionName); sj.execLocalCommand("/usr/local/bin/chmod 777 "+sdir); cm.setCurrentSessionProperty("Code",code); cm.setCurrentSessionProperty("MachineName",machine); String execpath= parseXML.getMatchTag(code, machine,"ExecPath"); cm.setCurrentSessionProperty("execpath",execpath); String qsubpath= parseXML.getMatchTag(code, machine,"QsubPath"); cm.setCurrentSessionProperty("qsubpath",qsubpath); String queueType= parseXML.getMatchTag(code, machine,"QueueType"); cm.setCurrentSessionProperty("QueueType",queueType); String NumOfInParams= parseXML.getNumberOfInParams(code); cm.setCurrentSessionProperty("NumInParams",NumOfInParams); String NumOfInFiles= parseXML.getNumberOfInFiles(code); cm.setCurrentSessionProperty("NumInFiles",NumOfInFiles); String NumOfOutParams= parseXML.getNumberOfOutParams(code); cm.setCurrentSessionProperty("NumOutParams",NumOfOutParams); String NumOfOutFiles= parseXML.getNumberOfOutFiles(code); cm.setCurrentSessionProperty("NumOutFiles",NumOfOutFiles); String iostyle=parseXML.getIOStyle(code); cm.setCurrentSessionProperty("IOStyle",iostyle); String workspace= parseXML.getMatchTag(code, machine,"WorkDir"); cm.setCurrentSessionProperty("WorkDir",workspace); %>

Job Script Input

Please provide the following information needed to generate the queue script.

Shell: /bin/csh /bin/sh

Queue: small medium large default

WallTime (hh:mm:ss):

Number of Nodes:

The code you have selected takes <%= cm.getCurrentSessionProperty("NumInFiles")%> input parameter(s). See the code documentation for details. Please specify the location of the input file on the remote host, <%= machine %>. You can use the "Upload" button in the "Tools" area to transfer your input file from your desktop to the remote host.
  <% int limit1=Integer.parseInt(NumOfInFiles); for(int i=0;i Input File:
  <% } %>

This code requires <%= cm.getCurrentSessionProperty("NumInParams")%> input pa rameters on the command line. Please provide them in the fields below. See the code documentation for details.
  <% int limit2=Integer.parseInt(NumOfInParams); for(int i=0;i Input Parameter:
  <% } %>

The application requires <%= cm.getCurrentSessionProperty("NumOutParams") %> out put parameter(s) on the command line.
  <% int uplimit1=Integer.parseInt(NumOfOutParams); for(int j=0;j Output Parameter:
<% } %>

Finally, the application generates <%= cm.getCurrentSessionProperty("NumOutFiles") %> output file(s). Please specify the full path name of the directory on the HPC server where you would like this file to be placed. You can later download this file to your desktop with the "File Browser" from the "Tools" area.
  <% int uplimit2=Integer.parseInt(NumOfOutFiles); for(int j=0;j Output File:
<% } %>