NAME

       GATHERALL_FIELD_ll  -  build  the global MésoNH field from
       all local MésoNH fields.



SYNOPSIS

       USE MODI_GATHER_ll

       CALL GATHERALL_FIELD_ll( HDIR, PSEND, PRECV, KRESP)



ARGUMENTS

       IN

              CHARACTER*    ::    HDIR
              GENERIC       ::    PSEND


       OUT

              GENERIC    ::    PRECV
              INTEGER    ::    KRESP




DESCRIPTION

       With the GATHERALL_FIELD_ll routine, every  process  sends
       the  contents of its local MésoNH field PSEND and receives
       the global MésoNH field in the PRECV buffer. It is  up  to
       the  user  to allocate the PRECV buffer. The HDIR argument
       must be filled with one of the three following strings :

       ´XY´   if the PSEND and  PRECV  arrays  are  of  the  form
              (x,y,...),where  (x,y,...)     denotes  an array of
              rank >= 2 with the two first dimensions that spread
              along the X and Y axes of the MésoNH domain,

       ´XX´   if  the  PSEND  and  PRECV  arrays  are of the form
              (x,...), where (x,...)denotes an array of rank >= 1
              with  the  first dimension that spreads along the X
              axe of the MésoNH domain,

       ´YY´   if the FIELD and  PRECV  arrays  are  of  the  form
              (y,...),where  (y,...)denotes an array of rank >= 1
              with the first dimension that spreads along  the  Y
              axe of the MésoNH domain,

       GATHERALL_FIELD_ll  is  a  generic routine that can handle
       different kinds of data types buffers : integer and  real.
       The  following  types  are allowed for the PSEND and PRECV
       arguments :



       REAL : 1D, 2D or 3D arrays

       INTEGER : 1D or 2D arrays




RETURN VALUES

       Upon successful completion, GATHERALL_FIELD_ll returns the
       global  MésoNH  field  in PRECV.  The return code KRESP is
       then set to 0. Otherwise KRESP is set to a non zero value.



SEE ALSO

       FMREAD(3f), FMWRIT(3f)









































Man(1) output converted with man2html