| | 1 | ==== Tracers ==== |
| | 2 | Using tracers is fairly straightforward in AstroBEAR. In your !ProblemModuleInit routine you can create additional tracers by calling |
| | 3 | {{{ |
| | 4 | CALL AddTracer(iTracer, 'TracerName') |
| | 5 | }}} |
| | 6 | 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... |
| | 7 | |
| | 8 | ===== Tracers in Objects ===== |
| | 9 | 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: |
| | 10 | {{{ |
| | 11 | CALL CreateClump(Clump) |
| | 12 | CALL AddTracer(Clump%iTracer, 'MyClumpTracer') |
| | 13 | CALL UpdateClump(Clump) |
| | 14 | }}} |