The AHA Model  Revision: 12809
Reference implementation 04 (HEDG02_04)
m_common.f90 File Reference

This module defines common global parameters and objects for the AHA Model. It also contains a general overview of the AHA Model in Doxygen notation. More...

Go to the source code of this file.

Data Types

type  commondata::timer_cpu
 CPU timer container object for debugging and speed/performance control. Arbitrary timers can be instantiated for different parts of the code and also global. Using a specific timer (stopwatch) is like this: More...
 
interface  commondata::gamma2gene
 Sigmoidal relationship between environmental factor and the organism response, as affected by the genotype and environmental error, e.g. perception and neuronal response or intrinsic baseline and phenotypic hormone levels. More...
 
interface  commondata::gene2gamma
 
interface  commondata::add_to_history
 Simple history stack function, add to the end of the stack. We need only to add components on top (end) of the stack and retain HISTORY_SIZE_SPATIAL elements of the prior history (for a spatial moving object). The stack works as follows, assuming 100 and 200 are added:
[1 2 3 4 5 6 7 8 9 10]
[2 3 4 5 6 7 8 9 10 100]
[3 4 5 6 7 8 9 10 100 200]. More...
 
interface  commondata::cm2m
 Convert cm to m. More...
 
interface  commondata::m2cm
 Convert m to cm. More...
 
interface  commondata::mm2m
 Convert mm to m. More...
 
interface  commondata::rescale
 Arbitrary rescales value(s) from one range (A:B) to another (A1:B1). More...
 
interface  commondata::within
 Force a value within the range set by the vmin and vmax dummy parameter values. More...
 
interface  commondata::is_within
 Logical function to check if a value is within a specific range, lower <= X <= upper. More...
 
interface  commondata::is_near_zero
 Checks if a real number is near 0.0. Thus function can be used for comparing two real values like this: More...
 
interface  commondata::float_equal
 Check if two real values are nearly equal using the commondata::is_near_zero(). Thus function can be used for comparing two real values like this: More...
 
interface  commondata::operator(.feq.)
 "Float equality" operator: Check if two real values are nearly equal using the commondata::is_near_zero() function. Thus function can be used for comparing two real values like the below. More...
 
interface  commondata::operator(.approx.)
 "Approximatel equality" operator: Check if two real values are approximately equal using the commondata::is_near_zero() function. Thus function can be used for comparing two real values like the below. More...
 
interface  commondata::operator(.within.)
 Interface operators .within. for testing whether a value (first argument) lies within the limits set by a two-element array (second argument). All the values/parameters are Fortran intrinsic types, real or integer. Usage of the operator: More...
 
interface  commondata::operator(.cat.)
 Concatenate two arrays a and b. This procedure uses array slices which would be faster in most cases than the intrinsic [a,b] method. More...
 
interface  commondata::average
 Calculate an average of an array excluding missing code values. More...
 
interface  commondata::is_maxval
 Check if a value is the maximum value of an array. More...
 
interface  commondata::is_minval
 Check if a value is the minimum value of an array. More...
 
interface  commondata::operator(.radd.)
 Interface operator .radd. performs a random addition or subtraction of two numbers with equal probability. See commondata::random_add_subtract(). The operator can be used as follows: More...
 

Modules

module  commondata
 COMMONDATA – definitions of global constants and procedures.
 

Functions/Subroutines

elemental real(srp) function, private commondata::cm2m_r (value_cm)
 Convert cm to m. More...
 
elemental real(hrp) function, private commondata::cm2m_hr (value_cm)
 Convert cm to m. More...
 
elemental real(srp) function, private commondata::cm2m_i (value_cm)
 Convert cm to m. More...
 
elemental real(srp) function, private commondata::m2cm_r (value_m)
 Convert m to cm. More...
 
elemental real(hrp) function, private commondata::m2cm_hr (value_m)
 Convert m to cm. More...
 
elemental real(srp) function, private commondata::m2cm_i (value_m)
 Convert m to cm. More...
 
elemental real(srp) function, private commondata::mm2m_r (value_mm)
 Convert mm to m. More...
 
elemental real(srp) function, private commondata::mm2m_i (value_mm)
 Convert mm to m. More...
 
elemental real(srp) function commondata::carea (R)
 Calculate a circle area. More...
 
elemental real(srp) function commondata::length2sidearea_fish (body_length)
 A function linking body length with the body area in fish. More...
 
elemental real(srp) function, private commondata::rescale_full (value_in, A, B, A1, B1)
 Rescale a real variable with the range A:B to have the new range A1:B1. More...
 
elemental real(srp) function, private commondata::rescale_1 (value_in, A1, B1)
 Rescale a real variable with the range 0:1 to have the new range A1:B1. More...
 
elemental real(srp) function, private commondata::within_r (value_in, vmin, vmax)
 Force a value within the range set by the vmin and vmax dummy parameter values. If the value is within the range, it does not change, if it falls outside, the output force value is obtained as min( max( value, FORCE_MIN ), FORCE_MAX ) More...
 
elemental integer function, private commondata::within_i (value_in, vmin, vmax)
 Force a value within the range set by the vmin and vmax dummy parameter values. If the value is within the range, it does not change, if it falls outside, the output force value is obtained as min( max( value, FORCE_MIN ), FORCE_MAX ) More...
 
elemental logical function, private commondata::is_within_r (x, lower, upper)
 Logical function to check if a value is within a specific range, lower <= X <= upper. The reverse (upper <= x <= lower) range limits can also be used; a corrective adjustment is automatically made. More...
 
elemental logical function, private commondata::is_within_i (x, lower, upper)
 Logical function to check if a value is within a specific range, lower <= X <= upper. The reverse (upper <= x <= lower) range limits can also be used; a corrective adjustment is automatically made. More...
 
pure logical function, private commondata::is_within_operator_r (x, limits)
 A wrapper function for commondata::is_within() to build a user defined operator. Basically, it is the same as is_within, but the lower and upper limits are set as a two-element array. Usage of the operator: More...
 
pure logical function, private commondata::is_within_operator_i (x, limits)
 A wrapper function for commondata::is_within() to build a user defined operator. Basically, it is the same as is_within, but the lower and upper limits are set as a two-element array. Usage of the operator: More...
 
pure real(srp) function, private commondata::average_r (array_in, missing_code, undef_ret_null)
 Calculate an average value of a real array, excluding MISSING values. More...
 
pure real(srp) function, private commondata::average_i (array_in, missing_code, undef_ret_null)
 Calculate an average value of an integer array, excluding MISSING values. More...
 
real(srp) function commondata::std_dev (array_in, missing_code, undef_ret_null)
 Calculate standard deviation using trivial formula: More...
 
pure real(srp) function, dimension(:), allocatable, private commondata::stack2arrays_r (a, b)
 Concatenate two arrays a and b. This procedure uses array slices which would be faster in most cases than the intrinsic [a,b] method. More...
 
pure integer function, dimension(:), allocatable, private commondata::stack2arrays_i (a, b)
 Concatenate two arrays a and b. This procedure uses array slices which would be faster in most cases than the intrinsic [a,b] method. More...
 
elemental logical function, private commondata::is_near_zero_srp (test_number, epsilon)
 Checks if a real number is near 0.0. Thus function can be used for comparing two real values like the below. More...
 
elemental logical function, private commondata::is_near_zero_hrp (test_number, epsilon)
 Checks if a real number is near 0.0. Thus function can be used for comparing two real values like the below. More...
 
elemental logical function, private commondata::float_equal_srp (value1, value2, epsilon)
 Check if two real values are nearly equal using the commondata::is_near_zero(). Thus function can be used for comparing two real values like the below. The exact comparison (incorrect due to possible rounding): More...
 
elemental logical function, private commondata::float_equal_hrp (value1, value2, epsilon)
 Check if two real values are nearly equal using the commondata::is_near_zero(). Thus function can be used for comparing two real values like the below. The exact comparison (incorrect due to possible rounding): More...
 
elemental logical function, private commondata::float_equal_srp_operator (value1, value2)
 This is a wrapper for the commondata::float_equal_srp() for building the user defined operator .feq. with default tolerance (epsilon parameter). The exact real comparison (incorrect due to possible rounding): More...
 
elemental logical function, private commondata::float_equal_hrp_operator (value1, value2)
 This is a wrapper for the commondata::float_equal_hrp() for building the user defined operator .feq. with default tolerance (epsilon parameter). The exact real comparison (incorrect due to possible rounding): More...
 
elemental logical function, private commondata::float_approx_srp_operator (value1, value2)
 This is a wrapper for the commondata::float_equal_srp() for building the user defined operator .approx. with very high tolerance (epsilon parameter). The exact real comparison (incorrect due to possible rounding): More...
 
elemental logical function, private commondata::float_approx_hrp_operator (value1, value2)
 This is a wrapper for the commondata::float_equal_hrp() for building the user defined operator .approx. with very high tolerance (epsilon parameter). The exact real comparison (incorrect due to possible rounding): More...
 
subroutine commondata::do_sanitise (array, lvalid, hvalid, substval, only_wrong, tnote)
 Sanitize a real commondata::srp array, so that any value that is smaller than the minimum sensible value lvalid or greater then the maximum sensible value hvalid is substituted with substval. The procedure also checks the input value for IEEE validity: overflow, underflow, invalid and inexact. More...
 
integer function commondata::ieee_error_reporting (reset, tnote)
 Check if an IEEE error condition has occurred. More...
 
real(srp) function commondata::zeroin (ax, bx, f, tol)
 This function calculates a zero of a function f(x) in the interval (ax,bx). More...
 
elemental real(srp) function commondata::allelescale (raw_value)
 Converts and rescales integer allele value to real value for neural response function. More...
 
elemental real(srp) function commondata::alleleconv (raw_value)
 
elemental real(srp) function commondata::cv2variance (cv, mean)
 Calculate the variance from the coefficient of variation. More...
 
real(srp) function, private commondata::gamma2gene_additive_i4 (gs, gh, signal, erpcv)
 The function gamma2gene finds the sigmoid relationship for a complex multicomponent 2-allele impact on the neuronal response. More...
 
real(srp) function, private commondata::gamma2gene_additive_r4 (gs, gh, signal, erpcv)
 The function gamma2gene finds the sigmoid relationship for a complex multicomponent 2-allele impact on the neuronal response. More...
 
elemental real(srp) function, private commondata::gamma2gene_fake_vals (signal, gs, gh, n_acomps)
 This "fake" version of the gamma2gene is used to guess the response values in calculations. More...
 
elemental real(srp) function, private commondata::gamma2gene_reverse (neuronal_response, gs, gh, nc)
 Reverse-calculate perception value from the given neural response value. More...
 
pure subroutine, private commondata::add_to_history_i4 (history_array, add_this)
 Simple history stack function, add to the end of the stack. We need only to add components on top of the stack and retain commondata::history_size_spatial elements of the prior history (for a spatial moving object). The stack works as follows, assuming 100 and 200 are added:
