Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RkInitSD.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: Initialize array sd, which holds the substantial derivative used
26 ! in computing Equilibrium Eulerian velocities
27 !
28 ! Description: None.
29 !
30 ! Input:
31 ! region Region data
32 ! icBeg Beginning index for cell update
33 ! icEnd Ending index for cell update
34 ! ivBeg Beginning index for variable update
35 ! ivEnd Ending index for variable update
36 !
37 ! Output:
38 ! sd Substantial derivative
39 !
40 ! Notes: None.
41 !
42 !******************************************************************************
43 !
44 ! $Id: RkInitSD.F90,v 1.3 2008/12/06 08:44:10 mtcampbe Exp $
45 !
46 ! Copyright: (c) 2004 by the University of Illinois
47 !
48 !******************************************************************************
49 
50 SUBROUTINE rkinitsd(region,icBeg,icEnd,ivBeg,ivEnd,sd)
51 
52  USE moddatatypes
53  USE moddatastruct, ONLY: t_region
54  USE modglobal, ONLY: t_global
55  USE moderror
56  USE modparameters
57 
58  IMPLICIT NONE
59 
60 ! *****************************************************************************
61 ! Definitions and declarations
62 ! *****************************************************************************
63 
64 ! =============================================================================
65 ! Arguments
66 ! =============================================================================
67 
68  INTEGER, INTENT(IN) :: icbeg,icend,ivbeg,ivend
69  REAL(RFREAL), DIMENSION(:,:), POINTER :: sd
70  TYPE(t_region) :: region
71 
72 ! =============================================================================
73 ! Locals
74 ! =============================================================================
75 
76  CHARACTER(CHRLEN) :: rcsidentstring
77  INTEGER :: ic,iv
78  TYPE(t_global), POINTER :: global
79 
80 ! *****************************************************************************
81 ! Start
82 ! *****************************************************************************
83 
84  rcsidentstring = '$RCSfile: RkInitSD.F90,v $ $Revision: 1.3 $'
85 
86  global => region%global
87 
88  CALL registerfunction(global,'RkInitSD',&
89  'RkInitSD.F90')
90 
91 ! *****************************************************************************
92 ! Initialize substantial derivative
93 ! *****************************************************************************
94 
95  DO ic = icbeg,icend
96  DO iv = ivbeg,ivend
97  sd(iv,ic) = 0.0_rfreal
98  END DO ! iv
99  END DO ! ic
100 
101 ! *****************************************************************************
102 ! End
103 ! *****************************************************************************
104 
105  CALL deregisterfunction(global)
106 
107 END SUBROUTINE rkinitsd
108 
109 !******************************************************************************
110 !
111 ! RCS Revision history:
112 !
113 ! $Log: RkInitSD.F90,v $
114 ! Revision 1.3 2008/12/06 08:44:10 mtcampbe
115 ! Updated license.
116 !
117 ! Revision 1.2 2008/11/19 22:17:23 mtcampbe
118 ! Added Illinois Open Source License/Copyright
119 !
120 ! Revision 1.1 2004/12/01 16:51:06 haselbac
121 ! Initial revision after changing case
122 !
123 ! Revision 1.1 2004/07/30 22:47:33 jferry
124 ! Implemented Equilibrium Eulerian method for Rocflu
125 !
126 !******************************************************************************
127 
128 
129 
130 
131 
132 
133 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE ic
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE icbeg
subroutine rkinitsd(region, icBeg, icEnd, ivBeg, ivEnd, sd)
Definition: RkInitSD.F90:50
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE icend
subroutine deregisterfunction(global)
Definition: ModError.F90:469