The rest of this tutorial will assume this Swarm folder has been placed at C:\swarm.īefore a Swarm model can be run, the swarm\bin folder must be added to the Windows PATH so that Heatbugs can find necessary libraries when it runs. Unzipping that file will create a folder called swarm which should be moved somewhere that is easy to remember. However, running a Swarm model requires some support programs and libraries. An example code is this build of Heatbugs:
However the topics are independent in that it is not necessary to know how to compile the Swarm library in order to run a pre-compiled Swarm model or compile your own model against a pre-compiled version of Swarm.Ī model that has been compiled using MinGW can be installed and run from a Windows computer without installing MinGW or Swarm.
3 Installing Swarm and MinGW to compile models.2 Using Swarm Models Compiled with MinGW.