Faculty, staff and students...
Computer Lab, seminar listings, contact information...
Events, seminars, and academic deadlines...
Find documents and people...
More detail on the latest CSCS news...

  • Comments?
    email webmaster


  • How to upgrade from RePast 2.2 to RePast 3.0

    The simplest way to convert your CSCS model from RePast 2.2 to RePast 3.0 is to use the script we created. The script is:
    /appl/repast/convert-repast2.2-to-repast3.0.sh
    To use the script, simply type:
    /appl/repast/convert-repast2.2-to-repast3.0.sh [directory of your model]
    If the script does not work, use the instructions below to convert your model manually.
    The general idea of converting a model from repast2.2 to repast3.0 is to:

    1. change all paths pointing to /appl/repast/repast2.2/lib to

        /appl/repast/repast3.0/repastj

    2. change all references to "repast.jar" to "repastj.jar"

    3. add "lib/" before all references to the other repast JAR files
    i.e., change (colt.jar, jgl3.1.0.jar, trove.jar, plot.jar) to (lib/colt.jar, lib/jgl3.1.0.jar, lib/trove.jar, lib/plot.jar)


    How to convert a CSCS repast model from repast2.2 to repast3.0

    Given the general idea in the above steps, here are the steps to convert a CSCS repast model (i.e., one that uses the standard CSCS build file and batch script) from repast2.2 to repast3.0. To do this:

    0. open up the build.xml file for the project

    1. in build.xml, change the line:

          <property name="repastVersion" value="2.2"/>
    to <property name="repastVersion" value="3.0"/>
    2. in build.xml, change the line:
          <property name="repastDir" value="/appl/repast/repast${repastVersion}"/>
    
       to this line:
    
          <property name="repastDir" value="/appl/repast/repast${repastVersion}/repastj"/>
    3. also in build.xml, change these lines:
        <fileset id="repast.jars" dir="${repastDir}/lib">
          <include name="repast.jar"/>
          <include name="colt.jar"/>
          <include name="jgl3.1.0.jar"/>
          <include name="plot.jar"/>
          <include name="trove.jar"/>
    
       to these lines:
    
        <fileset id="repast.jars" dir="${repastDir}">
          <include name="repastj.jar"/>
          <include name="lib/colt.jar"/>
          <include name="lib/jgl3.1.0.jar"/>
          <include name="lib/plot.jar"/>
          <include name="lib/trove.jar"/>
    4. now, do analagous steps to modify bin/batchrun.sh. first, open
          bin/batchrun.sh
    5. in batchrun.sh, change the line:
          REPASTLIBDIR=/appl/repast/repast2.2
    
       to:
    
          REPASTLIBDIR=/appl/repast/repast3.0/repastj
    6. also in batchrun.sh, there is one very long line at the end of the file. in this line, change:
          "$REPASTLIBDIR/repast.jar" to "$REPASTLIBDIR/repastj.jar"
    
          "$REPASTLIBDIR/colt.jar" to "$REPASTLIBDIR/lib/colt.jar"
    
          "$REPASTLIBDIR/jgl3.1.0.jar" to "$REPASTLIBDIR/lib/jgl3.1.0.jar"
    
          "$REPASTLIBDIR/plot.jar" to "$REPASTLIBDIR/lib/plot.jar"
    
          "$REPASTLIBDIR/trove.jar" to "$REPASTLIBDIR/lib/trove.jar"
    NOTE: leave out the double quotes for all of the above.