Overture  Version 25
ParallelGridUtility.h
Go to the documentation of this file.
1 #ifndef PARALLEL_GRID_UTILITY_H
2 #define PARALLEL_GRID_UTILITY_H
3 
4 // ***********************************************************************************************
5 // ************** Parallel Utilities that know about Grids and Grid Functions *******************
6 // ***********************************************************************************************
7 
8 // These are kept separate from class ParallelUtility so that the Mapping's can use ParallelUtility
9 // without needed to know about Grids and Grid Functions
10 
11 #include "Overture.h"
12 #include "broadCast.h"
13 #include "display.h"
14 
15 #ifndef OV_USE_OLD_STL_HEADERS
16 #include <list>
17 #include <vector>
18 #else
19 #include <list.h>
20 #include <vector>
21 #endif
22 
23 class InterpolationData; // forward declaration
24 
26 {
27 
28 public:
29 
30 // redistribute a grid and grid function to a new set of processors
31 static void redistribute(const realGridCollectionFunction & u,
32  GridCollection & gcP,
34  const Range & Processors );
35 
36 static void redistribute(const realCompositeGridFunction & u,
37  CompositeGrid & gcP,
39  const Range & Processors );
40 
41 // redistribute a grid to a new set of processors
42 static void redistribute(const GridCollection & gc,
43  GridCollection & gcP,
44  const Range & Processors );
45 
46 static void redistribute(const CompositeGrid & gc,
47  CompositeGrid & gcP,
48  const Range & Processors );
49 
50 
52  IntegerArray & indexRangeLocal,
53  IntegerArray & dimensionLocal,
54  IntegerArray & bcLocal,
55  int internalGhostBC = -1); // 101102 kkc added internalGhostBC
56 
58  IntegerArray & bcLocal );
59 
60 static int
62 
63 };
64 
65 
66 #endif