[1 2 3 4 5 6 7 8 9 10];
[2 3 4 5 6 7 8 9 10 100];
[3 4 5 6 7 8 9 10 100 200]. More...
 
pure subroutine, private commondata::add_to_history_r (history_array, add_this)
 Simple history stack function, add to the end of the stack. We need only to add components on top of the stack and retain commondata::history_size_spatial elements of the prior history (for a spatial moving object). More...
 
pure subroutine, private commondata::add_to_history_char (history_array, add_this)
 Simple history stack function, add to the end of the stack. We need only to add components on top of the stack and retain commondata::history_size_spatial elements of the prior history. More...
 
elemental integer function commondata::conv_l2i (flag, code_false, code_true)
 Converts logical to integer following a rule, default FALSE = 0, TRUE = 1. More...
 
elemental real(srp) function commondata::conv_l2r (flag, code_false, code_true)
 Converts logical to standard (kind SRP) real, .FALSE. => 0, .TRUE. => 1. More...
 
pure logical function, private commondata::is_maxval_r (value, array, tolerance)
 Function to check if the value is the maximum value of an array (returns TRUE), or not (return FALSE). More...
 
pure logical function, private commondata::is_maxval_i (value, array)
 Function to check if the value is the maximum value of an array (returns TRUE), or not (return FALSE). Integer version. More...
 
pure logical function, private commondata::is_minval_r (value, array, tolerance)
 Function to check if the value is the minimum value of an array (returns TRUE), or not (return FALSE). More...
 
pure logical function, private commondata::is_minval_i (value, array)
 Function to check if the value is the minimum value of an array (returns TRUE), or not (return FALSE). Integer version. More...
 
subroutine, private commondata::timer_cpu_start (this, timer_title)
 Start the timer object, stopwatch is now ON. More...
 
real(srp) function, private commondata::timer_cpu_elapsed (this)
 Calculate the time elapsed since the stopwatch subroutine was called for this instance of the timer container object. Can be called several times showing elapsed time since the grand start. More...
 
character(len=:) function, allocatable, private commondata::timer_cpu_title (this)
 Return the title of the current timer object. More...
 
character(len=:) function, allocatable, private commondata::timer_cpu_show (this)
 A ready to use in output function that returns a formatted string for a timer combining its title and the elapsed time. For example: Calculating decomposition took 20s. More...
 
character(len=:) function, allocatable, private commondata::timer_cpu_log (this)
 A ready to use shortcut function to be used in logger, just adds the TIMER: tag in front of the normal showoutput.
Example use: More...
 
subroutine commondata::call_external (command, suppress_output, suppress_error, is_background_task, cmd_is_success, exit_code)
 Call an external program using a command line. Wrapper to two alternative system shell calling intrinsic procedures. More...
 
logical function commondata::check_external (exec)
 Check if an external procedure is executable and can be run. More...
 
subroutine commondata::log_check_external (exec, debug_only, is_valid)
 Check if an external procedure can be called and log the result. More...
 
subroutine commondata::debug_histogram_save (x_data, delete_csv, csv_out_file, enable_non_debug)
 Produce a debug plot of histogram using an external program hthist from HEDTOOLS tools. More...
 
subroutine commondata::debug_scatterplot_save (x_data, y_data, delete_csv, csv_out_file, enable_non_debug)
 Produce a debug plot of 2-d scatterplot using an external program htscatter from HEDTOOLS tools. More...
 
subroutine commondata::debug_interpolate_plot_save (grid_xx, grid_yy, ipol_value, algstr, output_file, enable_non_debug)
 Produce a debug plot of the interpolation data using an external program htinterp from the HEDTOOLS tools. More...
 
subroutine commondata::file_delete (file_name, success)
 Delete a file from the local file system using Fortran open status=delete or fast POSIX C call. More...
 
real(srp) function, private commondata::random_add_subtract (x, y)
 Random operator, adds or subtracts two values with equal probability, used in the random walk functions. More...
 
subroutine commondata::system_init ()
 Initialises the system environment and sets basic parameters. More...
 
subroutine commondata::system_halt (is_error, message, ignore_lockfile)
 Halt execution of the system with a specific message and exit code. The exit code is normally passed to the operating system. However, this behaviour is implementation dependent and can be unexpected on specific the platform(s) and the compiler(s). More...
 
subroutine, private commondata::logger_init ()
 logger_init Initialise the system and the system logger. More...
 
subroutine commondata::log_dbg (message_string, procname, modname)
 LOG_DBG: debug message to the log. The message goes to the logger only when running in the DEBUG mode. More...
 
subroutine commondata::log_ieee (ttag, always_log, reset_flags)
 LOG_IEEE: Check and log IEEE signalling flags. Logging normally occurs only if any nonzero output from ieee_error_reporting() is found. More...
 
character(len=:) function, allocatable, private commondata::parse_svn_version ()
 Parse and cut revision number in form of string from the whole SVN revision string. SVN revision number can therefore be included into the model outputs and output file names. This is convenient because the model version is identified by a single SVN revision number. More...
 
character(len=long_label_length) function, dimension(:), allocatable commondata::parse_abstract (file_name)
 Get and parse the model abstract. Model abstract is a short descriptive text that can span several lines and is kept in a separate file that is defined by the commondata::model_abstract_file. More...
 
character(len=:) function, allocatable, private commondata::tag_mmdd ()
 Date (YYYYMMDD) tag for file names and logs. More...
 

Variables

Precision control for real type and IEEE float math in the model
integer, parameter, public commondata::s_prec_32 = selected_real_kind( 6, 37)
 Standard precision for real data type. We first define 32, 64 and 128 bit real kinds. More...
 
integer, parameter, public commondata::d_prec_64 = selected_real_kind(15, 307)
 
integer, parameter, public commondata::q_prec_128 = selected_real_kind(33, 4931)
 
integer, parameter, public commondata::srp = S_PREC_32
 Definition of the standard real type precision (SRP). More...
 
integer, parameter, public commondata::hrp = Q_PREC_128
 Definition of the high real precision (HRP). This real type kind is used in pieces where a higher level of FPU precision is required, e.g. to avoid overflow/underflow and similar errors. More...
 
integer, parameter, public commondata::long = selected_int_kind(16)
 In some (perhaps quite rare) cases of exponentiation we may also need huge integers, those in 64 bit would probably be enough. So whenever we need such a big integer, declare it as: More...
 
Accessory parameters
character(len= *), parameter, private commondata::modname = "(COMMONDATA)"
 MODNAME always refers to the name of the current module for use by the LOGGER function LOG_DBG. Note that in the debug mode (if IS_DEBUG=TRUE) LOGGER should normally produce additional messages that are helpful for debugging and locating possible sources of errors. MODNAME is declared private and is not accessible outside of this module. Each procedure should also have a similar private constant commondata::procname. More...
 
character(len= *), parameter, private commondata::procname = ""
 PROCNAME is the procedure name for logging and debugging (with commondata::modname). More...
 
character(len= *), parameter, public commondata::svn_version_string = "$Revision: 9552 $"
 Subversion or Mercurial revision number (or ID) of the model code. More...
 
character(len=:), allocatable, public, protected commondata::svn_version
 Subversion or Mercurial revision number that is parsed by commondata::parse_svn_version(). It is shorter than commondata::svn_version_string and does not contain blanks. Therefore, it can be used for building output file names. More...
 
logical, parameter, public commondata::true =.TRUE.
 Safety parameter avoid errors in logical values, so we can now refer to standard Fortran .TRUE. and .FALSE. as YES and NO or TRUE and FALSE More...
 
logical, parameter, public commondata::false =.FALSE.
 
logical, parameter, public commondata::yes =.TRUE.
 
logical, parameter, public commondata::no =.FALSE.
 
real(srp), parameter, public commondata::zero = epsilon(0.0_SRP)
 Some parameters should never be zero or below. In such cases they could be set to some smallest distinguishable non-zero value. Here set as the Fortran intrinsic epsilon function, a value that is almost negligible compared to one, i.e. the smallest real number E such that $ 1 + E > 1 $. In some cases it is also reasonable to set the tolerance limit to this parameter (see Float point computations). More...
 
real(srp), parameter, public commondata::tiny_srp =tiny(1.0_SRP)
 The smallest positive number in the commondata::srp standard real model. More...
 
real(hrp), parameter, public commondata::tiny_hrp =tiny(1.0_HRP)
 The smallest positive number in the commondata::hrp high precision real model. See Float point computations. More...
 
real(srp), parameter, public commondata::lo_valid_sanitised = TINY_SRP * 10.0_SRP
 Lower bound for do_sanitise() procedure. This is the lowest value that considered valid. More...
 
real(srp), parameter, public commondata::hi_valid_sanitised = huge(1.0_SRP)/100.0_SRP
 Higher bound for do_sanitise() procedure. This is the highest value that considered valid. More...
 
real(srp), parameter, public commondata::tolerance_low_def_srp = TINY_SRP * 5.0_SRP
 Default value of low tolerance (high precision). This is the standard commondata::srp precision. See Float point computations. More...
 
real(hrp), parameter, public commondata::tolerance_low_def_hrp = TINY_HRP * 5.0_HRP
 Default value of low tolerance (high precision). This is the high commondata::hrp precision. See Float point computations. More...
 
real(srp), parameter, public commondata::tolerance_high_def_srp = ZERO * 1000.0_SRP
 Default value of high tolerance (low precision). This is the standard commondata::srp precision real. See Float point computations. More...
 
real(hrp), parameter, public commondata::tolerance_high_def_hrp = epsilon(0.0_HRP) * 1000.0_HRP
 Default value of high tolerance (low precision). This is the high commondata::hrp precision real. See Float point computations. More...
 
real(srp), parameter, public commondata::missing = -9999.0_SRP
 Numerical code for missing and invalid real type values. More...
 
real(srp), parameter, public commondata::invalid = -9999.0_SRP
 
integer, parameter, public commondata::unknown = -9999
 Numerical code for invalid or missing integer counts. More...
 
real(srp), parameter, public commondata::pi =4.0_SRP*atan(1.0_SRP)
 The PI number. More...
 
character(len= *), parameter, public commondata::csv =".csv"
 Standard data file extension for data output is now .csv. More...
 
character(len= *), parameter, public commondata::ps =".ps"
 Standard file extension for debug and other PostScript plots. More...
 
integer, parameter, public commondata::filename_length = 255
 Set the standard length of the file name, are 255 characters enough? More...
 
logical, parameter, public commondata::use_posix_fs_utils = .TRUE.
 Logical flag for setting if POSIX direct filesystem procedures are used. These utilities are implemented in HEDTOOLS for standard POSIX C call via the Fortran interface. They should work safer, better and faster than indirect procedure wrappers (e.g. calling system()) but are not fully portable and might not work as expected on all systems and compilers. More...
 
integer, parameter, public commondata::label_length = 14
 The length of standard character string labels. We use labels for various objects, like alleles, perceptual and neural components / bundles etc. For simplicity, they all have the same length. It should be big enough to fit the longest whole label. More...
 
