Checking Out and Building Athena-Atlfast
If you do not wish to use the AtlfastCode that is in the current release, or wish to get hold of the code to make your own additions, you will need to checkout Atlfast from the CVS repositry. This page explains how to checkout the latest AtlfastCode from CVS and build it yourself.
The latest CMT release is 3.0.0, go here to find out how to use CMT 3.0.0. This page assumes you are familiar with CMT or have read the Getting Started with CMT page.
Once you have configured for the latest CMT, go to the directory pointed to by your requirements. Once there you will have to check out the TestRelease package as usual
cmt co TestRelease
Now you have to check out the required Athena-Atlfast tag. Always look at the Athena-Atlfast home page to find out which is the correct tag for the current version of CMT. For CMT 3.0.0 you need tag Atlfast-01-00-17.
cmt co -r Atlfast-01-00-17 Simulation/Atlfast
cmt co -requirements Simulation/Atlfast/Atlfast-01-00-17/cmt/requirements
You now have the code and are ready to configure and build it. As usual change directory to
cd TestRelease/TestRelease-xx-xx-xx/cmt
In here you need to edit the requirements file to tell cmt which packages to build and which other packages are required to run Athena-Atlfast. Add the following lines to the requirements file:
use Atlfast Atlfast-01-00-16 Simulation
use Control Control-*
use Event Event-*
use Generators Generators-*
use Simulation Simulation-*
CMT should now pick-up the AtlfastCode you checked out as the version to use. You need to configure and build the code now:
cmt broadcast cmt config
source setup.sh
cmt broadcast gmake
You chould now see that CMT has set your ATLFASTCODEROOT to the AtlfastCode directory that you checked out, use echo $ATLFASTCODEROOT to check this. You are now ready to run the code.
cd ../run
cp $ATLFASTCODEROOT/share/* .
athena
If you make any changes to the AtlfastCode you checked out you will need to type cmt broadcast gmake in the TestRelease/TestRelease/cmt directory to rebuild the code
You can alsos just checkout a single version of AtlfastCode, rather than the full Atlfast Package if you wish. This should be sufficent to run Atlfast. To do this you follow the same instructions as above, but instead of checking out atlfast and then doing cmt co -requirements ... you can just type:
cmt co -r AtlfastCode-01-03-02 Simulation/Atlfast/AtlfastCode
Then in the TestRelease requirements file you will need to replace the use Atlfast... line with:
use AtlfastCode AtlfastCode-01-03-02 Simulation/Atlfast
|