-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdiscretizationInterface.hpp
More file actions
581 lines (428 loc) · 34.2 KB
/
discretizationInterface.hpp
File metadata and controls
581 lines (428 loc) · 34.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
/***********************************************************************
MrHyDE - a framework for solving Multi-resolution Hybridized
Differential Equations and enabling beyond forward simulation for
large-scale multiphysics and multiscale systems.
Questions? Contact Tim Wildey (tmwilde@sandia.gov)
************************************************************************/
/** \file discretizationInterface.hpp
\brief Contains the interface to the discretization tools in Intrepid2 and the degree-of-freedom managers in Panzer.
\author Created by T. Wildey
*/
#ifndef MRHYDE_DISCINTERFACE_H
#define MRHYDE_DISCINTERFACE_H
#include "trilinos.hpp"
#include "preferences.hpp"
#include "Panzer_DOFManager.hpp"
#include "Panzer_BlockedDOFManager.hpp"
#include "Panzer_ConnManager.hpp"
#include "Panzer_STK_Interface.hpp"
#include "physicsInterface.hpp"
#include "meshInterface.hpp"
#include "tools/groupMetaData.hpp"
#include "tools/MrHyDE_Debugger.hpp"
namespace MrHyDE {
/** \class MrHyDE::DiscretizationInterface
\brief Provides the interface to the functions and classes in the Trilinos packages (panzer, Intrepid2) that handle the discretizations and degrees-of-freedom.
*/
class DiscretizationInterface {
public:
DiscretizationInterface() {} ;
// ========================================================================================
// ========================================================================================
~DiscretizationInterface() {} ;
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
/**
* @brief Primary constructor for the MrHyDE Discretization Interface.
*
* @param[in] settings_ Main Teuchos Parameter List for MrHyDE
* @param[in] Comm_ Global MPI communicator
* @param[in] mesh_ MrHyDE Mesh Interface
* @param[in] physics_ MrHyDE Physics Interface
*
*/
DiscretizationInterface(Teuchos::RCP<Teuchos::ParameterList> & settings_,
Teuchos::RCP<MpiComm> & Comm_,
Teuchos::RCP<MeshInterface> & mesh_,
Teuchos::RCP<PhysicsInterface> & physics_);
//////////////////////////////////////////////////////////////////////////////////////
// Create a pointer to an Intrepid or Panzer basis
//////////////////////////////////////////////////////////////////////////////////////
/**
* @brief Defines an Intrepid2 basis.
*
* @param[in] spaceDim Spatial dimension (1, 2 or 3)
* @param[in] cellTopo Cell/element topology (quad, tet, etc.)
* @param[in] type String defining the basis type (HGRAD, HVOL, etc)
* @param[in] degree Basis order
*/
basis_RCP getBasis(const int & spaceDim, const topo_RCP & cellTopo, const string & type, const int & degree);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
/**
* @brief Defines the quadrature points and weights
*
* @param[in] cellTopo Cell/element topology (quad, tet, etc.)
* @param[in] order Quadrature order
*
* @param[out] ip Kokkos::DRV containing quadrature points on reference element. Dims = (numip)x(spatial dimension)
* @param[out] wts Kokkos::DRV containing quadrature weights on reference element. Dims = (numip)
*/
void getQuadrature(const topo_RCP & cellTopo, const int & order, DRV & ip, DRV & wts);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
/**
* @brief Sets up the quadrature and basis on the reference element
*
* @param[in] groupData Group meta data object shared by all elements on a block
*/
void setReferenceData(Teuchos::RCP<GroupMetaData> & groupData);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
/**
* @brief Computes the physical integration points and weights for a group of elements
*
* @param[in] groupData Group meta data object shared by all elements on a block
* @param[in] elemIDs List of element IDs. Used to compute nodes and then call function using nodes.
*
* @param[out] ip vector<Kokkos::View> containing quadrature points on physical element.
* @param[out] wts Kokkos::View containing quadrature weights on physical element.
*/
void getPhysicalIntegrationData(Teuchos::RCP<GroupMetaData> & groupData,
Kokkos::View<LO*,AssemblyDevice> elemIDs, vector<View_Sc2> & ip, View_Sc2 wts);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
/**
* @brief Computes the physical integration points and weights for a group of elements
*
* @param[in] groupData Group meta data object shared by all elements on a block
* @param[in] nodes Kokkos::DRV containing the current set of nodes for the physical elements
*
* @param[out] ip vector<Kokkos::View> containing quadrature points on physical element.
* @param[out] wts Kokkos::View containing quadrature weights on physical element.
*/
void getPhysicalIntegrationData(Teuchos::RCP<GroupMetaData> & groupData,
DRV nodes, vector<View_Sc2> & ip, View_Sc2 wts);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
/**
* @brief Computes the physical integration points (not weights) for a group of elements
*
* @param[in] groupData Group meta data object shared by all elements on a block
* @param[in] elemIDs List of element IDs. Used to compute nodes and then call function using nodes.
*
* @param[out] ip vector<Kokkos::View> containing quadrature points on physical element.
*/
void getPhysicalIntegrationPts(Teuchos::RCP<GroupMetaData> & groupData,
Kokkos::View<LO*,AssemblyDevice> elemIDs, vector<View_Sc2> & ip);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
/**
* @brief Computes the physical integration points (not weights) for a group of elements
*
* @param[in] groupData Group meta data object shared by all elements on a block
* @param[in] nodes Kokkos::DRV containing the current set of nodes for the physical elements
*
* @param[out] ip vector<Kokkos::View> containing quadrature points on physical element.
*/
void getPhysicalIntegrationPts(Teuchos::RCP<GroupMetaData> & groupData,
DRV nodes, vector<View_Sc2> & ip);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
/**
* @brief Computes the physical Jacobian for a group of elements
*
* @param[in] groupData Group meta data object shared by all elements on a block
* @param[in] elemIDs List of element IDs. Used to compute nodes and then call function using nodes.
*
* @param[out] jacobian Kokkos::DRV containing the Jacobian for each element
*/
void getJacobian(Teuchos::RCP<GroupMetaData> & groupData,
Kokkos::View<LO*,AssemblyDevice> elemIDs, DRV jacobian);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
/**
* @brief Computes the physical Jacobian for a group of elements
*
* @param[in] groupData Group meta data object shared by all elements on a block
* @param[in] nodes Kokkos::DRV containing the current set of nodes for the physical elements
*
* @param[out] jacobian Kokkos::DRV containing the Jacobian for each element
*/
void getJacobian(Teuchos::RCP<GroupMetaData> & groupData,
DRV nodes, DRV jacobian);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
/**
* @brief Computes the physical Jacobian for a group of elements
*
* @param[in] groupData Group meta data object shared by all elements on a block
* @param[in] elemIDs List of element IDs. Used to compute nodes and then call function using nodes.
*
* @param[out] jacobian Kokkos::DRV containing the Jacobian for each element
* @param[out] wts Kokkos::DRV containing quadrature weights on physical element.
*/
void getPhysicalWts(Teuchos::RCP<GroupMetaData> & groupData,
Kokkos::View<LO*,AssemblyDevice> elemIDs, DRV jacobian, DRV wts);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
void getMeasure(Teuchos::RCP<GroupMetaData> & groupData,
DRV jacobian, DRV measure);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
void getFrobenius(Teuchos::RCP<GroupMetaData> & groupData,
DRV jacobian, DRV fro);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
void getPhysicalVolumetricBasis(Teuchos::RCP<GroupMetaData> & groupData, Kokkos::View<LO*,AssemblyDevice> elemIDs,
vector<View_Sc4> & basis, vector<View_Sc4> & basis_grad,
vector<View_Sc4> & basis_curl, vector<View_Sc3> & basis_div,
vector<View_Sc4> & basis_nodes,
const bool & apply_orientations = true);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
void getPhysicalVolumetricBasis(Teuchos::RCP<GroupMetaData> & groupData, DRV nodes,
Kokkos::DynRankView<Intrepid2::Orientation,PHX::Device> orientation,
vector<View_Sc4> & basis, vector<View_Sc4> & basis_grad,
vector<View_Sc4> & basis_curl, vector<View_Sc3> & basis_div,
vector<View_Sc4> & basis_nodes,
const bool & apply_orientations = true);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
void getPhysicalVolumetricBasis(Teuchos::RCP<GroupMetaData> & groupData, Kokkos::View<LO*,AssemblyDevice> elemIDs,
vector<View_Sc4> & basis);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
void getPhysicalVolumetricBasis(Teuchos::RCP<GroupMetaData> & groupData, DRV nodes,
Kokkos::DynRankView<Intrepid2::Orientation,PHX::Device> orientation,
vector<View_Sc4> & basis);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
void getPhysicalOrientations(Teuchos::RCP<GroupMetaData> & groupData,
Kokkos::View<LO*,AssemblyDevice> eIndex,
Kokkos::DynRankView<Intrepid2::Orientation,PHX::Device> orientation,
const bool & use_block);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
void getPhysicalFaceIntegrationData(Teuchos::RCP<GroupMetaData> & groupData, const int & side, Kokkos::View<LO*,AssemblyDevice> elemIDs,
vector<View_Sc2> & face_ip, View_Sc2 face_wts, vector<View_Sc2> & face_normals);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
void getPhysicalFaceIntegrationData(Teuchos::RCP<GroupMetaData> & groupData, const int & side, DRV nodes,
vector<View_Sc2> & face_ip, View_Sc2 face_wts, vector<View_Sc2> & face_normals);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
void getPhysicalFaceBasis(Teuchos::RCP<GroupMetaData> & groupData, const int & side, Kokkos::View<LO*,AssemblyDevice> elemIDs,
vector<View_Sc4> & basis, vector<View_Sc4> & basis_grad);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
void getPhysicalFaceBasis(Teuchos::RCP<GroupMetaData> & groupData, const int & side, DRV nodes,
Kokkos::DynRankView<Intrepid2::Orientation,PHX::Device> orientation,
vector<View_Sc4> & basis, vector<View_Sc4> & basis_grad);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
void getPhysicalBoundaryIntegrationData(Teuchos::RCP<GroupMetaData> & groupData, Kokkos::View<LO*,AssemblyDevice> elemIDs,
LO & localSideID,
vector<View_Sc2> & ip, View_Sc2 wts, vector<View_Sc2> & normals,
vector<View_Sc2> & tangents);
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
void getPhysicalBoundaryIntegrationData(Teuchos::RCP<GroupMetaData> & groupData, DRV nodes,
LO & localSideID,
vector<View_Sc2> & ip, View_Sc2 wts, vector<View_Sc2> & normals,
vector<View_Sc2> & tangents);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
void getPhysicalBoundaryBasis(Teuchos::RCP<GroupMetaData> & groupData, Kokkos::View<LO*,AssemblyDevice> elemIDs,
LO & localSideID,
vector<View_Sc4> & basis, vector<View_Sc4> & basis_grad,
vector<View_Sc4> & basis_curl, vector<View_Sc3> & basis_div);
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
void getPhysicalBoundaryBasis(Teuchos::RCP<GroupMetaData> & groupData, DRV nodes,
LO & localSideID,
Kokkos::DynRankView<Intrepid2::Orientation,PHX::Device> orientation,
vector<View_Sc4> & basis, vector<View_Sc4> & basis_grad,
vector<View_Sc4> & basis_curl, vector<View_Sc3> & basis_div);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
DRV evaluateBasis(const basis_RCP & basis_pointer, const DRV & evalpts);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
DRV evaluateBasis(const basis_RCP & basis_pointer, const DRV & evalpts,
Kokkos::DynRankView<Intrepid2::Orientation,PHX::Device> & orientation);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
DRV evaluateBasis(Teuchos::RCP<GroupMetaData> & groupData, const int & block, const int & basisID,
const Kokkos::View<LO*,AssemblyDevice> elemIDs,
const DRV & evalpts, topo_RCP & cellTopo);
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
DRV evaluateBasis(const int & block, const int & basisID, DRV nodes,
const DRV & evalpts, topo_RCP & cellTopo,
Kokkos::DynRankView<Intrepid2::Orientation,PHX::Device> & orientation);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
DRV evaluateBasisNewQuadrature(Teuchos::RCP<GroupMetaData> & groupData, const int & block, const int & basisID, vector<string> & quad_rules,
Kokkos::View<LO*,AssemblyDevice> elemIDs,
DRV & wts);
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
DRV evaluateBasisNewQuadrature(const int & block, const int & basisID, vector<string> & quad_rules,
DRV nodes,
Kokkos::DynRankView<Intrepid2::Orientation,PHX::Device> orientation,
DRV & wts);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
DRV evaluateBasisGrads(const size_t & block, const basis_RCP & basis_pointer, const Kokkos::View<LO*,AssemblyDevice> elemIDs,
const DRV & evalpts, const topo_RCP & cellTopo);
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
DRV evaluateBasisGrads(const basis_RCP & basis_pointer, DRV nodes,
const DRV & evalpts, const topo_RCP & cellTopo);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
DRV evaluateBasisGrads2(Teuchos::RCP<GroupMetaData> & groupData, const size_t & block, const basis_RCP & basis_pointer, const Kokkos::View<LO*,AssemblyDevice> elemIDs,
const DRV & evalpts, const topo_RCP & cellTopo);
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
DRV evaluateBasisGrads2(const basis_RCP & basis_pointer, DRV nodes,
const DRV & evalpts, const topo_RCP & cellTopo,
Kokkos::DynRankView<Intrepid2::Orientation,PHX::Device> & orientation);
/////////////////////////////////////////////////////////////////////////////////////////////
// After the mesh and the discretizations have been defined, we can create and add the physics
// to the DOF manager
/////////////////////////////////////////////////////////////////////////////////////////////
void buildDOFManagers();
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
void setBCData(const size_t & set, Teuchos::RCP<panzer::DOFManager> & DOF);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
void setDirichletData(const size_t & set, Teuchos::RCP<panzer::DOFManager> & DOF);
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
Kokkos::View<int****,HostDevice> getSideInfo(const size_t & set,
const size_t & block,
Kokkos::View<int*,HostDevice> elem);
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
vector<vector<int> > getOffsets(const int & set, const int & block);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
vector<GO> getGIDs(const size_t & set, const size_t & block, const size_t & elem);
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
DRV mapPointsToReference(DRV phys_pts, Kokkos::View<LO*,AssemblyDevice> elemIDs, const size_t & block, topo_RCP & cellTopo);
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
DRV mapPointsToReference(DRV phys_pts, DRV nodes, topo_RCP & cellTopo);
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
DRV getReferenceNodes(topo_RCP & cellTopo);
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
DRV getMyNodes(const size_t & block, Kokkos::View<LO*,AssemblyDevice> elemIDs);
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
DRV mapPointsToPhysical(DRV ref_pts, Kokkos::View<LO*,AssemblyDevice> elemIDs, const size_t & block, topo_RCP & cellTopo);
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
DRV mapPointsToPhysical(DRV ref_pts, DRV nodes, topo_RCP & cellTopo);
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
Kokkos::DynRankView<int,PHX::Device> checkInclusionPhysicalData(DRV phys_pts, Kokkos::View<LO*,AssemblyDevice> elemIDs,
topo_RCP & cellTopo, const size_t & block,
const ScalarT & tol);
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
Kokkos::DynRankView<int,PHX::Device> checkInclusionPhysicalData(DRV phys_pts, DRV nodes,
topo_RCP & cellTopo,
const ScalarT & tol);
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
DRV applyOrientation(DRV basis, Kokkos::DynRankView<Intrepid2::Orientation,PHX::Device> orientation,
basis_RCP & basis_pointer);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
Kokkos::View<string**,HostDevice> getVarBCs(const size_t & set, const size_t & block);
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
ScalarT computeRelativeDifference(DRV data1, DRV data2);
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
void purgeLIDs();
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
void purgeMemory();
// ========================================================================================
// ========================================================================================
void purgeOrientations();
////////////////////////////////////////////////////////////////////////////////
// Public data
////////////////////////////////////////////////////////////////////////////////
int verbosity, dimension, quadorder;
double storage_proportion;
Teuchos::RCP<Teuchos::ParameterList> settings;
Teuchos::RCP<MpiComm> comm;
Teuchos::RCP<MeshInterface> mesh;
Teuchos::RCP<PhysicsInterface> physics;
Teuchos::RCP<MrHyDE_Debugger> debugger;
vector<vector<basis_RCP> > basis_pointers; // [block][basis]
vector<vector<string> > basis_types; // [block][basis]
vector<vector<vector<GO> > > point_dofs; // [set][block][dof]
vector<vector<vector<vector<LO> > > > dbc_dofs; // [set][block][dof]
vector<string> block_names, side_names;
// Purgeable
std::vector<Kokkos::View<const LO**, Kokkos::LayoutRight, PHX::Device>> dof_lids;
std::vector<Kokkos::View<GO*,HostDevice> > dof_owned, dof_owned_and_shared;
Kokkos::View<Intrepid2::Orientation*,HostDevice> panzer_orientations;
vector<DRV> ref_ip, ref_wts, ref_side_ip, ref_side_wts;
vector<size_t> numip, numip_side;
vector<int> num_derivs_required;
vector<vector<int> > cards;
vector<Kokkos::View<LO*,HostDevice> > my_elements;
vector<vector<Kokkos::View<int****,HostDevice> > > side_info; // rarely used
vector<vector<vector<vector<string> > > > var_bcs; // [set][block][var][boundary]
vector<vector<vector<vector<int> > > > offsets; // [set][block][var][dof]
bool have_dirichlet = false, minimize_memory;
private:
Teuchos::RCP<Teuchos::Time> set_bc_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::setBCData()");
Teuchos::RCP<Teuchos::Time> set_dbc_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::setDirichletData()");
Teuchos::RCP<Teuchos::Time> dofmgr_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::buildDOFManagers()");
Teuchos::RCP<Teuchos::Time> phys_vol_IP_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalIntegrationData()");
Teuchos::RCP<Teuchos::Time> get_nodes_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getMyNodes()");
Teuchos::RCP<Teuchos::Time> phys_vol_data_total_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalVolumetricData - total");
Teuchos::RCP<Teuchos::Time> phys_vol_data_IP_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalVolumetricData - ip");
Teuchos::RCP<Teuchos::Time> phys_vol_data_set_jac_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalVolumetricData - set Jac");
Teuchos::RCP<Teuchos::Time> phys_vol_data_other_jac_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalVolumetricData - other Jac");
Teuchos::RCP<Teuchos::Time> phys_vol_data_hsize_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalVolumetricData - hsize");
Teuchos::RCP<Teuchos::Time> phys_orient_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalOrientations");
Teuchos::RCP<Teuchos::Time> phys_vol_data_wts_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalVolumetricData - wts");
Teuchos::RCP<Teuchos::Time> phys_vol_data_basis_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalVolumetricData - basis");
Teuchos::RCP<Teuchos::Time> phys_basis_new_quad_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::evaluateBasisNewQuadrature()");
Teuchos::RCP<Teuchos::Time> phys_vol_data_basis_div_val_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalVolumetricData - HDIV-VALUE");
Teuchos::RCP<Teuchos::Time> phys_vol_data_basis_div_div_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalVolumetricData - HDIV-DIV");
Teuchos::RCP<Teuchos::Time> phys_vol_data_basis_curl_val_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalVolumetricData - HCURL-VALUE");
Teuchos::RCP<Teuchos::Time> phys_vol_data_basis_curl_curl_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalVolumetricData - HCURL-CURL");
Teuchos::RCP<Teuchos::Time> phys_face_data_total_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalFaceData - total");
Teuchos::RCP<Teuchos::Time> phys_face_data_IP_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalFaceData - ip");
Teuchos::RCP<Teuchos::Time> phys_face_data_set_jac_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalFaceData - set Jac");
Teuchos::RCP<Teuchos::Time> phys_face_data_other_jac_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalFaceData - other Jac");
Teuchos::RCP<Teuchos::Time> phys_face_data_hsize_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalFaceData - hsize");
Teuchos::RCP<Teuchos::Time> phys_face_data_wts_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalFaceData - wts");
Teuchos::RCP<Teuchos::Time> phys_face_data_basis_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalFaceData - basis");
Teuchos::RCP<Teuchos::Time> phys_bndry_data_total_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalBoundaryData - total");
Teuchos::RCP<Teuchos::Time> phys_bndry_data_IP_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalBoundaryData - ip");
Teuchos::RCP<Teuchos::Time> phys_bndry_data_set_jac_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalBoundaryData - set Jac");
Teuchos::RCP<Teuchos::Time> phys_bndry_data_other_jac_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalBoundaryData - other Jac");
Teuchos::RCP<Teuchos::Time> phys_bndry_data_hsize_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalBoundaryData - hsize");
Teuchos::RCP<Teuchos::Time> phys_bndry_data_wts_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalBoundaryData - wts");
Teuchos::RCP<Teuchos::Time> phys_bndry_data_basis_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::getPhysicalBoundaryData - basis");
Teuchos::RCP<Teuchos::Time> database_copy_basis_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::copyDataFromDatabase() - copy");
Teuchos::RCP<Teuchos::Time> database_orient_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::copyDataFromDatabase() - apply orient");
Teuchos::RCP<Teuchos::Time> database_total_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::copyDataFromDatabase() - total");
Teuchos::RCP<Teuchos::Time> database_allocate_timer = Teuchos::TimeMonitor::getNewCounter("MrHyDE::DiscretizationInterface::copyDataFromDatabase() - allocate memory");
};
}
#endif