integer, parameter, public commondata::long_label_length = 128
 The length of long labels. More...
 
integer, parameter, public commondata::label_cst = 97
 This parameter defines the range of characters that is used for generating random labels, 97:122 corresponds to lowercase Latin letters. More...
 
integer, parameter, public commondata::label_cen = 122
 
character(len= *), parameter commondata::lock_file = "lock_simulation_running.lock"
 The name of the lock file. The lock file is created at the start of the simulation and is deleted at the end of the simulation. It can be used to signal that simulation is still ongoing to external utilities and scripts. See The lock file. More...
 
integer, public, protected commondata::lock_file_unit
 This is the unit number that identifies the lock file. The lock file is created at the start of the simulation and is deleted at the end of the simulation. It can be used to signal that simulation is still ongoing to external utilities and scripts. See The lock file. More...
 
character(len= *), parameter commondata::stop_file = "stop_simulation_running.lock"
 The name of the stop file. The stop file is checked before each new generation of the Genetic Algorithm. If this file is found, simulation does not go to the next generation and just stops. See The stop file. More...
 
integer, parameter, public commondata::platform_windows = 100
 Runtime platform ID constants. Use these constants for determining the current runtime platform, e.g. Platform_Running = PLATFORM_WINDOWS. See commondata::platform_running. More...
 
integer, parameter, public commondata::platform_unix = 111
 
integer, public commondata::platform_running
 Global variable that shows what is the current platform. Should use the above platform constants, e.g. Platform_Running = PLATFORM_WINDOWS. See commondata::platform_windows and commondata::platform_unix. More...
 
character(len= *), parameter, public commondata::exec_interpolate = "htintrpl.exe"
 There are a few external programs which are called from the model code. The name of the interpolation program (htintrpl.f90 from HEDTOOLS) executable. More...
 
character(len= *), parameter, public commondata::exec_scatterplot = "htscatter.exe"
 The name of the scatterplot program (htscatter.f90 from HEDTOOLS) executable. More...
 
character(len= *), parameter, public commondata::exec_histogram = "hthist.exe"
 The name of the histogram program (hthist.f90 from HEDTOOLS) executable. More...
 
character(len= *), parameter, public commondata::ltag_major = "IMPORTANT: "
 Tag prefixes for the logger system. The log may use tags for some common information pieces, so they are easily found within. The tags are normally set the prefix for the log: 017-01-31 13:33:22 INFO: Saving histogram, data: debug_hist.csv Some common tags are: STAGE STAGE: 2017-01-31 16:03:15 INFO: Generation 7 took 448.3279s. INFO INFO: some information TIMER TIMER: Calculating distances took 0.001 s Tag meaning:
More...
 
character(len= *), parameter, public commondata::ltag_stage = "STAGE: "
 
character(len= *), parameter, public commondata::ltag_info = "INFO: "
 
character(len= *), parameter, public commondata::ltag_warn = "WARNING: "
 
character(len= *), parameter, public commondata::ltag_error = "ERROR: "
 
character(len= *), parameter, public commondata::ltag_crit = "CRITICAL: "
 
character(len= *), parameter, public commondata::ltag_timer = "TIMER: "
 
character(len= *), parameter, public commondata::ltag_stats = "STATS: "
 
System-wide fatal errors

The description of errors that pertain to the whole system.

character(len= *), parameter, public commondata::error_no_autoalloc = "No automatic array allocation"
 Error message for **"no automatic intrinsic array allocation"**. Fortran compilers support automatic allocation of arrays on intrinsic assignment. This feature should work by default in GNU gfortran v.4.6 and Intel ifort v.17.0.1. Automatic allocation allows to avoid a possible bug when the number of array elements in the allocate statement is not updated when the components of the array are updated in the array constructor. More...
 
character(len= *), parameter, public commondata::error_auto_param_arrays = "No automatic size in parameter arrays"
 Error message for **"no automatic determination of the size in parameter"** arrays in the style: More...
 
character(len= *), parameter, public commondata::error_allocation_fail = "Cannot allocate array or object"
 Error message **"Cannot allocate array or object"** is issued if an array or an object is checked and turns out to be not allocated while it must be. More...
 
character(len= *), parameter, public commondata::error_lock_preexists = "Lock file '" // LOCK_FILE // "' exists. Is another simulation running?"
 
General Parameters
character(len= *), parameter, public commondata::model_name = "HEDG2_04"
 Model name for tags, file names etc. Must be very short. See Model descriptors. More...
 
character(len= *), parameter, public commondata::model_descr = "AHA, single fear, body size non-genetic."
 Model description - a fixed descriptive text, used in text outputs etc. See Model descriptors. More...
 
character(len= *), parameter, private commondata::model_abstract_file = "abstract.txt"
 The name of the file that contains the Model abstract, a short description that can span several lines of text ans is kept in a separate file. The file is read, if it exists, and its contents is logged at the start the simulation. The separate Model Abstract file is useful because it can integrate dynamic information, such as the latest version control log(s) via Subversion or Mercurial hooks mechanism. See Model descriptors. More...
 
logical, public, protected commondata::is_debug =.FALSE.
 Sets the model in the debug mode if TRUE. The Debug mode generates huge additional outputs and logs. Also, the logs by default go to the screen (standard output). See commondata::system_init() for details. More...
 
logical, public, protected commondata::is_plotting =.TRUE.
 This parameter controls if the debug plots are produced. They can be huge number that takes lots of space. Also, debug plots are called as separate processes that can run at the background and easily exceed the system-specific limit on child processes (if run in asynchronous mode). Generation of debug plots can be controlled by the environment variable AHA_DEBUG_PLOTS: if it is set to TRUE, 1, or YES, debug plots are enabled. See commondata::system_init() for details. More...
 
logical, public, protected commondata::is_screen_output =.FALSE.
 Sets the model in screen output mode. If TRUE, the logger output goes to the screen (standard output device). Can be manipulated using the environment variable AHA_SCREEN. If AHA_SCREEN is set to TRUE or 1 or yes, logger screen output is enabled. See commondata::system_init() for details. More...
 
logical, public, protected commondata::is_zip_outputs =.FALSE.
 This parameter enables or disables post-processing compression of the data: if TRUE, the data are compressed using the command defined by the commondata::cmd_zip_output string parameter. Note that not all data files are compressed, only potentially big ones are (e.g. agent population data and habitat data). More...
 
logical, parameter, public commondata::zip_outputs_background =.TRUE.
 This parameter defines if the output files are compressed in the background in the parallel mode or the program should wait for termination of the child zipping process. More...
 
character(len= *), parameter, public commondata::cmd_zip_output = "gzip"
 This parameter defines the compression program that is executed to "zip" the data files if commondata::is_zip_outputs is enabled (TRUE). The normal compression utility is "gzip," that is found on almost any Linux/Unix system. gzip compresses each file individually and by default automatically deletes the original file. The compressed file extension is defined by commondata::zip_file_extenssion. See http://www.gzip.org/. Alternative compressors that are fairly widespread are bzip2, lzma and xz. More...
 
character(len= *), parameter, public commondata::zip_file_extenssion = ".gz"
 This parameter defines the compressed file extension for the external compression utility defined by the commondata::cmd_zip_output. More...
 
logical, parameter, public commondata::enable_save_agents_each_timestep = .FALSE.
 This parameter defines if all agents data is saved at each time step of the life cycle. See the_evolution::lifecycle_preevol(). More...
 
character(len=:), allocatable, public, protected commondata::mmdd
 MMDD tag, year, month and day, used in file names and outputs. The value of the tag should be obtained only once at the start of the simulation, normally by calling the commondata::tag_mmdd() function at commondata::system_init(). It does not make much sense to generate these data tags on the fly as the simulations can be very long, several days, and so the file tags will be inconsistent. More...
 
integer, parameter, public commondata::popsize = 10000
 Maximum population size. More...
 
integer, parameter, public commondata::generations = 100
 Maximum number of generations in GA. More...
 
integer, public commondata::global_generation_number_current
 The current global generation number. This is a global non fixed-parameter variable that is updated in subroutines. More...
 
integer, parameter, public commondata::lifespan = 14000
 Number of time steps in the agent's maximum life length. More...
 
integer, parameter, public commondata::preevol_tsteps = 560
 Number of time steps in the agent's life at the pre-evolution stage. More...
 
integer, parameter, public commondata::preevol_tsteps_force_debug = 280
 Number of time steps in the agent's life at the fixed fitness pre-evolution stage. This parameter forces a smaller fixed value that is used for debugging only. Thus, adaptive time steps calculated by the_evolution::preevol_steps_adaptive() are disabled. To enable this fixed time steps, set this parameter commondata::preevol_tsteps_force_debug_enabled to TRUE. More...
 
logical, parameter, public commondata::preevol_tsteps_force_debug_enabled = .FALSE.
 This parameter enables the forced smaller fixed number of time steps set by the commondata::preevol_tsteps_force_debug parameter. More...
 
logical, parameter, public commondata::lifecycle_predation_disabled_debug = .FALSE.
 This parameter completely disables predation in the GA life cycle procedure. More...
 
integer, public commondata::global_time_step_model_current
 The current global time step of the model. This is a global non fixed-parameter variable that is updated in subroutines. More...
 
integer, public commondata::global_frame_number
 The current global time frame. Frames are time steps within the time step defined by the commondata::global_time_step_model_current. More...
 
real(srp), parameter, public commondata::percept_error_cv_def = 0.01_SRP
 Default perception error in the commondata::gamma2gene() neuronal response functions. Note that this parameter defines stochastic error as the Coefficient of Variation (CV). More...
 
Basic agent parameters
real(srp), parameter, public commondata::body_length_min = 0.2_SRP
 Minimum body length possible. More...
 
real(srp), parameter, public commondata::body_length_max = 100.0_SRP
 Maximum body length. More...
 
real(srp), parameter, public commondata::body_mass_min = 0.1_SRP
 Minimum possible body mass, hard limit. More...
 
logical, parameter, public commondata::init_agents_depth_is_fixed = .FALSE.
 This parameter determines if the agents are initialised at a fixed depth at the initialisation. Agents are normally placed uniformly, the_environment::uniform(), at the initialisation. However, the depth can be fixed. In such a case they are scattered uniformly in the X and Y coordinates but with fixed depth that is set by the commondata::init_agents_depth parameter. More...
 
logical, parameter, public commondata::init_agents_depth_is_gauss = .TRUE.
 This parameter determines if the agents are initialised at a fixed depth at the initialisation. Agents are placed uniformly, the_environment::uniform(), at the initialisation. However, the depth can be a Gaussian value with the. More...
 
real(srp), parameter, public commondata::init_agents_depth = 1833.0_SRP
 The fixed depth at which the agents are initialised at the start of the simulation. The other coordinates are normally set the_environment::uniform() within the initialisation environment container. See the_population::member_population::place_uniform(). More...
 
