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

This file contaions external procedure(s) for testing and debugging. By the separate nature, all the procedures from this file are external. More...

Go to the source code of this file.

Functions/Subroutines

subroutine life_cycles_debug_test
 Debugging and testing lifecycle, random wakls etc. Has been initially implemented as DEBUG_03: block More...
 

Detailed Description

This file contaions external procedure(s) for testing and debugging. By the separate nature, all the procedures from this file are external.

Warning
They should not be used or called from the normal model code, nor referred in the main Makefile.
Note
By the temporary and ephemeral nature of the debugging code, the coding style requirements are greatly relaxed here.
Author
Sergey Budaev serge.nosp@m.y.bu.nosp@m.daev@.nosp@m.uib..nosp@m.no
Date
2016-2017

Definition in file p_debug.f90.

Function/Subroutine Documentation

◆ life_cycles_debug_test()

subroutine life_cycles_debug_test

Debugging and testing lifecycle, random wakls etc. Has been initially implemented as DEBUG_03: block

Warning
Code formatting style is not necessarily adhered to here.

PROCNAME is the procedure name for logging and debugging

Testing and debugging: description

Testing how the procedure for joining several food resources works. Here it just joins the food resources in the safe and dangerous habitats. Because the agents are limited to stay in the safe, this just creates an extra processing overhead.

Initialise stopwatch for timing each walk.

add perceptions to the memory

Primary motivations are logged in the debug mode.

@important Save the individual data for the whole parent population, generation one, to a csv file.

Save individual data

Initialise stopwatch for timing each walk.

Update the i-th walk distance/way for distribution plot.

Introduce the cost of swimming here:

If no food objects were encountered we still grow with zero food gain.

add perceptions to the memory

Subtract the cost of living

Update increments to sex steroids.

Saving histograms of way_passed, the distance of each walk.

Subtract the cost of living

Save the individual data for the whole test parent population, generation one, to a csv file. This is after the walk states of the agents.

Save individual data

Definition at line 20 of file p_debug.f90.

Here is the call graph for this function: