/usr/include/trilinos/SNL_FEI_Structure.hpp is in libtrilinos-dev 10.4.0.dfsg-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 | #ifndef _SNL_FEI_Structure_hpp_
#define _SNL_FEI_Structure_hpp_
/*--------------------------------------------------------------------*/
/* Copyright 2005 Sandia Corporation. */
/* Under the terms of Contract DE-AC04-94AL85000, there is a */
/* non-exclusive license for use of this work by or on behalf */
/* of the U.S. Government. Export of this program may require */
/* a license from the United States Government. */
/*--------------------------------------------------------------------*/
#include <fei_fwd.hpp>
#include <fei_defs.h>
#include <fei_constants.hpp>
#include "fei_TemplateUtils.hpp"
#include <snl_fei_PointBlockMap.hpp>
#include <fei_EqnBuffer.hpp>
#include <fei_FieldDofMap.hpp>
#include <fei_CSRMat.hpp>
#include <fei_CSVec.hpp>
#include <fei_NodeCommMgr.hpp>
#include <fei_NodeDatabase.hpp>
#include <fei_NodeDescriptor.hpp>
#include <fei_Lookup.hpp>
/** The SNL_FEI_Structure class is a container for the data that makes up
the structure of a finite element problem. It contains things like the
FieldDatabase, NodeDatabase, ConnectivityTable, etc.<p> This class is the
primary class that implements the general "FEI initialization phase", where
the user passes all structure-defining data, which ends up being translated
into a corresponding sparse matrix structure.
The problem structure is initialized gradually by calling
the 'init' functions in this class. They also exist in the FEI class, where
they are documented.
Once all structure-defining data has been passed, the process is completed
by calling the initComplete function.
*/
class SNL_FEI_Structure : public Lookup {
public:
/** Constructor.
@param comm MPI_Communicator
@param name String by which this structure instance may be referred to.
@param debugOutputLevel Determines whether this object will produce a file
containing a log of debug output information.
@param path If debugOutputLevel is not zero, the debug log file will be
placed in the location specified by path.
*/
SNL_FEI_Structure(MPI_Comm comm);
/** Destructor. */
virtual ~SNL_FEI_Structure();
/** Set parameters on this object. Currently three parameters are recognized:
"debugOutput 'path'" where 'path' is the path to the location where
debug-log files will be produced.<br>
"debugOutputOff" which will turn off debug-output.<br>
"checkSharedNodes" which specifies that a 'sanity-check' should be done
to make sure that the shared-node information is globally consistent,
before any communication is attempted which depends on the consistency of
that information.<br>
"sharedNodeOwnership <string>" where <string> can be either
LowNumberedProc or ProcWithLocalElem. LowNumberedProc specifies that the
lowest-numbered sharing processor will be the owner of shared nodes,
while ProcWithLocalElem specifies that ownership will be given to the
proc with a local element containing the shared node, if not all sharing
procs have local elements containing the shared node.
*/
int parameters(int numParams, const char*const* paramStrings);
int initFields(int numFields, const int* fieldSizes, const int* fieldIDs,
const int* fieldTypes = NULL);
int initElemBlock(GlobalID elemBlockID,
int numElements,
int numNodesPerElement,
const int* numFieldsPerNode,
const int* const* nodalFieldIDs,
int numElemDofFieldsPerElement,
const int* elemDofFieldIDs,
int interleaveStrategy);
int initElem(GlobalID elemBlockID,
GlobalID elemID,
const GlobalID* elemConn);
int initSlaveVariable(GlobalID slaveNodeID,
int slaveFieldID,
int offsetIntoSlaveField,
int numMasterNodes,
const GlobalID* masterNodeIDs,
const int* masterFieldIDs,
const double* weights,
double rhsValue);
int deleteMultCRs();
int initSharedNodes(int numSharedNodes,
const GlobalID *sharedNodeIDs,
const int* numProcsPerNode,
const int *const *sharingProcIDs);
// constraint relation initialization
//- lagrange multiplier formulation
int initCRMult(int numCRNodes,
const GlobalID* CRNodes,
const int *CRFields,
int& CRID);
// - penalty function formulation
int initCRPen(int numCRNodes,
const GlobalID* CRNodes,
const int *CRFields,
int& CRID);
int initComplete(bool generateGraph = true);
std::map<int,int>& getFieldDatabase() { return(*fieldDatabase_); };
/** implementation of Lookup::getFieldIDsPtr */
const int* getFieldIDsPtr()
{
int len = fieldDatabase_->size();
workarray_.resize(len*2);
fei::copyToArrays<std::map<int,int> >(*fieldDatabase_, len,
&workarray_[0],
&workarray_[0]+len);
return( &workarray_[0] );
}
/** implementation of Lookup::getFieldSizesPtr */
const int* getFieldSizesPtr()
{
int len = fieldDatabase_->size();
workarray_.resize(len*2);
fei::copyToArrays<std::map<int,int> >(*fieldDatabase_, len,
&workarray_[0],
&workarray_[0]+len);
return( &workarray_[0]+len );
}
/** implementation of Lookup::getNumFields */
int getNumFields() { return( fieldDatabase_->size() ); };
/** implementation of Lookup::getFieldSize */
int getFieldSize(int fieldID)
{
std::map<int,int>::const_iterator
f_iter = fieldDatabase_->find(fieldID);
return(f_iter != fieldDatabase_->end() ? (*f_iter).second : -1);
}
fei::FieldDofMap<int>& getFieldDofMap()
{ return fieldDofMap_; }
/** implementation of Lookup::isInLocalElement */
bool isInLocalElement(int nodeNumber);
const int* getNumFieldsPerNode(GlobalID blockID);
const int* const* getFieldIDsTable(GlobalID blockID);
/** Given a nodeNumber/fieldID pair, return the associated first equation-
number.
@return eqnNumber
*/
int getEqnNumber(int nodeNumber, int fieldID);
/** Given a global equation number, return the processor on which that
equation resides.
@param eqn Global 0-based equation number.
@return proc Owning processor. If eqn is out of range (less than 0 or
greater than global-number-of-equations) then -1 is returned.
*/
int getOwnerProcForEqn(int eqn);
//////////////////////////////////////////////////////////////////////////
//now the element-block functions
int getNumElemBlocks() {return(blockIDs_.size());};
const GlobalID* getElemBlockIDs() {return(&blockIDs_[0]);};
void getElemBlockInfo(GlobalID blockID,
int& interleaveStrategy, int& lumpingStrategy,
int& numElemDOF, int& numElements,
int& numNodesPerElem, int& numEqnsPerElem);
int addBlock(GlobalID blockID);
int getBlockDescriptor(GlobalID blockID, BlockDescriptor*& block);
/** Given an index, return the corresponding block-descriptor.
@return 0 if successful, non-zero if index out of range, etc.
*/
int getBlockDescriptor_index(int index, BlockDescriptor*& block);
/** Given a blockID, return its index. */
int getIndexOfBlock(GlobalID blockID);
int allocateBlockConnectivity(GlobalID blockID);
void destroyConnectivityTables();
ConnectivityTable& getBlockConnectivity(GlobalID blockID);
void getScatterIndices_ID(GlobalID blockID, GlobalID elemID,
int interleaveStrategy,
int* scatterIndices);
void getScatterIndices_index(int blockIndex, int elemIndex,
int interleaveStrategy,
int* scatterIndices);
int getBlkScatterIndices_index(int blockIndex,
int elemIndex,
int* scatterIndices);
void getScatterIndices_ID(GlobalID blockID, GlobalID elemID,
int interleaveStrategy,
int* scatterIndices,
int* blkScatterIndices,
int* blkSizes);
void getScatterIndices_index(int blockIndex, int elemIndex,
int interleaveStrategy,
int* scatterIndices,
int* blkScatterIndices,
int* blkSizes);
/////////////////////////////////////////////////////////////////////////////
//now the shared-node lookup functions from the Lookup interface.
int getNumSharedNodes() {return(nodeCommMgr_->getNumSharedNodes());};
const int* getSharedNodeNumbers() {
return(&(nodeCommMgr_->getSharedNodeNumbers())[0]);
};
const int* getSharedNodeProcs(int nodeNumber) {
int index = nodeCommMgr_->getSharedNodeIndex_num(nodeNumber);
if (index < 0) return(NULL);
return(&(nodeCommMgr_->getSharedNodeProcs(index))[0]);
};
int getNumSharingProcs(int nodeNumber) {
int index = nodeCommMgr_->getSharedNodeIndex_num(nodeNumber);
if (index < 0) return(-1);
return(nodeCommMgr_->getSharedNodeProcs(index).size());
};
int getNumSubdomains(int nodeNumber) {
const NodeDescriptor* node = NULL;
int err = nodeDatabase_->getNodeWithNumber(nodeNumber, node);
if (err != 0) return(-1);
GlobalID nodeID = node->getGlobalNodeID();
return(nodeCommMgr_->getSharedNodeNumSubdomains(nodeID));
}
int* getSubdomainList(int nodeNumber) {
const NodeDescriptor* node = NULL;
int err = nodeDatabase_->getNodeWithNumber(nodeNumber, node);
if (err != 0) return(NULL);
GlobalID nodeID = node->getGlobalNodeID();
return(&(*(nodeCommMgr_->getSharedNodeSubdomainList(nodeID)))[0]);
}
int translateToReducedNodeNumber(int nodeNumber, int proc);
/////////////////////////////////////////////////////////////////////////////
/** implementation of Lookup::getAssociatedNodeNumber */
int getAssociatedNodeNumber(int eqnNumber)
{
int eqn = translateFromReducedEqn(eqnNumber);
int nodeNumber = nodeDatabase_->getAssociatedNodeNumber(eqn);
int reducedNodeNumber = -1;
if (nodeNumber >= 0) {
reducedNodeNumber = translateToReducedNodeNumber(nodeNumber, localProc_);
}
return( reducedNodeNumber );
}
/** implementation of Lookup::getAssociatedFieldID */
int getAssociatedFieldID(int eqnNumber)
{
int eqn = translateFromReducedEqn(eqnNumber);
return( nodeDatabase_->getAssociatedFieldID(eqn) );
}
/////////////////////////////////////////////////////////////////////////////
//now the point-eqn to block-eqn queries...
bool isExactlyBlkEqn(int ptEqn) {
return(blkEqnMapper_->isExactlyBlkEqn(ptEqn));
};
int ptEqnToBlkEqn(int ptEqn) {
return(blkEqnMapper_->eqnToBlkEqn(ptEqn));
};
int getOffsetIntoBlkEqn(int blkEqn, int ptEqn) {
return(blkEqnMapper_->getBlkEqnOffset(blkEqn, ptEqn));
};
int getBlkEqnSize(int blkEqn) {
return(blkEqnMapper_->getBlkEqnSize(blkEqn));
}
/////////////////////////////////////////////////////////////////////////////
int getNumActiveNodes() {return(nodeDatabase_->getNodeIDs().size());}
NodeDatabase& getNodeDatabase() { return( *nodeDatabase_ ); }
std::map<GlobalID,int>& getActiveNodeIDList()
{ return( nodeDatabase_->getNodeIDs() ); }
std::vector<int>& getGlobalNodeOffsets() {return(globalNodeOffsets_);}
std::vector<int>& getGlobalEqnOffsets() {return(globalEqnOffsets_);}
std::vector<int>& getGlobalBlkEqnOffsets() {return(globalBlkEqnOffsets_);}
NodeCommMgr& getNodeCommMgr() {return(*nodeCommMgr_);}
EqnCommMgr& getEqnCommMgr() {return(*eqnCommMgr_ );}
void initializeEqnCommMgr();
void getEqnInfo(int& numGlobalEqns, int& numLocalEqns,
int& localStartRow, int& localEndRow);
int getEqnNumbers(GlobalID ID, int idType, int fieldID,
int& numEqns, int* eqnNumbers);
int getEqnNumbers(int numIDs, const GlobalID* IDs,
int idType, int fieldID,
int& numEqns, int* eqnNumbers);
void getEqnBlkInfo(int& numGlobalEqnBlks, int& numLocalEqnBlks,
int& localBlkOffset);
snl_fei::PointBlockMap& getBlkEqnMapper() {return(*blkEqnMapper_);}
void destroyMatIndices();
int getNumMultConstRecords() {return(multCRs_.size());};
std::map<GlobalID,snl_fei::Constraint<GlobalID>*>&
getMultConstRecords()
{return(multCRs_);};
int getMultConstRecord(int CRID, snl_fei::Constraint<GlobalID>*& multCR)
{
std::map<int,snl_fei::Constraint<GlobalID>*>::iterator
cr_iter = multCRs_.find(CRID);
int returncode = -1;
if (cr_iter != multCRs_.end()) {
multCR = (*cr_iter).second;
returncode = 0;
}
return( returncode );
}
int getNumPenConstRecords() {return(penCRs_.size());}
std::map<GlobalID,snl_fei::Constraint<GlobalID>*>&
getPenConstRecords()
{ return(penCRs_); }
int getPenConstRecord(int CRID, snl_fei::Constraint<GlobalID>*& penCR)
{
std::map<int,snl_fei::Constraint<GlobalID>*>::iterator
cr_iter = penCRs_.find(CRID);
int returncode = -1;
if (cr_iter != penCRs_.end()) {
penCR = (*cr_iter).second;
returncode = 0;
}
return( returncode );
}
void addSlaveVariable(SlaveVariable* svar) {slaveVars_->push_back(svar);}
int calculateSlaveEqns(MPI_Comm comm);
fei::FillableMat* getSlaveDependencies() {return(slaveMatrix_);}
EqnBuffer* getSlaveEqns() { return(slaveEqns_); }
int numSlaveEquations() { return(numSlvs_); }
/** Given a "global" equation number, return true if it is a slave equation.
*/
bool isSlaveEqn(int eqn);
/** Given a "global" equation number, return the corresponding equation
number in the "reduced" equation space. This is a trivial one-to-one
mapping unless there are slave equations. If there are slave equations,
then the number of 'reduced' equations is reduced by num-slave-eqns, and
any particular global equation number is reduced by the number of slave
equations that are smaller than it.
@return true if eqn is a slave-equation, false otherwise.
*/
bool translateToReducedEqn(int eqn, int& reducedEqn);
/** Given an EqnCommMgr object with global equation numbers, translate all
of its indices (row-numbers and column-indices) to the "reduced" equation
space.
*/
int translateToReducedEqns(EqnCommMgr& eqnCommMgr);
/** Given an EqnBuffer object with global equation numbers, translate all of
its indices (row-numbers and column-indices) to the "reduced" equation
space.
*/
int translateToReducedEqns(EqnBuffer& eqnBuf);
/** Given a ProcEqns object with global equation numbers, translate all of
its indices (row-numbers and column-indices) to the "reduced" equation
space.
*/
int translateToReducedEqns(ProcEqns& procEqns);
/** Given a CSRMat object with global equation numbers, translate all of its
indices (row-numbers and column-indices) to the "reduced" equation
space.
*/
int translateMatToReducedEqns(fei::CSRMat& mat);
/** Given an "Reduced" equation number, translate it to the "global"
numbering, which is the numbering that includes slave equations. This
is the inverse of the 'translateToReducedEqn' function above.
@return eqn
*/
int translateFromReducedEqn(int reducedEqn);
/** Given a slave equation, fill a std::vector with the
equation-numbers upon which the slave depends.
@param slaveEqn
@param masterEqns Output. NULL if slaveEqn is not a slave equation.
@return error-code
*/
int getMasterEqnNumbers(int slaveEqn, std::vector<int>*& masterEqns);
/** Given a slave equation, fill a std::vector with the
coefficients of the equations upon which the slave depends.
@param slaveEqn
@param masterCoefs Output. NULL if slaveEqn is not a slave equation.
@return error-code
*/
int getMasterEqnCoefs(int slaveEqn, std::vector<double>*& masterCoefs);
/** Given a slave equation, provide the rhs-value associated with the master
equation that the slave is defined by.
@param slaveEqn
@param rhsValue Output. Not referenced if slaveEqn is not a slave
equation.
@return error-code 0 if successful, -1 if slaveEqn is not a slave.
*/
int getMasterEqnRHS(int slaveEqn, double& rhsValue);
int getNumGlobalEqns() { return( numGlobalEqns_ ); }
int getNumLocalEqns() { return( numLocalEqns_ ); }
int getFirstLocalEqn() { return( localStartRow_ ); }
int getLastLocalEqn() { return( localEndRow_ ); }
int getFirstReducedEqn() { return( reducedStartRow_ ); }
int getLastReducedEqn() { return( reducedEndRow_ ); }
int getNumGlobalEqnBlks() { return( numGlobalEqnBlks_ ); }
int getNumLocalEqnBlks() { return( numLocalEqnBlks_ ); }
int getNumLocalReducedEqnBlks() { return( numLocalReducedEqnBlks_ ); }
int getGlobalMaxBlkSize() { return(globalMaxBlkSize_); }
int getNumLocalReducedEqns() { return( numLocalReducedRows_ ); }
int getMatrixRowLengths(std::vector<int>& rowLengths);
int getMatrixStructure(int** colIndices, std::vector<int>& rowLengths);
int getMatrixStructure(int** ptColIndices, std::vector<int>& ptRowLengths,
int** blkColIndices, int* blkIndices_1D,
std::vector<int>& blkRowLengths,
std::vector<int>& numPtRowsPerBlkRow);
static int gatherSlaveEqns(MPI_Comm comm,
EqnCommMgr* eqnCommMgr,
EqnBuffer* slaveEqns);
static int removeCouplings(EqnBuffer& eqnbuf, int& levelsOfCoupling);
int calcTotalNumElemDOF();
int calcNumMultCREqns();
MPI_Comm getCommunicator() const { return( comm_ ); }
#ifdef FEI_HAVE_IOSFWD
int setDbgOut(std::ostream& ostr, const char* path, const char* feiName);
#else
int setDbgOut(ostream& ostr, const char* path, const char* feiName);
#endif
private:
NodeDescriptor& findNodeDescriptor(GlobalID nodeID);
int writeEqn2NodeMap();
int getElemNodeDescriptors(int blockIndex, int elemIndex,
NodeDescriptor** nodes);
int getNodeIndices_simple(NodeDescriptor** nodes, int numNodes,
int fieldID,
int* scatterIndices, int& offset);
int getNodeIndices_simple(NodeDescriptor** nodes, int numNodes,
int fieldID,
int* scatterIndices, int& offset,
int* blkScatterIndices,
int* blkSizes, int& blkOffset);
int getNodeMajorIndices(NodeDescriptor** nodes, int numNodes,
int** fieldIDs, int* fieldsPerNode,
int* scatterIndices, int& offset);
int getNodeBlkIndices(NodeDescriptor** nodes, int numNodes,
int* scatterIndices, int& offset);
int getNodeMajorIndices(NodeDescriptor** nodes, int numNodes,
int** fieldIDs, int* fieldsPerNode,
int* scatterIndices, int& offset,
int* blkScatterIndices,
int* blkSizes, int& blkOffset);
int getNodeMajorIndices(NodeDescriptor** nodes, int numNodes,
std::vector<int>* fieldIDs,
std::vector<int>& fieldsPerNode,
std::vector<int>& scatterIndices);
int getFieldMajorIndices(NodeDescriptor** nodes, int numNodes,
int** fieldIDs, int* fieldsPerNode,
int* scatterIndices, int& offset);
int getFieldMajorIndices(NodeDescriptor** nodes, int numNodes,
std::vector<int>* fieldIDs,
std::vector<int>& fieldsPerNode,
std::vector<int>& scatterIndices);
void calcGlobalEqnInfo(int numLocallyOwnedNodes,
int numLocalEqns,
int numLocalEqnBlks);
int finalizeActiveNodes();
int finalizeNodeCommMgr();
bool activeNodesInitialized();
int formMatrixStructure();
int initElemBlockStructure();
int initMultCRStructure();
int initPenCRStructure();
int createMatrixPosition(int row, int col, const char* callingFunction);
int createMatrixPositions(int row, int numCols, int* cols,
const char* callingFunction);
int createMatrixPositions(fei::CSRMat& mat);
int createSymmEqnStructure(std::vector<int>& scatterIndices);
int createBlkSymmEqnStructure(std::vector<int>& scatterIndices);
int storeElementScatterIndices(std::vector<int>& scatterIndices);
int storeElementScatterIndices_noSlaves(std::vector<int>& scatterIndices);
int storeElementScatterBlkIndices_noSlaves(std::vector<int>& scatterIndices);
void storeLocalNodeIndices(NodeDescriptor& iNode, int iField,
NodeDescriptor& jNode, int jField);
void storeNodalColumnIndices(int eqn, NodeDescriptor& node,
int fieldID);
void storeNodalRowIndices(NodeDescriptor& node, int fieldID, int eqn);
void storeNodalSendIndex(NodeDescriptor& node, int fieldID, int col);
void storeNodalSendIndices(NodeDescriptor& iNode, int iField,
NodeDescriptor& jNode, int jField);
int assembleReducedStructure();
bool nodalEqnsAllSlaves(const NodeDescriptor* node, std::vector<int>& slaveEqns);
int initializeBlkEqnMapper();
int setNumNodesAndEqnsPerBlock();
void destroyBlockRoster();
#ifdef FEI_HAVE_IOSFWD
std::ostream& dbgOut() { return( *dbgOStreamPtr_ ); }
#else
ostream& dbgOut() { return( *dbgOStreamPtr_ ); }
#endif
void addCR(int CRID,
snl_fei::Constraint<GlobalID>*& cr,
std::map<GlobalID,snl_fei::Constraint<GlobalID>* >& crDB);
int setNodalEqnInfo();
void setElemDOFEqnInfo();
int setMultCREqnInfo();
SNL_FEI_Structure(const SNL_FEI_Structure& src);
SNL_FEI_Structure& operator=(const SNL_FEI_Structure& src);
MPI_Comm comm_;
int localProc_, masterProc_, numProcs_;
std::map<int,int>* fieldDatabase_;
fei::FieldDofMap<int> fieldDofMap_;
std::vector<int> workarray_;
std::vector<GlobalID> blockIDs_;
std::vector<BlockDescriptor*> blocks_;
std::vector<ConnectivityTable*> connTables_;
NodeDatabase* nodeDatabase_;
bool activeNodesInitialized_;
std::vector<int> globalNodeOffsets_;
std::vector<int> globalEqnOffsets_;
std::vector<int> globalBlkEqnOffsets_;
std::vector<SlaveVariable*>* slaveVars_;
EqnBuffer* slaveEqns_;
std::vector<int>* slvEqnNumbers_;
int numSlvs_, lowestSlv_, highestSlv_;
fei::FillableMat* slaveMatrix_;
std::vector<int> globalNumNodesVanished_;
std::vector<int> localVanishedNodeNumbers_;
NodeCommMgr* nodeCommMgr_;
EqnCommMgr* eqnCommMgr_;
EqnCommMgr* slvCommMgr_;
int numGlobalEqns_;
int numLocalEqns_;
int localStartRow_;
int localEndRow_;
int numLocalNodalEqns_;
int numLocalElemDOF_;
int numLocalMultCRs_;
int reducedStartRow_, reducedEndRow_, numLocalReducedRows_;
fei::FillableMat *Kid_, *Kdi_, *Kdd_;
fei::CSRMat csrD, csrKid, csrKdi, csrKdd, tmpMat1_, tmpMat2_;
int reducedEqnCounter_, reducedRHSCounter_;
std::vector<int> rSlave_, cSlave_;
std::vector<NodeDescriptor*> work_nodePtrs_;
bool structureFinalized_;
bool generateGraph_;
fei::ctg_set<int>* sysMatIndices_;
bool blockMatrix_;
int numGlobalEqnBlks_;
int numLocalEqnBlks_;
int numLocalReducedEqnBlks_;
int localBlkOffset_;
int localReducedBlkOffset_;
int globalMaxBlkSize_;
int firstLocalNodeNumber_;
int numGlobalNodes_;
fei::ctg_set<int>* sysBlkMatIndices_;
bool matIndicesDestroyed_;
std::vector<int> workSpace_;
snl_fei::PointBlockMap* blkEqnMapper_;
std::map<GlobalID, snl_fei::Constraint<GlobalID>* > multCRs_;
std::map<GlobalID, snl_fei::Constraint<GlobalID>* > penCRs_;
bool checkSharedNodes_;
std::string name_;
int outputLevel_;
bool debugOutput_;
std::string dbgPath_;
#ifdef FEI_HAVE_IOSFWD
std::ostream* dbgOStreamPtr_;
#else
ostream* dbgOStreamPtr_;
#endif
bool setDbgOutCalled_;
};
#endif
|