real(srp), parameter, public commondata::init_agents_depth_cv = 0.2_SRP
 This parameter sets the Coefficient of Variation for the Gaussian depth initialisation of the agents that is controlled by commondata::init_agents_depth_is_gauss. See the_population::member_population::place_uniform(). More...
 
real(srp), parameter, public commondata::reproduction_cost_body_mass_fix = 0.2_SRP
 The energetic cost of reproduction in terms of the agent's body mass loss. More...
 
real(srp), parameter, public commondata::reproduction_cost_offspring_fract_male = 0.3_SRP
 The component of the energetic cost of reproduction in males that is proportional to the total offspring mass. For details see the procedure the_body::reproduction_cost_energy_dynamic(). More...
 
real(srp), parameter, public commondata::reproduction_cost_offspring_fract_female = 1.0_SRP
 The component of the energetic cost of reproduction in females that is proportional to the total offspring mass. For details see the procedure the_body::reproduction_cost_energy_dynamic(). More...
 
real(srp), parameter, public commondata::reproduction_cost_body_mass_factor_male = 0.4_SRP
 The component of the energetic cost of reproduction in males that is proportional to the agent's body mass. For details see the procedure the_body::reproduction_cost_energy_dynamic(). More...
 
real(srp), parameter, public commondata::reproduction_cost_body_mass_factor_female = 0.1
 The component of the energetic cost of reproduction in females that is proportional to the agent's body mass. For details see the procedure the_body::reproduction_cost_energy_dynamic(). More...
 
real(srp), parameter, public commondata::reproduction_cost_unsuccess = 0.1_SRP
 The energetic cost of unsuccessful reproduction in terms of the agent's body mass lost. This is a fraction of the full cost of reproduction, that is described by the REPRODUCTION_COST_BODY_MASS parameter. More...
 
real(srp), dimension(*), parameter, public commondata::reproduct_body_mass_offspr_abscissa = [ BODY_MASS_MIN, 3.0_SRP, 10.5_SRP, 12.0_SRP ]
 The array defining the abscissa (X) of the nonparametric function curve that defines the relationship between the agent's body mass and the overall mass of all offspring as a fraction of the agent's body mass. More...
 
real(srp), dimension(*), parameter, public commondata::reproduct_body_mass_offspr_ordinate = [ 0.0_SRP, 0.1_SRP, 0.199_SRP, 0.20_SRP ]
 The array defining the ordinate (Y) of the nonparametric function curve that defines the relationship between the agent's body mass and the overall mass of all offspring as a fraction of the agent's body mass. Plotting command for the interpolator: More...
 
Parameters of the environment
real(srp), dimension(3), parameter, public commondata::universe_min_coord_notuse = [0.0_SRP, 0.0_SRP, 0.0_SRP]
 Overall size of the global 3D universe of the model. More...
 
real(srp), dimension(3), parameter, public commondata::universe_whole_size_notuse = [20000.0_SRP, 10000.0_SRP, 3000.0_SRP]
 
integer, parameter, public commondata::dielcycles = 100
 Number of days and nights in a lifespan, DIELCYCLES=500. More...
 
integer, parameter, public commondata::history_size_spatial = 50
 The size of the history for spatial moving objects, i.e. how many time steps positions to remember in stack arrays. More...
 
real(srp), dimension(3), parameter, public commondata::habitat_safe_min_coord = [0.0_SRP, 0.0_SRP, 0.0_SRP]
 Definition of the habitat spatial limits. More...
 
real(srp), dimension(3), parameter, public commondata::habitat_safe_max_coord = [10000.0_SRP, 10000.0_SRP, 3000.0_SRP]
 
real(srp), dimension(3), parameter, public commondata::habitat_danger_min_coord = [10000.0_SRP, 0.0_SRP, 0.0_SRP]
 
real(srp), dimension(3), parameter, public commondata::habitat_danger_max_coord = [20000.0_SRP, 10000.0_SRP, 3000.0_SRP]
 
integer, parameter, public commondata::predators_num_habitat_safe = 100
 The number of predators in the safe habitat. More...
 
integer, parameter, public commondata::predators_num_habitat_danger = 500
 The number of predators in the dangerous habitat. More...
 
integer, parameter, public commondata::food_abundance_habitat_safe = 20000
 The food abundance in the safe habitat. More...
 
integer, parameter, public commondata::food_abundance_habitat_danger = 40000
 The food abundance in the dangerous habitat. More...
 
real(srp), parameter, public commondata::other_risks_def = 0.01_SRP
 Default level of other mortality risks in the habitat. More...
 
real(srp), parameter, public commondata::other_risks_habitat_safe = 0.01_SRP
 Habitat-specific mortality risk (not linked with predation) in the safe habitat. More...
 
real(srp), parameter, public commondata::other_risks_habitat_danger = 0.05_SRP
 Habitat-specific mortality risk (not linked with predation) in the dangerous habitat. More...
 
real(srp), parameter, public commondata::eggmortality_def = 0.01_SRP
 Default level of egg mortality in the habitat. More...
 
real(srp), parameter, public commondata::individual_mortality_risk_def = 0.01_SRP
 Default individually-specific mortality risk. It can increase or decrease depending on various factors. The individually-specific mortality risk is normally a Gaussian variable with the variability set by the commondata::individual_mortality_risk_cv. More...
 
real(srp), parameter, public commondata::individual_mortality_risk_cv = 0.05_SRP
 The coefficient of variation for Gaussian stochastic individually-specific mortality risk of the agent. More...
 
real(srp), parameter, public commondata::predator_body_size = 100.0_SRP
 The body size of the predator. In this version all predators have the same body size set by this parameter, but can be Gaussian stochastic. Moreover, in such a case predator attack efficiency can depend on the body size, e.g. larger predators are more dangerous. compare to the agents maximum body size BODY_LENGTH_MAX=100.0 More...
 
real(srp), parameter, public commondata::predator_attack_rate_default = 0.9_SRP
 Mean rate of a single predator attack. More...
 
real(srp), parameter, public commondata::predator_attack_rate_cv = 0.1_SRP
 Coefficient of variation for a single predator attack among the whole population of stochastic predators. More...
 
real(srp), parameter, public commondata::predator_attack_capture_probability_half = 0.8_SRP
 The probability of capture of a fish agent by a predator at the distance equal to 1/2 of the visual range. For more details see the_environment::predator_capture_risk_calculate_fish(). More...
 
real(srp), parameter, public commondata::predator_attack_capture_probability_min = 0.1_SRP
 Minimum probability of capture, e.g. at a distance exceeding the visual range. The latter assumes that the predator could detect the agent beyond the visual range and pursue it. For more details see the_environment::predator_capture_risk_calculate_fish(). More...
 
real(srp), parameter, public commondata::predator_attack_capture_prob_frz_50 = 0.10_SRP
 A parameter factor defining the probability of capture of an immobile (freezing) agent by a predator: interpolation ordinate for the distance equal to 0.25 of the visual range. See the_environment::predator_capture_risk_calculate_fish() for details. More...
 
real(srp), parameter, public commondata::predator_attack_capture_prob_frz_75 = 0.01_SRP
 A parameter factor defining the probability of capture of an immobile (freezing) agent by a predator: interpolation ordinate for the distance equal to 0.40 of the visual range. See the_environment::predator_capture_risk_calculate_fish() for details. More...
 
logical, parameter, public commondata::agent_can_assess_predator_attack_rate = .TRUE.
 A logical flag of whether the agents can assess the individual inherent attack rates of the predators. If yes, these inherent individual attack rates are collated into the perception object. If no, the default attack rate set by the commondata::predator_attack_rate_default parameter is used. More...
 
integer, parameter, public commondata::predator_risk_group_select_index_partial = 20
 Sets the limit for partial indexing and ranking of prey agents in the visual range of the predator. The risk of predation, i.e. the probability of attack and capture of each agent in a group of agents, will be calculated individually for distance-ranked agents only up to this parameter value. More...
 
real(srp), dimension(*), parameter, public commondata::predator_risk_group_dilution_ordinate = [1.0_SRP, 0.3_SRP, 0.1_SRP]
 The array defining the ordinate grid values for the weighting nonparametric function linking the distance rank of the agent within the visual field of the predator and the weighting factor adjusting for predator confusion and predator dilution effects. The grid abscissa is calculated dynamically in the the_environment::predator_capture_risk_calculate_fish_group() procedure. More...
 
real(srp), parameter, public commondata::food_item_size_default = 2.1_SRP
 Default size of a single food item. More...
 
real(srp), parameter, public commondata::food_item_mean_size = FOOD_ITEM_SIZE_DEFAULT
 The above is also the average size of a stochastic Gaussian food items. More...
 
real(srp), parameter, public commondata::food_item_size_default_cv = 0.1_SRP
 Coefficient of variation for Gaussian food items. More...
 
real(srp), parameter, public commondata::food_item_minimum_size = 1.0_SRP
 The minimum size of a food item. This is the "floor" in case the stochastically generated (e.g. Gaussian) value gets zero or below. More...
 
real(srp), parameter, public commondata::food_item_density = 0.1_SRP
 The (physical) density of a single food item. TODO: need to parametrise! More...
 
real(srp), parameter, public commondata::food_item_capture_prop_cost = 0.05_SRP
 The cost of the food item catching, in terms of the food item mass (proportional cost). So, if the agent does an unsuccessful attempt to catch a food item, the cost still applies. More...
 
real(srp), parameter, public commondata::food_item_capture_probability = 0.99_SRP
 The baseline probability that the food item is captured. See the_neurobio::food_item_capture_probability_calc(). More...
 
real(srp), parameter, public commondata::food_item_capture_probability_min = 0.1_SRP
 The minimum probability of capture a food item, when the item is at a distance equal to the visual range from the predator agent. More...
 
real(srp), parameter, public commondata::food_item_capture_probability_subjective_errorr_cv = 0.1
 Subjective error assessing the food item capture probability when assessing the subjective GOS expectancies of food items. The subjective assessment value of the capture probability is equal to the objective value plus random error with the CV equal to this parameter. More...
 
real(srp), parameter, public commondata::food_item_migrate_xy_mean = FOOD_ITEM_SIZE_DEFAULT * 10.0_SRP
 Mean shift parameter for the local random walk movement of food items in the horizontal plane. More...
 
real(srp), parameter, public commondata::food_item_migrate_depth_mean = FOOD_ITEM_SIZE_DEFAULT * 100.0_SRP
 Mean shift parameter for the local random walk movement of food items in the vertical (depth) plane. More...
 
real(srp), parameter, public commondata::food_item_migrate_xy_cv = FOOD_ITEM_SIZE_DEFAULT_CV
 Coefficient of variation parameter for the local random walk movement of food items in the horizontal plane. More...
 
real(srp), parameter, public commondata::food_item_migrate_depth_cv = 0.8_SRP
 Coefficient of variation parameter for the local random walk movement of food items in the vertical (depth) plane. More...
 
real(srp), parameter, public commondata::daylight =500.0_SRP
 Maximum above-surface light intensity at midday, DAYLIGHT=500.0. More...
 
