Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PLAG_CECellsLoadDataWrapper.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: wrapper routine to load data buffer size for corner and edge cells
26 ! and shrinks particle datastructure.
27 !
28 ! Description: none.
29 !
30 ! Input: regions = data of all regions,
31 ! iReg = current region number.
32 !
33 ! Output: region%level%edgeCells%buffExchPlag%aiv,arv,cv,dv,tv = buffer data.
34 ! region%level%cornerCells%buffExchPlag%aiv,arv,cv,dv,tv = buffer data.
35 ! region%level%plag%aiv,arv,cv,dv,tv = Plag data.
36 !
37 ! Notes: None.
38 !
39 !******************************************************************************
40 !
41 ! $Id: PLAG_CECellsLoadDataWrapper.F90,v 1.3 2008/12/06 08:44:33 mtcampbe Exp $
42 !
43 ! Copyright: (c) 2004 by the University of Illinois
44 !
45 !******************************************************************************
46 
47 SUBROUTINE plag_cecellsloaddatawrapper( regions, iReg )
48 
49  USE moddatatypes
50  USE modpartlag, ONLY : t_plag
51  USE moddatastruct, ONLY : t_region
52  USE modglobal, ONLY : t_global
53  USE moderror
54  USE modparameters
57  IMPLICIT NONE
58 
59 #include "Indexing.h"
60 
61 ! ... parameters
62  TYPE(t_region), POINTER :: regions(:)
63 
64  INTEGER, INTENT(IN) :: ireg
65 
66 ! ... loop variables
67 
68 ! ... local variables
69  CHARACTER(CHRLEN) :: rcsidentstring
70 
71  INTEGER :: ilev, npcls
72 
73  TYPE(t_global), POINTER :: global
74 
75 !******************************************************************************
76 
77  rcsidentstring = &
78  '$RCSfile: PLAG_CECellsLoadDataWrapper.F90,v $ $Revision: 1.3 $'
79 
80  global => regions(ireg)%global
81 
82  CALL registerfunction( global, 'PLAG_CECellsLoadDataWrapper',&
83  'PLAG_CECellsLoadDataWrapper.F90' )
84 
85 ! Get dimensions --------------------------------------------------------------
86 
87  ilev = regions(ireg)%currLevel
88  npcls = regions(ireg)%levels(ilev)%plag%nPcls
89 
90 ! Exit for null number of particles -------------------------------------------
91 
92  IF (npcls == 0) goto 999
93 
94 ! Load data buffers for corner cells ------------------------------------------
95 
96 #ifdef PLAG_CECELLS_DEBUG
97  WRITE(*,*) ' Entering PLAG_CornCellsLoadData: pid, iReg = ',global%myProcId, ireg
98 #endif
99 !
100  CALL plag_corncellsloaddata( regions, ireg )
101 
102 ! Load data buffers for edge cells ------------------------------------------
103 
104 #ifdef PLAG_CECELLS_DEBUG
105  WRITE(*,*) ' Entering PLAG_EdgeCellsLoadData: pid, iReg = ',global%myProcId, ireg
106 #endif
107 
108  CALL plag_edgecellsloaddata( regions, ireg )
109 
110 ! finalize --------------------------------------------------------------------
111 
112 999 CONTINUE
113  CALL deregisterfunction( global )
114 
115 END SUBROUTINE plag_cecellsloaddatawrapper
116 
117 !******************************************************************************
118 !
119 ! RCS Revision history:
120 !
121 ! $Log: PLAG_CECellsLoadDataWrapper.F90,v $
122 ! Revision 1.3 2008/12/06 08:44:33 mtcampbe
123 ! Updated license.
124 !
125 ! Revision 1.2 2008/11/19 22:17:45 mtcampbe
126 ! Added Illinois Open Source License/Copyright
127 !
128 ! Revision 1.1 2004/12/01 20:57:14 fnajjar
129 ! Initial revision after changing case
130 !
131 ! Revision 1.1 2004/01/26 22:56:28 fnajjar
132 ! Initial import for corner-edge cells to load buffer data
133 !
134 !******************************************************************************
135 
136 
137 
138 
139 
140 
141 
subroutine plag_cecellsloaddatawrapper(regions, iReg)
subroutine plag_edgecellsloaddata(regions, iReg)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine plag_corncellsloaddata(regions, iReg)