My Project
genmap_obc.f90
Go to the documentation of this file.
1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 !/===========================================================================/
13 ! Copyright (c) 2007, The University of Massachusetts Dartmouth
14 ! Produced at the School of Marine Science & Technology
15 ! Marine Ecosystem Dynamics Modeling group
16 ! All rights reserved.
17 !
18 ! FVCOM has been developed by the joint UMASSD-WHOI research team. For
19 ! details of authorship and attribution of credit please see the FVCOM
20 ! technical manual or contact the MEDM group.
21 !
22 !
23 ! This file is part of FVCOM. For details, see http://fvcom.smast.umassd.edu
24 ! The full copyright notice is contained in the file COPYRIGHT located in the
25 ! root directory of the FVCOM code. This original header must be maintained
26 ! in all distributed versions.
27 !
28 ! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29 ! AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
30 ! THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
31 ! PURPOSE ARE DISCLAIMED.
32 !
33 !/---------------------------------------------------------------------------/
34 ! CVS VERSION INFORMATION
35 ! $Id$
36 ! $Name$
37 ! $Revision$
38 !/===========================================================================/
39 
40 !==============================================================================|
41 SUBROUTINE genmap_obc
42 !==============================================================================|
43 ! OBC Node Number
44 ! TS OBC Type
45 ! OBC Node list and types
46 !==============================================================================|
47  USE mod_obcs
48  USE bcs
49  USE mod_par
50  USE lims
51  USE control
52  IMPLICIT NONE
53  integer :: SENDER,RECVER, ierr, I, NCNT, NSZE, I1
54 
55  INTEGER, POINTER :: TEMP1(:),TEMP2(:)
56  INTEGER, POINTER :: TEMP3(:),TEMP4(:)
57 
58  if (dbg_set(dbg_sbr)) &
59  & write(ipt,*) "START: SETUP_OBCMAP"
60 
61  IF(serial) THEN
62  iobcn = iobcn_gl
63 
64  ALLOCATE(i_obc_n(iobcn))
66  ALLOCATE(type_obc(iobcn))
68 
69  ALLOCATE(i_obc_n_output(iobcn))
71 
72  if (dbg_set(dbg_sbr)) &
73  & write(ipt,*) "END: GENMAP_OBC - serial"
74  return
75  END IF
76 
77 
78  if (dbg_set(dbg_sbr)) &
79  & write(ipt,*) "END: SETUP_OBCMAP - parallel"
80  RETURN
81 END SUBROUTINE genmap_obc
82 
logical serial
Definition: mod_main.f90:100
integer, dimension(:), allocatable type_obc
Definition: mod_main.f90:1783
integer, dimension(:), allocatable i_obc_gl
Definition: mod_main.f90:1773
integer iobcn
Definition: mod_main.f90:1777
integer, dimension(:), allocatable i_obc_n
Definition: mod_main.f90:1779
integer, dimension(:), allocatable i_obc_n_output
Definition: mod_main.f90:1781
integer, dimension(:), allocatable type_obc_gl
Definition: mod_main.f90:1782
integer iobcn_gl
Definition: mod_main.f90:1775
integer ipt
Definition: mod_main.f90:922
subroutine genmap_obc
Definition: genmap_obc.f90:42