Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PLAG_SetSizeGenx.F90
Go to the documentation of this file.
1 ! *********************************************************************
2 ! * Rocstar Simulation Suite *
3 ! * Copyright@2015, Illinois Rocstar LLC. All rights reserved. *
4 ! * *
5 ! * Illinois Rocstar LLC *
6 ! * Champaign, IL *
7 ! * www.illinoisrocstar.com *
8 ! * sales@illinoisrocstar.com *
9 ! * *
10 ! * License: See LICENSE file in top level of distribution package or *
11 ! * http://opensource.org/licenses/NCSA *
12 ! *********************************************************************
13 ! *********************************************************************
14 ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, *
15 ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES *
16 ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND *
17 ! * NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR *
18 ! * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
19 ! * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
20 ! * Arising FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE *
21 ! * USE OR OTHER DEALINGS WITH THE SOFTWARE. *
22 ! *********************************************************************
23 !******************************************************************************
24 !
25 ! Purpose: Set size of arrays in Genx.
26 !
27 ! Description: none.
28 !
29 ! Input: regions = data of all regions,
30 ! wins, winp = GenX window registrations.
31 !
32 ! Output: to Roccom.
33 !
34 ! Notes: Surface registration for Tiles works only for External coupled bc.
35 ! Need to activate for both Internal and External bc.
36 !
37 !******************************************************************************
38 !
39 ! $Id: PLAG_SetSizeGenx.F90,v 1.5 2008/12/06 08:44:00 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2004 by the University of Illinois
42 !
43 !******************************************************************************
44 
45 SUBROUTINE plag_setsizegenx( region )
46 
47  USE moddatatypes
48  USE modglobal, ONLY : t_global
49  USE moddatastruct, ONLY : t_region
50  USE moderror
51  USE modparameters
53  USE modpartlag, ONLY : t_plag
54  IMPLICIT NONE
55  include 'roccomf90.h'
56 
57 ! ... parameters
58 
59  TYPE(t_region) :: region
60 
61 ! ... loop variables
62 
63 ! ... local variables
64 
65  INTEGER :: ilev, pid
66  TYPE(t_global), POINTER :: pglobal
67  TYPE(t_plag) , POINTER :: pplag
68 
69 !******************************************************************************
70 
71  pglobal => region%global
72 
73  CALL registerfunction( pglobal,'PLAG_SetSizeGenx',&
74  'PLAG_SetSizeGenx.F90' )
75 
76 !------------------------------------------------------------------------------
77 ! Loop over all regions
78 !------------------------------------------------------------------------------
79 
80  ilev = region%currLevel
81  pplag => region%levels(ilev)%plag
82  pid = region%iRegionGlobal*regoff+1
83 
84 !------------------------------------------------------------------------------
85 ! COM_set_size procedure must be called in RFLO_sendBoundaryValues
86 ! if nPcls has changed.
87 !------------------------------------------------------------------------------
88 
89  CALL com_set_size( trim(pglobal%winp)//'.nc',pid,pplag%nPcls)
90 
91 !------------------------------------------------------------------------------
92 ! finalize
93 !------------------------------------------------------------------------------
94 
95  CALL deregisterfunction( pglobal )
96 
97 END SUBROUTINE plag_setsizegenx
98 
99 !******************************************************************************
100 !
101 ! RCS Revision history:
102 !
103 ! $Log: PLAG_SetSizeGenx.F90,v $
104 ! Revision 1.5 2008/12/06 08:44:00 mtcampbe
105 ! Updated license.
106 !
107 ! Revision 1.4 2008/11/19 22:17:14 mtcampbe
108 ! Added Illinois Open Source License/Copyright
109 !
110 ! Revision 1.3 2004/11/16 08:51:13 jiao
111 ! Fixed pane ID.
112 !
113 ! Revision 1.2 2004/07/02 22:47:43 jiao
114 ! Added definitions of iLev and pid.
115 !
116 ! Revision 1.1 2004/07/02 22:08:04 fnajjar
117 ! Initial import for Roccom3
118 !
119 !******************************************************************************
120 
121 
122 
123 
124 
125 
126 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine plag_setsizegenx(region)
subroutine deregisterfunction(global)
Definition: ModError.F90:469