NAME

       FMWRIT_LB



SYNOPSIS

       USE MODI_FMWRIT_ll

       CALL  FMWRIT_LB(  HFILEM,  HRECFM,  HFIPRI,  HLBTYPE, PLB,
       KRIM, KL3D, KGRID, KLENCH, HCOMMENT, KRESP)



ARGUMENTS

       IN

              CHARACTER*                ::    HFILEM
              CHARACTER*                ::    HRECFM
              CHARACTER*                ::    HFIPRI
              CHARACTER*                ::    HLBTYPE
              REAL, DIMENSION(:,:,:)    ::    PLB
              INTEGER                   ::    KRIM
              INTEGER                   ::    KL3D
              INTEGER                   ::    KGRID
              INTEGER                   ::    KLENCH
              CHARACTER*                ::    HCOMMENT


       OUT

              INTEGER    ::    KRESP




DESCRIPTION

       The FMWRIT_LB routine writes a LB (Lateral Boundary) field
       with HRECFM name to the binary LFI part of a FM-File whose
       basename is HFILEM.  The data associated with the LB field
       article  are  the  C-grid  indicator KGRID and the comment
       string HCOMMENT (with a KLENCH size). All processes of the
       parallel  MsoNH application must call this routine. Three
       arguments define the LB field to write :


       *      HLBTYPE   that   may   take   the   string   values
              LBX,LBY,LBXU  and  LBYV.  LBX  and LBXU
              stand for LB areas that spread along the x axe  for
              mass  and  U  grid  point  respectively.  LBY and
              LBYV stand for LB areas that spread along  the  y
              axe for mass and V grid point respectively.

       *      KL3D  is  the  size  of the LB array in the FM-file
              (size along the y axe for a LBX or LBXU area or
              size  along the x axe for a LBY or LBYV area) .

       *      KRIM is the thickness  of  the  LB  area  and  must
              verify : KL3D = 2*(KRIM+1).



RETURN VALUES

       Upon  successful  completion,  the informations associated
       with the HRECFM article are written to  the  FM  file  and
       KRESP  is  set  to 0. Otherwise KRESP is set to a non zero
       value and an error message is printed in the HFIPRI  file.



SEE ALSO

       FMOPEN_ll(3f), FMWRIT(3f), FMWRITBOX(3f)











































Man(1) output converted with man2html