Changes between Version 6 and Version 7 of AstroBearObjectTracers
- Timestamp:
- 10/22/12 12:47:26 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AstroBearObjectTracers
v6 v7 9 9 To add a tracer to the clump object, one must assign a slot in q to hold the tracer. This is done by adding the following to !ProblemModuleInit in problem.f90: 10 10 11 CALL AddTracer(MyClump%iTracer, "ClumpTracer")11 CALL !AddTracer(!MyClump%iTracer, "!ClumpTracer") 12 12 13 This call passes in a non-zero integer to index the tracer in q, which is assigned in the routine AddTracer, by identifying the next empty slot in q, as well as the name of the tracer, here " ClumpTracer". This name is then recognized by a visualization program such as Visit as a new variable.13 This call passes in a non-zero integer to index the tracer in q, which is assigned in the routine AddTracer, by identifying the next empty slot in q, as well as the name of the tracer, here "!ClumpTracer". This name is then recognized by a visualization program such as Visit as a new variable. 14 14 15 15 Next, the tracer is distributed throughout the clump by the line in clumps.f90: 16 16 17 IF ( Clump%iTracer .ne. 0) s(Clump%iTracer) = s(1)17 IF (!Clump%iTracer .ne. 0) s(!Clump%iTracer) = s(1) 18 18 19 19 This line says, if there is an assigned slot in q for the tracer, than assign as that tracer's value, s(1), where s(1) is defined earlier in clumps.f90 as: