Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PLAG_PatchUpdate.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: update step for patch data buffers.
26 !
27 ! Description: none.
28 !
29 ! Input: region = current region
30 ! iReg = current region number
31 !
32 !
33 ! Output: region%plag = plag variables
34 !
35 ! Notes: none.
36 !
37 !******************************************************************************
38 !
39 ! $Id: PLAG_PatchUpdate.F90,v 1.3 2008/12/06 08:44:34 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2002 by the University of Illinois
42 !
43 !******************************************************************************
44 
45 SUBROUTINE plag_patchupdate( regions, iReg )
46 
47  USE moddatatypes
48  USE moddatastruct, ONLY : t_region
49  USE modglobal, ONLY : t_global
53  USE moderror
54  USE modparameters
56  IMPLICIT NONE
57 
58 ! ... parameters
59  TYPE(t_region), POINTER :: regions(:)
60 
61  INTEGER :: ireg
62 
63 ! ... loop variables
64 
65 ! ... local variables
66  CHARACTER(CHRLEN) :: rcsidentstring
67 
68  TYPE(t_global), POINTER :: global
69 
70 !******************************************************************************
71 
72  rcsidentstring = '$RCSfile: PLAG_PatchUpdate.F90,v $ $Revision: 1.3 $'
73 
74  global => regions(ireg)%global
75 
76  CALL registerfunction( global, 'PLAG_patchUpdate',&
77  'PLAG_PatchUpdate.F90' )
78 
79 ! Obtain patch buffer size ----------------------------------------------------
80 
81 ! WRITE(STDOUT,'(A,I2)') ' Entering PLAG_PatchGetBufferSize: iReg', iReg
82 
83  CALL plag_patchgetbuffersize( regions(ireg) )
84 
85 ! Load data buffer and reshuffle particle datastructure -----------------------
86 
87 ! WRITE(STDOUT,'(A,I2)') ' Entering PLAG_PatchLoadDataBuffers: iReg', iReg
88 
89  CALL plag_patchloaddatabuffers( regions(ireg), ireg )
90 
91 ! Impose boundary conditions --------------------------------------------------
92 
93 ! WRITE(STDOUT,'(A,I2)') ' Entering PLAG_BoundaryConditionsSet: iReg', iReg
94 
95  CALL plag_boundaryconditionsset( regions, ireg )
96 
97 ! finalize --------------------------------------------------------------------
98 
99  CALL deregisterfunction( global )
100 
101 END SUBROUTINE plag_patchupdate
102 
103 !******************************************************************************
104 !
105 ! RCS Revision history:
106 !
107 ! $Log: PLAG_PatchUpdate.F90,v $
108 ! Revision 1.3 2008/12/06 08:44:34 mtcampbe
109 ! Updated license.
110 !
111 ! Revision 1.2 2008/11/19 22:17:47 mtcampbe
112 ! Added Illinois Open Source License/Copyright
113 !
114 ! Revision 1.1 2004/12/01 20:57:59 fnajjar
115 ! Initial revision after changing case
116 !
117 ! Revision 1.6 2004/02/26 21:02:17 haselbac
118 ! Removed iStage argument
119 !
120 ! Revision 1.5 2003/01/23 17:03:22 f-najjar
121 ! Moved calls to PLAG_AppendDataFromBuffers into PLAG_PatchBufferSendRecv and removed call to PLAG_PatchBufferSendRecv
122 !
123 ! Revision 1.4 2003/01/17 19:33:28 f-najjar
124 ! Included iReg in call sequence for PLAG_PatchLoadDataBuffers
125 !
126 ! Revision 1.3 2003/01/16 22:33:00 f-najjar
127 ! Added Calling for PLAG_AppendDatafromBuffers and PLAG_PatchBufferSendRecv
128 !
129 ! Revision 1.2 2003/01/13 19:03:24 f-najjar
130 ! Removed PLAG_allocateDataBuffers and PLAG_deallocateDataBuffers from calling sequence
131 !
132 ! Revision 1.1 2002/10/25 14:18:35 f-najjar
133 ! Initial Import of Rocpart
134 !
135 !
136 !******************************************************************************
137 
138 
139 
140 
141 
142 
143 
subroutine plag_patchupdate(regions, iReg)
subroutine plag_patchloaddatabuffers(region, iReg)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine plag_patchgetbuffersize(region)
subroutine plag_boundaryconditionsset(regions, iReg)
subroutine deregisterfunction(global)
Definition: ModError.F90:469