Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IntegrateSourceTermsMP.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: Integrate source terms using operator-splitting method.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! regions Data for all grid regions
31 !
32 ! Output: None.
33 !
34 ! Notes:
35 ! 1. This routine is work in progress...
36 !
37 ! ******************************************************************************
38 !
39 ! $Id: IntegrateSourceTermsMP.F90,v 1.6 2008/12/06 08:44:09 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2004 by the University of Illinois
42 !
43 ! ******************************************************************************
44 
45 SUBROUTINE integratesourcetermsmp(regions)
46 
47  USE moddatatypes
48  USE modglobal, ONLY: t_global
49  USE moddatastruct, ONLY: t_region
50  USE moderror
51  USE modparameters
52 
53 #ifdef RFLU
54 #ifdef SPEC
57 #endif
58 #endif
59 
60 ! ******************************************************************************
61 ! Declarations and definitions
62 ! ******************************************************************************
63 
64  TYPE(t_region), POINTER :: regions(:)
65 #ifdef RFLU
66  TYPE(t_region), POINTER :: pregion
67 #endif
68 
69 ! ==============================================================================
70 ! Arguments
71 ! ==============================================================================
72 
73 ! ==============================================================================
74 ! Locals
75 ! ==============================================================================
76 
77  CHARACTER(CHRLEN) :: rcsidentstring
78 #ifdef RFLU
79  INTEGER :: ireg
80 #endif
81  TYPE(t_global), POINTER :: global
82 
83 ! ******************************************************************************
84 ! Start
85 ! ******************************************************************************
86 
87  rcsidentstring = '$RCSfile: IntegrateSourceTermsMP.F90,v $ $Revision: 1.6 $'
88 
89 ! ******************************************************************************
90 ! Set pointers and variables
91 ! ******************************************************************************
92 
93  global => regions(1)%global
94 
95  CALL registerfunction(global,'IntegrateSourceTermsMP',&
96  'IntegrateSourceTermsMP.F90')
97 
98 #ifdef RFLU
99 #ifdef SPEC
100 ! ******************************************************************************
101 ! Integrate chemistry source term and update dependent variables
102 ! ******************************************************************************
103 
104 ! TEMPORARY - At present, do not use operator-split integration of chemistry
105 ! source terms based on modifications by Luca. This means that
106 ! call source term residual function directly in SourceTermsMP.F90
107 ! DO iReg = 1,global%nRegionsLocal
108 ! pRegion => regions(iReg)
109 !
110 ! IF ( pRegion%specInput%sourceFlag .EQV. .TRUE. ) THEN
111 ! CALL SPEC_RFLU_IntegrateChemSrcTerm(pRegion)
112 ! CALL RFLU_SetVarsWrapper(pRegion,1,pRegion%grid%nCellsTot)
113 ! END IF ! pRegion%specInput%sourceType
114 ! END DO ! iReg
115 ! END TEMPORARY
116 #endif
117 #endif
118 
119 ! ******************************************************************************
120 ! End
121 ! ******************************************************************************
122 
123  CALL deregisterfunction(global)
124 
125 END SUBROUTINE integratesourcetermsmp
126 
127 ! ******************************************************************************
128 !
129 ! RCS Revision history:
130 !
131 ! $Log: IntegrateSourceTermsMP.F90,v $
132 ! Revision 1.6 2008/12/06 08:44:09 mtcampbe
133 ! Updated license.
134 !
135 ! Revision 1.5 2008/11/19 22:17:22 mtcampbe
136 ! Added Illinois Open Source License/Copyright
137 !
138 ! Revision 1.4 2006/04/07 15:19:15 haselbac
139 ! Removed tabs
140 !
141 ! Revision 1.3 2005/06/06 14:22:09 haselbac
142 ! Adapted to Lucas changes
143 !
144 ! Revision 1.2 2005/04/15 15:06:02 haselbac
145 ! Adapted call to RFLU_SetVarsWrapper
146 !
147 ! Revision 1.1 2004/12/01 16:48:43 haselbac
148 ! Initial revision after changing case
149 !
150 ! Revision 1.3 2004/11/14 20:30:23 haselbac
151 ! Bug fix: Moved USE inside ifdef RFLU
152 !
153 ! Revision 1.2 2004/11/14 19:35:06 haselbac
154 ! Replaced call to UpdateDependentVarsMP by RFLU_SetVarsWrapper, cosmetics
155 !
156 ! Revision 1.1 2004/04/01 21:22:17 haselbac
157 ! Initial revision
158 !
159 ! ******************************************************************************
160 
161 
162 
163 
164 
165 
166 
subroutine integratesourcetermsmp(regions)
subroutine rflu_setvarswrapper(pRegion, icgBeg, icgEnd)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine, public spec_rflu_integratechemsrcterm(pRegion, CALLFLAG)
subroutine deregisterfunction(global)
Definition: ModError.F90:469