The AHA Model  Revision: 12809
Reference implementation 04 (HEDG02_04)
commondata::add_to_history Interface Reference

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...

Collaboration diagram for commondata::add_to_history:

Public Member Functions

pure subroutine 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 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 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...
 

Detailed Description

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].

Definition at line 5292 of file m_common.f90.

Member Function/Subroutine Documentation

◆ add_to_history_i4()

pure subroutine commondata::add_to_history::add_to_history_i4 ( integer, dimension(:), intent(inout)  history_array,
integer, intent(in)  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].

Parameters
history_arrayInteger array that keeps the history.
add_thiswe add this element to the end of the history array.
Note
This is the integer type version.

Definition at line 7299 of file m_common.f90.

◆ add_to_history_r()

pure subroutine commondata::add_to_history::add_to_history_r ( real(srp), dimension(:), intent(inout)  history_array,
real(srp), intent(in)  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).

Parameters
history_arrayInteger array that keeps the history.
add_thiswe add this element to the end of the history array.
Note
This is the real type version.

Definition at line 7324 of file m_common.f90.

◆ add_to_history_char()

pure subroutine commondata::add_to_history::add_to_history_char ( character(*), dimension(:), intent(inout)  history_array,
character(*), intent(in)  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.

Parameters
history_arrayInteger array that keeps the history.
add_thiswe add this element to the end of the history array.
Note
This is the character string type version

Definition at line 7348 of file m_common.f90.


The documentation for this interface was generated from the following file: