Changeset 3201
- Timestamp:
- Aug 20, 2018 11:45:01 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/multi_agent_system_mod.f90
r3198 r3201 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Bugfix, missing pre-processor directive. Set default 28 ! read_agents_from_restartfile = .FALSE. restarts not yet implemented. 29 ! 30 ! 3198 2018-08-15 09:23:10Z sward 27 31 ! Now using time_since_reference_point; moved multi_agent_system_start and 28 32 ! multi_agent_system_end to control_parameters; renamed NAMELIST agents_par to … … 121 125 LOGICAL :: agents_active = .FALSE. !< flag for agent system 122 126 LOGICAL :: random_start_position_agents = .TRUE. !< namelist parameter (see documentation) 123 LOGICAL :: read_agents_from_restartfile = . TRUE. !< namelist parameter (see documentation)127 LOGICAL :: read_agents_from_restartfile = .FALSE. !< namelist parameter (see documentation) 124 128 LOGICAL :: agent_own_timestep = .FALSE. !< namelist parameter (see documentation) 125 129 … … 1165 1169 ENDDO 1166 1170 ENDIF 1171 #if defined( __parallel ) 1167 1172 ! 1168 1173 !-- Gather all agents on PE0 for output … … 1214 1219 !-- tag 0 1215 1220 CALL MPI_BARRIER( comm2d, ierr ) 1221 #endif 1216 1222 IF ( myid == 0 ) THEN 1223 #if defined( __parallel ) 1217 1224 agents=>out_agents 1225 #else 1226 agents=>trf_agents 1227 #endif 1218 1228 1219 1229 #if defined( __netcdf ) … … 2159 2169 2160 2170 ! 2161 !-- Accumulate the number of agents transferred between the subdomains 2162 #if defined( __parallel ) 2171 !-- Accumulate the number of agents transferred between the subdomains) 2163 2172 CALL mas_eh_ghost_exchange 2164 #endif2165 2173 2166 2174 CALL cpu_log( log_point_s(18), 'mas_eh_exchange_horiz', 'stop' ) … … 2178 2186 2179 2187 IMPLICIT NONE 2180 2188 2189 #if defined( __parallel ) 2190 2181 2191 INTEGER(iwp) :: i !< grid index (x) of agent positition 2182 2192 INTEGER(iwp) :: ip !< index variable along x … … 2462 2472 2463 2473 ENDIF 2474 2475 #endif 2464 2476 2465 2477 END SUBROUTINE mas_eh_ghost_exchange
Note: See TracChangeset
for help on using the changeset viewer.