Changes between Version 4 and Version 5 of doc/tec/mas/implementation


Ignore:
Timestamp:
Nov 19, 2018 2:35:32 PM (6 years ago)
Author:
sward
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/tec/mas/implementation

    v4 v5  
    55[[NoteBox(note,This page is part of the **Multi Agent System** (MAS) documentation. \\ It contains a description of the technical implementation of the Multi Agent System (MAS). \\ For an overview of all MAS-related pages\, see the [wiki:doc/tec/mas MAS main page].)]]
    66
    7 This section will give a brief summary of the agent code structure. This structure is largely based on the structure of the [wiki:doc/tec/particle Lagrangian Particle Model].
     7This section will give a brief summary of the agent code structure. This structure is largely based on the structure of the [wiki:doc/tec/particle Lagrangian Particle Model.\\
     8The entire MAS is modularized and can be found in the file {{{SOURCE/multi_agent_system_mod.f90}}} ([browser:palm/trunk/SOURCE/multi_agent_system_mod.f90 here]).
    89
    910== Storage of agent data ==
     
    4849TYPE agent_grid_type
    4950
    50    TYPE(agent_type), DIMENSION(:),       &
    51       ALLOCATABLE ::  agents
     51   TYPE(agent_type), DIMENSION(:), ALLOCATABLE ::  agents
    5252
    5353END TYPE agent_grid_type
     
    5858#!Latex
    5959\begin{verbatim}
    60 TYPE(agent_grid_type), DIMENSION(:,:), &
    61    ALLOCATABLE ::  agent_grid
     60TYPE(agent_grid_type), DIMENSION(:,:), ALLOCATABLE ::  agent_grid
    6261\end{verbatim}
    6362}}}
     
    7069\end{verbatim}
    7170}}}
    72 Here, '''''n_par''''' is the number of agents located in the grid volume defined by the indices '''''j''''', and '''''i'''''. As an agent moves from one grid volume to another, its data has to be copied from the 1-D array of the previous grid volume to the 1-D array of the new volume, and finally deleted from the previous one. \\\\
     71Here, **//n_par//** is the number of agents located in the grid volume defined by the indices **//j//** and **//i//** As an agent moves from one grid volume to another, its data has to be copied from the 1-D array of the previous grid volume to the 1-D array of the new volume, and finally deleted from the previous one. \\\\
    7372
    7473