]> git.uio.no Git - u/mrichter/AliRoot.git/blame - GEANT321/gparal/gpdynamic.F
Bugfix in AliPoints2Memory
[u/mrichter/AliRoot.git] / GEANT321 / gparal / gpdynamic.F
CommitLineData
fe4da5cc 1*CMZ : 11/11/94 14.40.52 by John Apostolakis CERN GP-MIMD 2
2*-- Author : John Apostolakis CERN GP-MIMD 2 13/07/94
3C------------------------------------------------------------------------
4C gpdynamic
5C Function: informs parallel Geant that events will be
6C dynamically distributed between nodes, ie
7C each "worker" node will request (the data of) an event
8C from a "master" or "leader".
9C
10C called by: <USER>, (if CERNLIB_PARA switch is used)
11C------------------------------------------------------------------------
12#if defined(CERNLIB_PARA)
13 subroutine gpdynamic
14 implicit none
15#include "geant321/multiprox.inc"
16
17c
18c This routine overrides the default (set in gpinit)
19c of a static decomposition of events , with which
20c each processor would get 1/(number of processors) of the share
21c of events.
22c It should be used if an input file exists or the time per event
23c has a large standard deviation, the events can be dynamically assigned.
24c You will need to look at the routines gukine and muxread
25c in gexam3 for how to distribute events.
26
27c
28c The following initialises the "dynamic" configuration,
29c in which there is no "master" or "leader".
30c
31c -- Id of task expected to be a "master"
32 npleader = 0
33c -- Id of task expected to be 1st worker
34c (representative for printout ...)
35 nfirstworker= 1
36
37 return
38 end
62be6b28 39#else
40 SUBROUTINE GPDYNAMIC_DUMMY
41 END
fe4da5cc 42#endif