Changes between Version 1 and Version 2 of TestObjects


Ignore:
Timestamp:
02/27/14 19:01:18 (11 years ago)
Author:
ehansen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TestObjects

    v1 v2  
    1313   TYPE TestDef
    1414      INTEGER :: FieldID = Mass_Field
     15      INTEGER :: sumaxis = 3
    1516      REAL(KIND=qPREC) :: plotmin = 0d0
    1617      REAL(KIND=qPREC) :: plotmax = 1d0
    17       LOGICAL :: llog = .false.
     18      LOGICAL :: scaling = LINEARSCALE
    1819      REAL(KIND=qPREC) :: errortolerance = 1d-4
    1920      LOGICAL :: lcomparefields = .true.
     
    2526The 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.
    2627
    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.
     28The 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
     30The 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).
    2831
    2932The errortolerance parameter (default is 1d-4) sets the maximum relative error tolerated to pass the test.
     
    6972The 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}}}.
    7073
    71 An image file is also generated named 'testimage.png'. Astrobear plots the FieldID according to plotmin, plotmax, and llog.
     74An 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.