logical, parameter, public commondata::daylight_stochastic = .TRUE.
 Flag for stochastic daylight pattern (if TRUE) or deterministic sinusoidal (when FALSE). Check out the next parameter DAYLIGHT_CV for variability. More...
 
real(srp), parameter, public commondata::daylight_cv =0.2_SRP
 Coefficient of variation for stochastic DAYLIGHT,. More...
 
real(srp), parameter, public commondata::beamatt =1.0_SRP
 Beam attenuation coefficient of water (m-1),BEAMATT = 1.0. More...
 
real(srp), parameter, public commondata::preycontrast_default = 1.0_SRP
 Inherent contrast of prey, CONTRAST =1.0. More...
 
real(srp), parameter, public commondata::preyarea_default =3.E-6_SRP
 Area of prey (m2), PREYAREA = 3.E-6. More...
 
real(srp), parameter, public commondata::viscap =1.6E6_SRP
 Dimensionless descriptor of fish eye quality, VISCAP=1.6E6. More...
 
real(srp), parameter, public commondata::eyesat =500.0_SRP
 Saturation parameter of eye (Ke) (uE m-2 s-1), EYESAT=500.0. More...
 
real(srp), parameter, public commondata::lightdecay = 0.002_SRP
 Vertical conservation of light, per depth (old code lightdecay=0.2). More...
 
Genetic architecture parameters
integer, parameter, public commondata::allelerange_min = 1
 The minimum possible value of alleles (allele range minimum) See implementation notes on the_genome::gene::allele_value component of the the_genome::gene derived type and commondata::alleleconv() and commondata::allelescale() functions. More...
 
integer, parameter, public commondata::allelerange_max = 10000
 The maximum possible value of alleles (allele range maximum) See implementation notes on the_genome::gene::allele_value component of the the_genome::gene derived type and commondata::alleleconv() and commondata::allelescale() functions. More...
 
real(srp), parameter, public commondata::allelescale_max = 20.0_SRP
 Conversion parameter that defines the scaling of the integer allele values ::ALLELERANGE_MIN to ALLELERANGE_MAX are converted to zero to this parameter value as the maximum. See allelescale() for details. More...
 
integer, parameter, public commondata::additive_comps = 3
 Number of additive allele components. More...
 
real(srp), parameter, public commondata::mutationrate_point = 0.1_SRP
 Mutation rate for point allele mutations. More...
 
real(srp), parameter, public commondata::ga_mutationrate_point_max = 0.25_SRP
 Maximum point mutation rate in the adaptive Fixed Fitness Genetic Algorithm. More...
 
real(srp), parameter, public commondata::mutationrate_batch = 0.05_SRP
 Mutation rate for point allele mutations, a whole batch of allele components. More...
 
real(srp), parameter, public commondata::ga_mutationrate_batch_max = 0.1_SRP
 Maximum batch mutation rate in the adaptive Fixed Fitness Genetic Algorithm. More...
 
real(srp), parameter, public commondata::relocation_swap_rate = 0.05_SRP
 Mutation rate for chromosome relocation, i.e. probability of a gene moving to a different position on the same chromosome: There are two kinds of relocations, swapping genes between two positions and moving a gene with subsequent shift. So we have two constants for the respective rates. More...
 
real(srp), parameter, public commondata::relocation_shift_rate = 0.01_SRP
 
integer, parameter, public commondata::n_chromosomes = 6
 The number of chromosomes for the agents. More...
 
integer, dimension(n_chromosomes), parameter, public commondata::len_chromosomes = [ 6, 5, 12, 12, 12, 12 ]
 The number of alleles in each of the chromosomes. NOTE: This must be an array (vector) of the size commondata::n_chromosomes. We use new Fortran array constructor here to set the array values. More...
 
integer, parameter, public commondata::max_nalleles = 12
 This parameter defines the maximum number of alleles within the chromosome It IS NOT intended to vary freely/independently. Used in definitions of _GENOTYPE_PHENOTYPE matrices, equal to the maxval(LEN_CHROMOSOMES). More...
 
character(len= *), dimension(n_chromosomes), parameter, public commondata::lab_chromosomes = [ "C_1_SEX ", "C_2_BODY", "C_3_HORM", "C_4_HUNG", "C_5_FEAR", "C_6_REPR" ]
 Set the labels of the chromosomes. NOTE, must be an array(vector) ) of the size commondata::n_chromosomes. We use new Fortran array constructor here to set the array values. More...
 
integer, parameter, public commondata::chromosome_ploidy = 2
 The ploidy of the chromosome set. Can theoretically be haploid (=1), diploid (=2) or, polyploid (>2). More...
 
