Changes between Version 1 and Version 2 of TestObjects
- Timestamp:
- 02/27/14 19:01:18 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TestObjects
v1 v2 13 13 TYPE TestDef 14 14 INTEGER :: FieldID = Mass_Field 15 INTEGER :: sumaxis = 3 15 16 REAL(KIND=qPREC) :: plotmin = 0d0 16 17 REAL(KIND=qPREC) :: plotmax = 1d0 17 LOGICAL :: llog = .false.18 LOGICAL :: scaling = LINEARSCALE 18 19 REAL(KIND=qPREC) :: errortolerance = 1d-4 19 20 LOGICAL :: lcomparefields = .true. … … 25 26 The default value for the FieldID is Mass_Field. See the fields.f90 file for a full list of available fields. In order to use the integer parameters instead of just integers for FieldID, then the problem module will need the {{{USE Fields}}} statement at the beginning. 26 27 27 The default values for plotmin and plotmax are 0 and 1 respectively. These define the minimum and maximum values to be plotted during image generation. The llog parameter (default = F) sets whether the plot is on a logarithmic or linear scale. 28 The sumaxis parameter tells the routine which axis to sum over, because all images generated are 2D. The default sumaxis = 3 (the z-axis). This can be changed if you wish to sum over a different axis. 29 30 The default values for plotmin and plotmax are 0 and 1 respectively. These define the minimum and maximum values to be plotted during image generation. The scaling parameter (default = LINEARSCALE) sets whether the plot is on a linear or logarithmic scale (for log scale set scaling = LOGSCALE). 28 31 29 32 The errortolerance parameter (default is 1d-4) sets the maximum relative error tolerated to pass the test. … … 69 72 The test results are time-stamped, the FieldID that was tested is specified, and a few different values quantifying error are outputted as well. If the maximum relative error is less than the errortolerance set by the test object, then the last line will read {{{PASS}}}. Otherwise, the test would receive a failing grade, and the last line would read {{{FAIL}}}. 70 73 71 An image file is also generated named 'testimage.p ng'. Astrobear plots the FieldID according to plotmin, plotmax, and llog.74 An image file is also generated named 'testimage.ppm'. Astrobear plots 2D data of the FieldID according to sumaxis, plotmin, plotmax, and scaling. In the test suite, this .ppm file is converted to a .png file so that it can be viewed on the wiki.