| 4 | |
| 5 | ==== Tracers ==== |
| 6 | Using tracers is fairly straightforward in AstroBEAR. In your !ProblemModuleInit routine you can create additional tracers by calling |
| 7 | {{{ |
| 8 | CALL AddTracer(iTracer, 'TracerName') |
| 9 | }}} |
| 10 | where {{{iTracer}}} is an integer that corresponds to the slot in {{{Info%q}}} and !TracerName is an optional string description of the tracer that will show up in visit etc... |
| 11 | ===== Tracers in Objects ===== |
| 12 | Most objects such as [ClumpObjects Clumps], [DiskObjects Disks], etc... support tracer fields and will properly initialize the data associated with those. All you have to do is initialize them as follows: |
| 13 | {{{ |
| 14 | CALL CreateClump(Clump) |
| 15 | CALL AddTracer(Clump%iTracer, 'MyClumpTracer') |
| 16 | CALL UpdateClump(Clump) |
| 17 | }}} |