real(srp), parameter, public commondata::genome_recombination_ratio_mother = 0.8_SRP
 The ratio of the genome that inherited from the mother. The other part is inherited from the father. See implementation details of the random independent genetic recombination procedure procedures the_genome::individual_genome::recombine(). More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::genome_crossover_fixed_mother = reshape ( [ YES,YES,YES,YES,YES,YES, YES,YES,YES,YES,YES,YES, YES,YES,YES,YES,YES,YES, NO, NO,YES,YES,YES,YES, NO, NO,YES,YES,YES,YES, NO, NO,YES,YES,YES,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 Boolean 2D matrix that determines the pattern of fixed chromosome crossover. For each chromosome, the alleles that are marked with the TRUE (YES) values are inherited from the mother whereas those marked FALSE (NO) are inherited from the father. See implementation details of the fixed genetic crossover procedure procedures the_genome::individual_genome::crossover(). More...
 
real(srp), parameter, public commondata::sex_ratio = 0.5_SRP
 Sex ratio for initialising genomes. More...
 
character(len=label_length), parameter commondata::sexlocus_label ="SEX_LOCUS"
 Labels for the sex locus alleles (gene) - vector as we don't need to label individual alleles. LABEL_LENGTH is here to avoid a GF warning. More...
 
character(len= *), parameter, public commondata::male ="male"
 Set names of the sexes – the allele labels. More...
 
character(len= *), parameter, public commondata::female ="female"
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::sex_genotype_phenotype = reshape ( [ YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 Sex definition can be implemented differently from all other traits. Here is an example of the phenotype x genotype matrix code for sex determination: More...
 
Hormonal parameters
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::growhorm_genotype_phenotype = reshape ( [ NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 Genotype x Phenotype matrix for growth hormone. More...
 
real(srp), parameter, public commondata::growhorm_init = 0.5_SRP
 Genotype to phenotype gamma2gene initialisation value for growth hormone More...
 
real(srp), parameter, public commondata::growhorm_gerror_cv = 0.5_SRP
 Genotype to phenotype gamma2gene Gaussian error parameter. This is really the coefficient of variation of the output hormone level with respect to an ideal value (initially 0). More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::thyroid_genotype_phenotype = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 Genotype x Phenotype matrix for thyroid. More...
 
real(srp), parameter, public commondata::thyroid_init = 0.5_SRP
 Genotype to phenotype gamma2gene initialisation value for thyroid More...
 
real(srp), parameter, public commondata::thyroid_gerror_cv = 0.5_SRP
 Genotype to phenotype gamma2gene Gaussian error parameter. This is really the coefficient of variation of the output hormone level with respect to an ideal value (initially 0). More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::adrenaline_genotype_phenotype = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 Genotype x Phenotype matrix for adrenaline More...
 
real(srp), parameter, public commondata::adrenaline_init = 0.5_SRP
 Genotype to phenotype gamma2gene initialisation value for adrenaline More...
 
real(srp), parameter, public commondata::adrenaline_gerror_cv = 0.5_SRP
 Genotype to phenotype gamma2gene Gaussian error parameter. This is really the coefficient of variation of the output hormone level with respect to an ideal value (initially 0). More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::cortisol_genotype_phenotype = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 Genotype x Phenotype matrix for cortisol. More...
 
real(srp), parameter, public commondata::cortisol_init = 0.5_SRP
 Genotype to phenotype gamma2gene initialisation value for cortisol More...
 
real(srp), parameter, public commondata::cortisol_gerror_cv = 0.5_SRP
 Genotype to phenotype gamma2gene Gaussian error parameter. This is really the coefficient of variation of the output hormone level with respect to an ideal value (initially 0). More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::testosterone_genotype_phenotype = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 Genotype x Phenotype matrix for testosterone. More...
 
real(srp), parameter, public commondata::testosterone_init = 0.01_SRP
 Genotype to phenotype gamma2gene initialisation value for testosterone More...
 
real(srp), parameter, public commondata::testosterone_gerror_cv = 0.5_SRP
 Genotype to phenotype gamma2gene Gaussian error parameter. This is really the coefficient of variation of the output hormone level with respect to an ideal value (initially 0). More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::estrogen_genotype_phenotype = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 Genotype x Phenotype matrix for ESTROGEN. More...
 
real(srp), parameter, public commondata::estrogen_init = 0.01_SRP
 Genotype to phenotype gamma2gene initialisation value for estrogen More...
 
real(srp), parameter, public commondata::estrogen_gerror_cv = 0.5_SRP
 Genotype to phenotype gamma2gene Gaussian error parameter. This is really the coefficient of variation of the output hormone level with respect to an ideal value (initially 0). More...
 
integer, parameter, public commondata::sex_steroids_check_history = 3
 The number of the latest historical values that are checked for change when setting an increment of the sex steroid hormones. More...
 
real(srp), dimension(*), parameter, public commondata::sex_steroids_increment_factor_age_curve_abscissa = [ 0.0_SRP, real(LIFESPAN, SRP)*0.25_SRP, real(LIFESPAN, SRP) ]
 The array defining the abscissa (X) of the nonparametric function curve that defines the relationship between the age of the agent and the steroid increment factor for this specific age. More...
 
real(srp), dimension(*), parameter, public commondata::sex_steroids_increment_factor_age_curve_ordinate = [ 0.0_SRP, 0.01_SRP, 0.1_SRP ]
 The array defining the ordinate (Y) of the nonparametric function curve that defines the relationship between the age of the agent and the steroid increment factor for this specific age. More...
 
real(srp), dimension(*), parameter, public commondata::sex_steroids_increment_factor_len_curve_abscissa = [ 0.0_SRP, BODY_LENGTH_MAX*0.2_SRP, BODY_LENGTH_MAX ]
 The array defining the abscissa (X) of the nonparametric function curve that defines the relationship between the body length of the agent and the steroid increment factor for this specific length. More...
 
real(srp), dimension(*), parameter, public commondata::sex_steroids_increment_factor_len_curve_ordinate = [ 0.0_SRP, 0.01_SRP, 0.1_SRP ]
 The array defining the ordinate (Y) of the nonparametric function curve that defines the relationship between the body length of the agent and the steroid increment factor for this specific length. More...
 
Body parameters, individual physiology and condition
integer, parameter, public commondata::history_size_agent_prop = 100
 History stack size for the agent's basic properties, such as body length and body mass. Normally they are saved only for the analysis and currently not used in the perception. More...
 
real(srp), parameter, public commondata::living_cost = 4.0_SRP
 Living cost in terms of food consumed. metabolic costs, p roportional to body size. More...
 
real(srp), parameter, public commondata::mass_growth_threshold = 0.0001_SRP
 A minimum body mass increment when any linear growth is possible, in units of the body mass (e.g. 0.05 = 5%) More...
 
real(srp), parameter, public commondata::linear_growth_exponent = 3.0_SRP
 Growth exponent linking linear growth and body mass growth. Based on Fulton's condition factor "cube law.". More...
 
real(srp), dimension(*), parameter, public commondata::linear_growth_hormone_increment_factor_curve_abscissa = [ 0.0_SRP, GROWHORM_INIT, GROWHORM_INIT*3.0_SRP, GROWHORM_INIT*5.0_SRP, GROWHORM_INIT*20.0_SRP ]
 The array defining the abscissa (X) of the nonparametric function curve that defines the function linking the relationship between the growth hormone and the relative linear growth increment. More...
 
real(srp), dimension(*), parameter, public commondata::linear_growth_hormone_increment_factor_curve_ordinate = [0.0_SRP, 0.6_SRP, 0.9_SRP, 0.98, 1.00_SRP]
 The array defining the ordinate (Y) of the nonparametric function curve that defines the function linking the relationship between the growth hormone and the relative linear growth increment. More...
 
real(srp), parameter, public commondata::max_stomach_capacity_def = 0.15_SRP
 Set the maximum stomach capacity default value – fraction of the body mass available for food. Can be overriden in different agent types. Normally 15%. More...
 
real(srp), parameter, public commondata::stomach_content_emptify_factor = 100.0_SRP
 Stomach content emptify factor at each step. More...
 
real(srp), parameter, public commondata::stomach_content_init = 0.01_SRP
 Set average stomach capacity at birth/init in units of body weight,. More...
 
real(srp), parameter, public commondata::stomach_content_init_cv = 0.05_SRP
 Set the coefficient of variation for the stomach capacity at init. More...
 
real(srp), parameter, public commondata::swimming_speed_cost_burst = 0.1E-4_SRP
 Set the weighting factor parameter of burst swimming cost in terms of the agent body size and the distance expressed in terms of the agent body lengths. In the_body::condition_cost_swimming_burst(), this parameter sets the $ \beta $ coefficient. More...
 
real(srp), parameter, public commondata::cost_factor_foraging_smr = 0.1E-5_SRP
 Set the cost of foraging in terms of SMR. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::energy_genotype_phenotype = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The initial value of the energy reserves at birth is genetically determined. This is the Genotype x Phenotype matrix for energy reserves. More...
 
real(srp), parameter, public commondata::energy_init = 0.18
 This is the initial value of the energy reserves, non-genetic mean. More...
 
real(srp), parameter, public commondata::energy_gerror_cv = 0.01
 Genotype to phenotype initialisation, Gaussian error parameter. Coefficient of variation for the ENERGY_INIT value. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::body_length_genotype_phenotype = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The initial value of the body length at birth is genetically determined. This is the Genotype x Phenotype matrix for body length. More...
 
real(srp), parameter, public commondata::body_length_init = 2.3_SRP
 The initial value of body length, the average (gon-genetic). More...
 
real(srp), parameter, public commondata::body_length_gerror_cv = 0.1_SRP
 Genotype to phenotype initialisation, Gaussian error parameter. Coefficient of variation for the BODY_LENGTH_INIT value. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::control_unselected_genotype_phenotype = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The initial value of the control unselected trait. This trait is is genetically determined but is not selected or used. So it can be used to control for random genetic drift. This is the Genotype x Phenotype matrix. More...
 
real(srp), parameter, public commondata::control_unselected_init = 0.5_SRP
 The initial value of the control unselected trait that goes through the gamma2gene. More...
 
real(srp), parameter, public commondata::control_unselected_gerror_cv = 0.5_SRP
 Genotype to phenotype initialisation, Gaussian error parameter. Coefficient of variation for the control unselected trait. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::smr_genotype_phenotype = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The initial value of the standard metabolic rate (SMR) at birth is genetically determined. This is the Genotype x Phenotype matrix for SMR. More...
 
real(srp), parameter, public commondata::smr_init = 0.5_SRP
 This is the initial value of SMR that goes through the gamma2gene. More...
 
real(srp), parameter, public commondata::smr_gerror_cv = 0.5_SRP
 Genotype to phenotype initialisation, Gaussian error parameter. Coefficient of variation for the SMR_LENGTH_INIT value. More...
 
real(srp), parameter, public commondata::smr_min = 0.01_SRP
 Minimum SMR value, anything lower is not allowed. More...
 
real(srp), parameter commondata::swimming_cost_exponent_laminar = 0.5_SRP
 Default swimming cost body mass exponent parameter for laminar flow. See doi:10.1242/jeb.01484 (https://dx.doi.org/10.1242/jeb.01484) and the_body::condition_cost_swimming_burst() for details. More...
 
real(srp), parameter commondata::swimming_cost_exponent_turbulent = 0.6_SRP
 Default swimming cost body mass exponent parameter for turbulent flow. See doi:10.1242/jeb.01484 (https://dx.doi.org/10.1242/jeb.01484) and the_body::condition_cost_swimming_burst() for details. More...
 
real(srp), parameter, public commondata::swimming_cost_factor_buoyancy_down = 0.01_SRP
 This parameter defines the cost of the buoyancy-based locomotion as a fraction of normal laminar flow propulsion for lowering downwards. More...
 
real(srp), parameter, public commondata::swimming_cost_factor_buoyancy_up = 0.1_SRP
 This parameter defines the cost of the buoyancy-based locomotion as a fraction of normal laminar flow propulsion for lowering downwards. More...
 
Parameters of the neurobiological architecture
integer, parameter, public commondata::food_select_items_index_partial = 20
 Sets the limit for partial indexing and ranking of food items in the visual range of the agents. More...
 
integer, parameter, public commondata::consp_select_items_index_partial = 20
 Sets the limit for partial indexing and ranking of conspecifics in the visual range of the agent. More...
 
integer, parameter, public commondata::pred_select_items_index_partial = 20
 Sets the limit for partial indexing and ranking of predators in the visual range of the agent. More...
 
real(srp), parameter, public commondata::individual_visual_contrast_default = 1.0_SRP
 Inherent contrast of the agent, It is used in determining the visual range of an agent in perception of conspecifics, and also for assessing the agent's detectability by predator. Default Contrast of food items is set separately. More...
 
integer, parameter, public commondata::history_size_perception = HISTORY_SIZE_SPATIAL
 Sets the size of the perception memory stack. More...
 
integer, parameter, public commondata::history_size_motivation = HISTORY_SIZE_SPATIAL
 Sets the size of the emotional state memory stack. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::light_hunger_genotype_neuronal = reshape ( [ NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for light perception effects on hunger that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::light_hunger_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for light perception effects on hunger. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::depth_hunger_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for depth perception effects on hunger that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::depth_hunger_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for depth perception effects on hunger. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::foodcount_hunger_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for food items count perception effects on hunger that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::foodcount_hunger_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for food items count perception effects on hunger. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::food_mem_hunger_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for food items count perception effects on hunger that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::food_mem_hunger_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for food items count perception effects on hunger. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::conspcount_hunger_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for conspecifics number perception effects on hunger that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::conspcount_hunger_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for conspecifics number count perception effects on hunger. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::pred_direct_hunger_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for direct predation perception effects on hunger that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::pred_direct_hunger_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for direct predation perception effects on hunger. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::pred_meancount_hunger_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for mean predator number perception effects on hunger that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::pred_meancount_hunger_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for mean predator number perception effects on hunger. More...
 
real(srp), parameter, public commondata::predation_risk_weight_immediate = 0.7
 The weight of the immediately seen predators over those in the perceptual memory stack. Those in the memory then have this weight in the predation risk estimate: 1-PREDATION_RISK_WEIGHT_IMMEDIATE. See the_neurobio::predation_risk_backend(). More...
 
integer, parameter, public commondata::predation_risk_weight_memory_window = nint(HISTORY_SIZE_PERCEPTION / 2.0)
 The length of the perceptual memory window that is taken into account and weighted against the currently seen number of predators when calculating the motivation value. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::stom_hunger_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for stomach perception effects on hunger that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::stom_hunger_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for stomach perception effects on hunger. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::bodymass_hunger_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for body mass perception effects on hunger that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::bodymass_hunger_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for body mass perception effects on hunger. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::energy_hunger_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for energy reserves perception effects on hunger that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::energy_hunger_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for energy reserves perception effects on hunger. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::age_hunger_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for age perception effects on hunger that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::age_hunger_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for age perception effects on hunger. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::reprfac_hunger_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for reproductive factor perception effects on hunger that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::reprfac_hunger_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for reproductive factor perception effects on hunger. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::light_actv_avoid_genotype_neuronal = reshape ( [ NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for light perception effects on fear state that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::light_actv_avoid_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for light perception effects on fear state. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::depth_actv_avoid_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for depth perception effects on active avoidance that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::depth_actv_avoid_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for depth perception effects on fear state. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::foodcount_actv_avoid_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for food items count perception effects on fear state that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::foodcount_actv_avoid_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for food items count perception effects on fear state. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::food_mem_actv_avoid_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for food items count perception effects on fear state that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::food_mem_actv_avoid_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for food items count perception effects on fear state. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::conspcount_actv_avoid_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for conspecifics number perception effects on fear state that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::conspcount_actv_avoid_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for conspecifics number count perception effects on fear state. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::pred_direct_actv_avoid_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for direct predation perception effects on fear state that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::pred_direct_actv_avoid_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for direct predation perception effects on fear state. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::pred_meancount_actv_avoid_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for mean predator number perception effects on fear state that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::pred_meancount_actv_avoid_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for mean predator number perception effects on fear state. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::stom_actv_avoid_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for stomach perception effects on active avoidance that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::stom_actv_avoid_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for stomach perception effects on fear state. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::bodymass_actv_avoid_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for body mass perception effects on active avoidance that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::bodymass_actv_avoid_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for body mass perception effects on fear state. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::energy_actv_avoid_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for energy reserves perception effects on fear state that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::energy_actv_avoid_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for energy reserves perception effects on fear state. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::age_actv_avoid_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for age perception effects on fear state that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::age_actv_avoid_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for age perception effects on fear state. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::reprfac_actv_avoid_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for reproductive factor perception effects on fear state that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::reprfac_actv_avoid_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for reproductive factor perception effects on fear state. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::light_reproduce_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for light perception effects on reproduction that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::light_reproduce_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for light perception effects on reproduction. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::depth_reproduce_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for depth perception effects on reproduction that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::depth_reproduce_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for depth perception effects on reproduction. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::foodcount_reproduce_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for food items count perception effects on reproduction that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::foodcount_reproduce_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for food items count perception effects on reproduction. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::food_mem_reproduce_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for food items count perception effects on reproduction that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::food_mem_reproduce_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for food items count perception effects on reproduction. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::conspcount_reproduce_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for conspecifics number perception effects on reproduction that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::conspcount_reproduce_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for conspecifics number count perception effects on reproduction. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::pred_direct_reproduce_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for direct predation perception effects on reproduction that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::pred_direct_reproduce_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for direct predation perception effects on reproduction. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::pred_meancount_reproduce_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for mean predator number perception effects on reproduction that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::pred_meancount_reproduce_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for mean predator number perception effects on reproduction. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::stom_reproduce_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for stomach perception effects on reproduction that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::stom_reproduce_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for stomach perception effects on reproduction. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::bodymass_reproduce_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for body mass perception effects on reproduction that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::bodymass_reproduce_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for body mass perception effects on reproduction. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::energy_reproduce_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for energy reserves perception effects on reproduction that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::energy_reproduce_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for energy reserves perception effects on reproduction. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::age_reproduce_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for age perception effects on reproduction that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::age_reproduce_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for age perception effects on reproduction. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::reprfac_reproduce_genotype_neuronal = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,YES ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for age perception effects on reproduction that goes via gamma2gene perception to neuronal response. More...
 
real(srp), parameter, public commondata::reprfac_reproduce_genotype_neuronal_gerror_cv = PERCEPT_ERROR_CV_DEF
 Gaussian perception error parameter (cv) for age perception effects on reproduction. More...
 
logical, parameter, public commondata::modulation_appraisal_disable_all = .FALSE.
 Disable developmental or genetic modulation of the APPRAISAL completely. If set to TRUE, no modulation is performed and the final motivation values are just equal to the primary modulation values in APPRAISAL. More...
 
real(srp), parameter, public commondata::reprod_modulation_devel_agestart = LIFESPAN / 2.0_SRP
 Developmental modulation of reproductive motivation. This parameter defines the starting age (time steps) at which reproductive motivation can rise above zero (at all previous ages weight=0.0). See the_neurobio::appraisal_motivation_modulation_non_genetic(). More...
 
real(srp), parameter, public commondata::reprod_modulation_devel_agefull = REPROD_MODULATION_DEVEL_AGESTART + REPROD_MODULATION_DEVEL_AGESTART * 2.0_SRP / 3.0_SRP
 Developmental modulation of reproductive motivation. This parameter defines the age (time steps) at which reproductive motivation is weighted fully (weight = 1.0). See the_neurobio::appraisal_motivation_modulation_non_genetic(). More...
 
real(srp), dimension(*), parameter commondata::reprod_modulation_devel_abscissa = [ REPROD_MODULATION_DEVEL_AGESTART, REPROD_MODULATION_DEVEL_AGESTART + ( REPROD_MODULATION_DEVEL_AGEFULL - REPROD_MODULATION_DEVEL_AGESTART ) / 3.0_SRP, REPROD_MODULATION_DEVEL_AGEFULL ]
 Developmental modulation of reproductive motivation. This is the interpolation grid abscissa defining at which age reproduction motivation can have non-zero values (reproduction is possible). It defines the weighting factor applied to reproductive motivation. More...
 
real(srp), parameter, public commondata::reprod_modulation_devel_w2 = 0.1_SRP
 Developmental modulation of reproductive motivation. This parameter sets the interpolation array weight that defines how fast the reproduction motivation the_neurobio::state_reproduce is allowed to raise when the age of the agent exceeds the reproductive age. For details see the_neurobio::appraisal_motivation_modulation_non_genetic(). More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::sex_male_modulation_reproduce_genotype = reshape ( [ NO, NO, NO, NO, NO, NO, YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for sex modulation coefficient affecting reproduction motivation state in males. More...
 
real(srp), parameter, public commondata::sex_male_modulation_reproduce_gerror_cv = 0.1_SRP
 Gaussian error parameter (cv) for the sex modulation coefficient affecting reproduction motivation state in males. More...
 
logical, dimension(max_nalleles, n_chromosomes), parameter, public commondata::sex_female_modulation_reproduce_genotype = reshape ( [ NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, YES, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO ], [MAX_NALLELES,N_CHROMOSOMES], [NO], [2,1] )
 The genotype structure for sex modulation coefficient affecting reproduction motivation state in females. More...
 
real(srp), parameter, public commondata::sex_female_modulation_reproduce_gerror_cv = 0.1_SRP
 Gaussian error parameter (cv) for the sex modulation coefficient affecting reproduction motivation state in females. More...
 
real(srp), parameter, public commondata::attention_switch_hunger_light = 0.0_SRP
 Baseline attention switches $ \Psi _{i,j} $ control which perception components (i) can affect each of the motivational state (j). They should be defined for all combinations between the perception components (light, depth... food... predators... etc) and the motivational states. See Cognitive architecture. More...
 
real(srp), parameter, public commondata::attention_switch_hunger_depth = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_hunger_food_dir = 1.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_hunger_food_mem = 1.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_hunger_conspec = 1.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_hunger_pred_dir = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_hunger_predator = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_hunger_stomach = 1.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_hunger_bodymass = 1.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_hunger_energy = 1.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_hunger_age = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_hunger_reprfac = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_avoid_act_light = 1.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_avoid_act_depth = 1.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_avoid_act_food_dir = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_avoid_act_food_mem = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_avoid_act_conspec = 1.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_avoid_act_pred_dir = 1.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_avoid_act_predator = 1.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_avoid_act_stomach = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_avoid_act_bodymass = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_avoid_act_energy = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_avoid_act_age = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_avoid_act_reprfac = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_reproduce_light = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_reproduce_depth = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_reproduce_food_dir = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_reproduce_food_mem = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_reproduce_conspec = 1.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_reproduce_pred_dir = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_reproduce_predator = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_reproduce_stomach = 0.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_reproduce_bodymass = 1.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_reproduce_energy = 1.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_reproduce_age = 1.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), parameter, public commondata::attention_switch_reproduce_reprfac = 1.0_SRP
 Baseline attention switch, see commondata::attention_switch_hunger_light. More...
 
real(srp), dimension(*), parameter, public commondata::attention_modulation_curve_abscissa =[0.0_SRP, 0.3_SRP, 0.5_SRP, 1.0_SRP]
 The array defining the abscissa (X) of the nonparametric function that defines the attention modulation curve by the current Global Organismic State (GOS). More...
 
real(srp), dimension(*), parameter, public commondata::attention_modulation_curve_ordinate =[1.0_SRP, 0.98_SRP, 0.9_SRP, 0.0_SRP]
 The array defining the ordinate (Y) of the nonparametric function that defines the attention modulation curve by the current Global Organismic State (GOS). More...
 
real(srp), dimension(*), parameter, public commondata::motivation_compet_threshold_curve_abscissa = [0.0_SRP, 0.2_SRP, 0.60_SRP, 0.80_SRP, 0.90_SRP, 1.0_SRP, 1.1_SRP]
 The array defining the abscissa (X) of the nonparametric function curve that defines the threshold for motivation competition in GOS. More...
 
real(srp), dimension(*), parameter, public commondata::motivation_compet_threshold_curve_ordinate = [1.0_SRP, 0.3_SRP, 0.04_SRP, 0.01_SRP, 0.001_SRP, 0.0_SRP, 0.0_SRP]
 The array defining the ordinate (Y) of the nonparametric function curve that defines the threshold for motivation competition in GOS. More...
 
real(srp), parameter, public commondata::arousal_gos_dissipation_factor = 0.5_SRP
 Spontaneous arousal dissipation level when a simple fixed dissipation factor pattern is used. At each step, gos_arousal is reduced by a constant factor, AROUSAL_GOS_DISSIPATION_FACTOR` (e.g. reduced by 0.5) independently on the current GOS time step. More...
 
real(srp), dimension(*), parameter, public commondata::arousal_gos_dissipation_nonpar_abscissa = [ 1.0, 2.00, 5.00, 10.0, 15.0, 18.0, 20.0 ]
 This is the array defining the abscissa (X) of the nonparametric spontaneous arousal dissipation factor function involving polynomial (or linear) interpolation is used. More...
 
real(srp), dimension(*), parameter, public commondata::arousal_gos_dissipation_nonpar_ordinate = [ 1.0, 0.98, 0.80, 0.40, 0.22, 0.18, 0.17 ]
 This is the array defining the ordinate (Y) of the nonparametric spontaneous arousal dissipation factor function involving polynomial (or linear) interpolation is used. More...
 
real(srp), public commondata::global_rescale_maximum_motivation
 Global maximum sensory information that is updated for the whole population of agents. More...
 
integer, parameter, public commondata::history_size_behaviours = HISTORY_SIZE_SPATIAL
 The size of the behaviour labels history stack, i.e. for how many time steps should the stack remember record the behaviour labels. More...
 
real(srp), parameter, public commondata::probability_reproduction_base_factor = 0.90
 Default weighting factor for the baseline probability of successful reproduction $ \varphi $. See implementation details for the function the_neurobio::reproduce_do_probability_reproduction_calc(). More...
 
real(srp), dimension(*), parameter, public commondata::probability_reproduction_delta_mass_abscissa = [0.5_SRP, 1.0_SRP, 2.0_SRP]
 Interpolation grid abscissa for the body mass ratio factor that scales the probability of reproduction. For details see the_neurobio::reproduce_do_probability_reproduction_calc() procedure. Commands (template) to produce interpolation plots: More...
 
real(srp), dimension(*), parameter, public commondata::probability_reproduction_delta_mass_ordinate = [0.0_SRP, 1.0_SRP, 1.8_SRP]
 Interpolation grid ordinate for the body mass ratio factor that scales the probability of reproduction. For details see the_neurobio::reproduce_do_probability_reproduction_calc() procedure. Commands (template) to produce interpolation plots: More...
 
real(srp), parameter, public commondata::sex_steroids_reproduction_threshold = 1.3_SRP
 This parameter defines the threshold of the current gonadal steroids level that should exceed the baseline value determined by the genome, for reproduction to be possible. More...
 
real(srp), parameter, public commondata::walk_random_distance_default_factor = 10.0_SRP
 The weighting factor used in calculation of the default random walk distance, in terms of the agent's body length. More...
 
real(srp), parameter, public commondata::walk_random_distance_stochastic_cv = 0.5_SRP
 The coefficient of variation of the distance for stochastic Gaussian random walk (distance is in terms of the agent's body length). Note that for deterministic walk, cv is zero. More...
 
real(srp), parameter, public commondata::walk_random_food_gain_hope = 4.0_SRP
 The maximum walk distance, in units of the average distance to food items in the current perception object, when the expected food gain is calculated on the bases of the current food availability, not using the the_behaviour::hope() function mechanism. If the average walk distance exceeds this value, the expectancy is based on the the_behaviour::hope() function. More...
 
real(srp), parameter, public commondata::walk_random_food_gain_hope_agentl = 100.0_SRP
 The maximum walk distance, in units of the agent body length, when the expected food gain is calculated on the bases of the current food availability, not using the the_behaviour::hope() function mechanism. If the average walk distance exceeds this value, the expectancy is based on the the_behaviour::hope() function. More...
 
real(srp), parameter, public commondata::walk_random_pred_risk_hope_agentl = 150.0_SRP
 The maximum walk distance, in units of the agent body length, when the expected predation risk is calculated on the basis of the current perception value, not using the the_behaviour::hope() function mechanism. If the average walk distance exceeds this value, the risk expectancy is based on the the_behaviour::hope() function. More...
 
real(srp), parameter, public commondata::walk_random_vertical_shift_ratio = 0.5_SRP
 The ratio of the vertical to main horizontal shift parameters of the agent's Gaussian random walk. Random walk is done in the "2.5D" mode (the_environment::spatial_moving::rwalk25d()), i.e. with separate parameters for the main horizontal shift and the vertical depth shift. This is done to avoid a potentially too large vertical displacement of the agent during the movement. Thus, the vertical shift distance should normally be smaller than the horizontal shift. The difference between the main horizontal and (the smaller) vertical shifts is defined by this parameter. For example, if it is equal to 0.5, then the vertical depth shift is 0.5 of the main horizontal shift. See the_behaviour::walk_random_do_execute() for more details. More...
 
real(srp), parameter, public commondata::walk_random_vertical_shift_cv_ratio = 1.0_SRP
 The ratio of the vertical to the main horizontal coefficients of variation for the vertical depth distance in the stochastic Gaussian random walk of the agent. Should normally be equal to the main default value set by commondata::walk_random_distance_stochastic_cv. That is 1.0. More...
 
real(srp), dimension(*), parameter, public commondata::walk_random_food_hope_abscissa = [ 0.0_SRP, 1.0_SRP, 3.5_SRP ]
 This parameter defines the hope function for calculating the food perception expectancy in the the_behaviour::walk_random behaviour. This is the abscissa for the hope function grid array. Plotting: htintrpl.exe [0 1 3.5 ] [2, 1, 0]. See the_behaviour::walk_random_do_this(). More...
 
real(srp), dimension(*), parameter, public commondata::walk_random_food_hope_ordinate = [ 2.0_SRP, 1.0_SRP, 0.0_SRP ]
 This parameter defines the hope function for calculating the food perception expectancy in the the_behaviour::walk_random behaviour. This is the ordinate for the hope function grid array. Plotting: htintrpl.exe [0 1 3.5 ] [2, 1, 0]. See the_behaviour::walk_random_do_this(). More...
 
real(srp), parameter, public commondata::approach_offset_default = TOLERANCE_HIGH_DEF_SRP
 Default offset for approach, offset is the difference between the approaching agent and the target object. More...
 
real(srp), parameter, public commondata::approach_conspecfic_dilute_general_risk = 0.5_SRP
 Multiplication factor for the general risk of predation used when the agent evaluates the approach to a target conspecific. More...
 
real(srp), parameter, public commondata::approach_conspecfic_dilute_adjust_pair_behind = 0.5_SRP
 Multiplication factor for subjective assessment of the direct risk of predation when the actor agent moves behind the target conspecific, i.e. when the distance between the agent and predator is going to become longer than the distance between the target conspecific and the agent. See the_behaviour::approach_conspecifics_do_this() for details. More...
 
real(srp), dimension(*), parameter, public commondata::approach_food_gain_compet_factor_abscissa = [ 0.00_SRP, 0.10_SRP, 1.00_SRP, 1.50_SRP ]
 The grid abscissa defining the nonparametric relationship that determines the expected food gain for the "approach conspecifics" behaviour (the_behaviour::approach_conspec class). The function is a weighting factor depending on the ratio of the agent body mass to the target conspecific body mass, for the baseline expected food gain. More...
 
real(srp), dimension(*), parameter, public commondata::approach_food_gain_compet_factor_ordinate = [ 0.00_SRP, 0.01_SRP, 0.50_SRP, 1.00_SRP ]
 The grid ordinate defining the nonparametric relationship that determines the expected food gain for the "approach conspecifics" behaviour (the_behaviour::approach_conspec class). The function is a weighting factor depending on the ratio of the agent body mass to the target conspecific body mass, for the baseline expected food gain. More...
 
real(srp), parameter, public commondata::dist_expect_food_uncertain_fact = 0.7_SRP
 The weighting factor for the distance to the expected food item if the actual distance is uncertain (e.g. no food items currently in perception). See the_behaviour::walk_random_motivations_expect(). More...
 
real(srp), parameter, public commondata::history_perception_window_pred = 0.3_SRP
 The size of the memory window that is used in the assessment of predation risk, as a portion of the commondata::history_size_perception. See the_behaviour::walk_random_do_this() and the_behaviour::walk_random_motivations_expect(). More...
 
real(srp), parameter, public commondata::history_perception_window_food = 0.3_SRP
 The size of the memory window that is used in the assessment of food gain, as a portion of the commondata::history_size_perception. See the_behaviour::walk_random_do_this() and the_behaviour::walk_random_motivations_expect(). More...
 
real(srp), parameter, public commondata::escape_dart_distance_default_factor = 1.5_SRP
 The weighting factor used in calculation of the default escape distance. The escape distance is equal to the visibility range of the predator multiplied by this factor. Therefore, it should normally exceed 1.0. Otherwise, the escaping object is still within the visibility range of the predator after the escape. See the_behaviour::escape_dart_do_this() for more details. More...
 
real(srp), parameter, public commondata::escape_dart_distance_default_stoch_cv = 0.5_SRP
 For stochastic escape, this parameter determines the coefficient of variation of the escape walk. See the_behaviour::escape_dart_do_this() for more details. More...
 
real(srp), parameter, public commondata::up_down_walk_step_stdlength_factor = 4.0_SRP
 The default size of the up and down walks performed by the GO_DOWN_DEPTH and GO_UP_DEPTH, see the_behaviour::go_down_depth and the_behaviour::go_up_depth classes as well as the_behaviour::go_down_do_this() and the_behaviour::go_up_do_this() methods. More...
 
real(srp), parameter, public commondata::migrate_dist_max_step = 800.0_SRP
 The maximum distance (in units of the agent body length) a migrating agent can pass for a single time step of the model. This is basically limited by (an implicit) maximum speed of the agent, in terms of its body length. This parameter sets the limit on the length of a single migration bout. More...
 
real(srp), parameter, public commondata::migrate_random_max_dist_target = 10.0_SRP
 Default maximum distance towards the target environment (in units of the agent's body size) when the agent could emigrate into this target environment. See the_behaviour::behaviour_do_migrate_random() for details. More...
 
real(srp), parameter, public commondata::migrate_dist_penetrate_offset = 1.0_SRP
 The offset, in terms of the body length of the actor agent, for initial penetrating into the target environment when the agent is migrating into this environment. See the_environment::migrate_do_this(). More...
 
real(srp), parameter, public commondata::migrate_food_gain_maximum_hope = 2.0_SRP
 This parameter defines the hope function for calculating the food gain expectancy in the migration behaviour. This is the maximum value of the hope function that is achieved at zero ratio of the old to new food gain memory values. Plotting: htintrpl.exe [0 1 3.5] [2 1 0]. See the_behaviour::migrate_do_this(). More...
 
real(srp), parameter, public commondata::migrate_food_gain_ratio_zero_hope = 3.5_SRP
 This parameter defines the hope function for calculating the food gain expectancy in the migration behaviour. This is the maximum ratio of the old to new food gain memory values that leads to virtually zero value of the hope function. Plotting: htintrpl.exe [0 1 3.5] [2 1 0]. See the_behaviour::migrate_do_this(). More...
 
real(srp), parameter, public commondata::migrate_predator_maximum_hope = 2.0_SRP
 This parameter defines the hope function for calculating the general predation risk expectancy in the migration behaviour. This is the maximum value of the hope function that is achieved at zero ratio of the old to new predation values in the memory stack. Plotting: htintrpl.exe [0 1 3.5] [2 1 0]. See the_behaviour::migrate_do_this(). More...
 
real(srp), parameter, public commondata::migrate_predator_zero_hope = 3.5_SRP
 This parameter defines the hope function for calculating the general predation risk expectancy in the migration behaviour. This is the maximum ratio of the old to new predation values in the memory stack that leads to virtually zero value of the hope function. Plotting: htintrpl.exe [0 1 3.5] [2 1 0]. See the_behaviour::migrate_do_this(). More...
 
real(srp), dimension(*), parameter, public commondata::behav_walk_step_stdlen_static = [ 1.0_SRP, 10.0_SRP, 25.0_SRP, 50.0_SRP, 100.0_SRP ]
 This parameter array defines the repertoire of predetermined static walk step sizes, in units of the agent's body length, for the the_behaviour::walk_random behavioural unit as executed in the the_behaviour::behaviour::walk_random class level. See the_behaviour::behaviour::select() method for details. More...
 
real(srp), dimension(*), parameter, public commondata::behav_go_up_down_step_stdlen_static = [ 10.0_SRP, 20.0_SRP, 50.0_SRP, 75.0_SRP, 100.0_SRP ]
 This parameter array defines the step sizes, in units of the agent's body length, for the the_behaviour::go_down_depth and the_behaviour::go_up_depth behavioural unit as executed in the the_behaviour::behaviour::depth_down and the_behaviour::behaviour::depth_up class level(s). See the_behaviour::behaviour::select() method for details. More...
 
Parameters of the Genetic Algorithm
real(srp), parameter, public commondata::ga_reproduce_pr = 0.05_SRP
 Percentage of the best reproducing agents in the pre-evolution phase. More...
 
integer, parameter, public commondata::ga_reproduce_n = int(POPSIZE * GA_REPRODUCE_PR)
 Upper limit on the number of reproducing individuals in the fixed-fitness pre-evolution phase. More...
 
integer, parameter, public commondata::ga_fitness_dead = 400000000
 Fitness value ascribed to dead agent in pre-evol. See the_individual::individual_agent::fitness_calc(). Also note that huge(integer)) = 2147483647. More...
 
integer, parameter, public commondata::ga_fitness_select = 900
 Fitness threshold for the inclusion of the agent into the reproducing elite group. More...
 
real(srp), parameter, public commondata::ga_reproduce_min_prop = 0.05_SRP
 Minimum proportion of reproducing agents, but note that the number of number reproducers cannot be smaller than the absolute minimum commondata::ga_reproduce_n_min. See the_population::population::ga_reproduce_max(). More...
 
integer, parameter, public commondata::ga_reproduce_n_min = 20
 Absolute minimum number of reproducing agents in the adaptive GA procedure. See the_population::population::ga_reproduce_max(). More...
 

Detailed Description

This module defines common global parameters and objects for the AHA Model. It also contains a general overview of the AHA Model in Doxygen notation.

Author
Sergey Budaev serge.nosp@m.y.bu.nosp@m.daev@.nosp@m.uib..nosp@m.no
Jarl Giske jarl..nosp@m.gisk.nosp@m.e@uib.nosp@m..no
Date
2016-2017

Definition in file m_common.f90.