Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GlobalCommunicationMP.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: place holder for MP non-dummy global communication if any.
26 !
27 ! Description: none.
28 !
29 ! Input: regions = data of all regions
30 !
31 ! Output: global% = new global parameters after global communication
32 !
33 ! Notes: none.
34 !
35 !******************************************************************************
36 !
37 ! $Id: GlobalCommunicationMP.F90,v 1.3 2008/12/06 08:44:09 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2003 by the University of Illinois
40 !
41 !******************************************************************************
42 
43 SUBROUTINE globalcommunicationmp( regions )
44 
45  USE moddatatypes
46  USE moddatastruct, ONLY : t_region
47  USE modglobal, ONLY : t_global
48  USE moderror
49 #ifdef TURB
51 #endif
52 
53  IMPLICIT NONE
54 
55 ! ... parameters
56  TYPE(t_region), POINTER :: regions(:)
57 
58 ! ... local variables
59  TYPE(t_global), POINTER :: global
60 
61 !******************************************************************************
62 
63  global => regions(1)%global
64 
65  CALL registerfunction( global,'GlobalCommunicationMP',&
66  'GlobalCommunicationMP.F90' )
67 
68 ! perform global communication for MP -----------------------------------------
69 
70 #ifdef TURB
71  IF (global%turbActive) THEN
72  CALL turb_lescommunication( regions )
73  ENDIF
74 #endif
75 
76 ! finalize --------------------------------------------------------------------
77 
78  CALL deregisterfunction( global )
79 
80 END SUBROUTINE globalcommunicationmp
81 
82 !******************************************************************************
83 !
84 ! RCS Revision history:
85 !
86 ! $Log: GlobalCommunicationMP.F90,v $
87 ! Revision 1.3 2008/12/06 08:44:09 mtcampbe
88 ! Updated license.
89 !
90 ! Revision 1.2 2008/11/19 22:17:22 mtcampbe
91 ! Added Illinois Open Source License/Copyright
92 !
93 ! Revision 1.1 2004/12/01 16:48:37 haselbac
94 ! Initial revision after changing case
95 !
96 ! Revision 1.1 2004/02/26 21:29:51 wasistho
97 ! install globalCommunicationMP
98 !
99 !
100 !******************************************************************************
101 
102 
103 
104 
105 
106 
107 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine turb_lescommunication(regions)
subroutine globalcommunicationmp(regions)
subroutine deregisterfunction(global)
Definition: ModError.F90:469