v0.14.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MoFEM::OpSchurAssembleEndImpl< OP_SCHUR_ASSEMBLE_BASE > Struct Template Reference

Assemble Schur complement (Implementation) More...

Inheritance diagram for MoFEM::OpSchurAssembleEndImpl< OP_SCHUR_ASSEMBLE_BASE >:
[legend]
Collaboration diagram for MoFEM::OpSchurAssembleEndImpl< OP_SCHUR_ASSEMBLE_BASE >:
[legend]

Public Types

using OP = OP_SCHUR_ASSEMBLE_BASE
 

Public Member Functions

 OpSchurAssembleEndImpl (std::vector< std::string > fields_name, std::vector< boost::shared_ptr< Range >> field_ents, SmartPetscObj< AO > schur_ao, SmartPetscObj< Mat > schur_mat, bool sym_schur, bool symm_op)
 Construct a new Op Schur Assemble End object. More...
 

Protected Member Functions

template<typename I >
MoFEMErrorCode doWorkImpl (int side, EntityType type, EntitiesFieldData::EntData &data)
 

Protected Attributes

std::vector< std::string > fieldsName
 
std::vector< boost::shared_ptr< Range > > fieldEnts
 
SmartPetscObj< AO > schurAO
 
SmartPetscObj< Mat > schurMat
 
bool symSchur
 
MatrixDouble blockMat
 
MatrixDouble invMat
 
MatrixDouble bM
 
MatrixDouble abM
 
MatrixDouble abcM
 

Detailed Description

template<typename OP_SCHUR_ASSEMBLE_BASE>
struct MoFEM::OpSchurAssembleEndImpl< OP_SCHUR_ASSEMBLE_BASE >

Assemble Schur complement (Implementation)

Definition at line 74 of file Schur.cpp.

Member Typedef Documentation

◆ OP

template<typename OP_SCHUR_ASSEMBLE_BASE >
using MoFEM::OpSchurAssembleEndImpl< OP_SCHUR_ASSEMBLE_BASE >::OP = OP_SCHUR_ASSEMBLE_BASE

Definition at line 76 of file Schur.cpp.

Constructor & Destructor Documentation

◆ OpSchurAssembleEndImpl()

template<typename OP_SCHUR_ASSEMBLE_BASE >
MoFEM::OpSchurAssembleEndImpl< OP_SCHUR_ASSEMBLE_BASE >::OpSchurAssembleEndImpl ( std::vector< std::string >  fields_name,
std::vector< boost::shared_ptr< Range >>  field_ents,
SmartPetscObj< AO >  schur_ao,
SmartPetscObj< Mat >  schur_mat,
bool  sym_schur,
bool  symm_op 
)

Construct a new Op Schur Assemble End object.

Parameters
fields_namelist of fields
field_entslist of entities on which schur complement is applied (can be empty)
schur_aomap indices to schur matrix indices
schur_matschur matrix
sym_schurtrue if schur is symmetric
symm_optrue if block diagonal is symmetric

Definition at line 510 of file Schur.cpp.

515  : OP(NOSPACE, OP::OPSPACE, symm_op), fieldsName(fields_name),
516  fieldEnts(field_ents), schurAO(schur_ao), schurMat(schur_mat),
517  symSchur(sym_schur) {}

Member Function Documentation

◆ doWorkImpl()

template<typename OP_SCHUR_ASSEMBLE_BASE >
template<typename I >
MoFEMErrorCode MoFEM::OpSchurAssembleEndImpl< OP_SCHUR_ASSEMBLE_BASE >::doWorkImpl ( int  side,
EntityType  type,
EntitiesFieldData::EntData data 
)
protected

Definition at line 521 of file Schur.cpp.

522  {
523 
525 
526 #ifndef NDEBUG
527  PetscLogEventBegin(SchurEvents::MOFEM_EVENT_opSchurAssembleEnd, 0, 0, 0, 0);
528 #endif
529 
530 #ifndef NDEBUG
531  if constexpr (debug_schur)
532  MOFEM_LOG("SELF", Sev::noisy) << "Schur assemble begin -> end";
533 #endif
534 
535  auto get_field_name = [&](auto uid) {
536  return OP::getPtrFE()->mField.get_field_name(field_bit_from_bit_number(
538  };
539 
540  auto get_a00_uids = [&]() {
541  auto get_field_bit = [&](auto &name) {
542  return OP::getPtrFE()->mField.get_field_bit_number(name);
543  };
544 
545  std::vector<std::pair<UId, UId>> a00_uids;
546  a00_uids.reserve(fieldsName.size());
547  for (auto ss = 0; ss != fieldsName.size(); ++ss) {
548  auto field_bit = get_field_bit(fieldsName[ss]);
549  auto row_ents = fieldEnts[ss];
550  if (row_ents) {
551  for (auto p = row_ents->pair_begin(); p != row_ents->pair_end(); ++p) {
552  auto lo_uid =
553  FieldEntity::getLoLocalEntityBitNumber(field_bit, p->first);
554  auto hi_uid =
555  FieldEntity::getHiLocalEntityBitNumber(field_bit, p->second);
556  a00_uids.push_back(std::make_pair(lo_uid, hi_uid));
557  }
558  } else {
560  field_bit, get_id_for_min_type<MBVERTEX>());
562  field_bit, get_id_for_max_type<MBENTITYSET>());
563  a00_uids.push_back(std::make_pair(lo_uid, hi_uid));
564  }
565  }
566  return a00_uids;
567  };
568 
569 #ifndef NDEBUG
570  auto list_storage = [&](auto &storage) {
572  int i = 0;
573  for (auto &p : storage) {
574  MOFEM_LOG("SELF", Sev::noisy)
575  << "List schur storage: " << i << " " << p->iDX << ": "
576  << get_field_name(p->uidRow) << " " << get_field_name(p->uidCol)
577  << " : " << p->getMat().size1() << " " << p->getMat().size2();
578  ++i;
579  }
581  };
582 #endif // NDEBUG
583 
584  auto assemble_dense_blocks = [&]() {
585  using matrix_range = ublas::matrix_range<MatrixDouble>;
586  using range = ublas::range;
588  auto &storage = SchurElemMats::schurL2Storage;
589 
590  auto assemble_schur = [this](auto &m, auto &uid_row, auto &uid_col,
591  auto *row_ind_ptr, auto *col_ind_ptr) {
593 
594  if (schurMat) {
595 
596  if (auto ierr = this->assembleSchurMat(
597 
598  schurMat, uid_row, *row_ind_ptr, uid_col, *col_ind_ptr, m,
599  ADD_VALUES
600 
601  )) {
602 #ifndef NDEBUG
603  auto field_ents = OP::getPtrFE()->mField.get_field_ents();
604  auto row_ent_it = field_ents->find(uid_row);
605  auto col_ent_it = field_ents->find(uid_col);
606  MOFEM_LOG_CHANNEL("SELF");
607  if (row_ent_it != field_ents->end())
608  MOFEM_LOG("SELF", Sev::error)
609  << "Assemble row entity: " << (*row_ent_it)->getName() << " "
610  << (*col_ent_it)->getEntTypeName() << " side "
611  << (*row_ent_it)->getSideNumber();
612  if (col_ent_it != field_ents->end())
613  MOFEM_LOG("SELF", Sev::error)
614  << "Assemble col entity: " << (*col_ent_it)->getName() << " "
615  << (*col_ent_it)->getEntTypeName() << " side "
616  << (*col_ent_it)->getSideNumber();
617 #endif // NDEBUG
618  CHK_THROW_MESSAGE(ierr, "MatSetValues");
619  }
620  }
621 
623  };
624 
625  auto a00_uids = get_a00_uids();
626 
627  auto get_block_indexing = [&](auto &a00_uids) {
628  // iterate over a00 uids and find blocks
629  std::vector<const SchurElemMats *> block_list;
630  block_list.reserve(storage.size());
631  for (auto &rp_uid : a00_uids) {
632  auto [rlo_uid, rhi_uid] = rp_uid;
633  for (auto &cp_uid : a00_uids) {
634  auto [clo_uid, chi_uid] = cp_uid;
635 
636  auto it =
637  storage.template get<SchurElemMats::uid_mi_tag>().lower_bound(
638  boost::make_tuple(rlo_uid, clo_uid));
639  auto hi_it =
640  storage.template get<SchurElemMats::uid_mi_tag>().upper_bound(
641  boost::make_tuple(rhi_uid, chi_uid));
642 
643  for (; it != hi_it; ++it) {
644  if ((*it)->uidRow >= rlo_uid && (*it)->uidRow < rhi_uid &&
645  (*it)->uidCol >= clo_uid && (*it)->uidCol < chi_uid) {
646  block_list.push_back(*it);
647  }
648  }
649  }
650  }
651 
652  // create block indexes map for blockMat
653  std::map<UId, std::pair<size_t, const VectorInt *>>
654  block_indexing; // uid block map
655  for (auto d : block_list) {
656  if (block_indexing.find(d->uidRow) == block_indexing.end()) {
657  block_indexing[d->uidRow] =
658  std::make_pair(d->getRowInd().size(), &(d->getRowInd()));
659  }
660  }
661 
662  // set indexes to block
663  int mat_block_size = 0; // size of block matrix
664  for (auto &p_uid : a00_uids) {
665  auto [lo_uid, hi_uid] = p_uid;
666  auto lo = block_indexing.lower_bound(lo_uid);
667  auto up = block_indexing.upper_bound(hi_uid);
668  for (; lo != up; ++lo) {
669  lo->second.first = mat_block_size;
670  mat_block_size += lo->second.second->size();
671  }
672  }
673 
674  return std::make_tuple(block_list, block_indexing, mat_block_size);
675  };
676 
677  auto get_schur_block_list = [&](auto &block_indexing) {
678  std::vector<const SchurElemMats *> block_list;
679  block_list.reserve(storage.size());
680  for (auto &s : storage) {
681  if (block_indexing.find(s->uidRow) == block_indexing.end() &&
682  block_indexing.find(s->uidCol) == block_indexing.end()) {
683  block_list.push_back(s);
684  }
685  }
686  return block_list;
687  };
688 
689  auto [block_list, block_indexing, block_mat_size] =
690  get_block_indexing(a00_uids);
691 
692  if (block_mat_size == 0) {
693 
694  if (schurAO) {
695  for (auto &s : storage) {
696  CHKERR AOApplicationToPetsc(schurAO, s->getRowInd().size(),
697  &*s->getRowInd().begin());
698  CHKERR AOApplicationToPetsc(schurAO, s->getColInd().size(),
699  &*s->getColInd().begin());
700  }
701  }
702 
703  for (auto &s : storage) {
704  auto &m = s->getMat();
705  CHKERR assemble_schur(m, s->uidRow, s->uidCol, &(s->getRowInd()),
706  &(s->getColInd()));
707  }
709  }
710 
711  blockMat.resize(block_mat_size, block_mat_size, false);
712  blockMat.clear();
713 
714  auto get_range = [](auto &bi) {
715  return range(bi.first, bi.first + bi.second->size());
716  };
717 
718  for (auto &s : block_list) {
719  auto &m = s->getMat();
720 #ifndef NDEBUG
721  if (block_indexing.find(s->uidRow) == block_indexing.end())
722  SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY, "Wrong rlo_uid");
723  if (block_indexing.find(s->uidCol) == block_indexing.end())
724  SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY, "Wrong clo_uid");
725 #endif // NDEBUG
726 
727  auto &rbi = block_indexing.at(s->uidRow);
728  auto &cbi = block_indexing.at(s->uidCol);
729 
730  auto sub_mat = matrix_range(blockMat, get_range(rbi), get_range(cbi));
731  sub_mat = m;
732  }
733 
734  auto get_zeroed_indices = [&](auto extractor_uid, auto extractor_ind) {
735  std::vector<int> zeroed_indices;
736  zeroed_indices.reserve(block_mat_size);
737  for (auto &s : block_list) {
738  auto &bi = block_indexing.at(extractor_uid(s));
739  auto &ind = extractor_ind(s);
740  for (auto it = ind.begin(); it != ind.end(); ++it) {
741  if (*it < 0) {
742  auto idx = bi.first + std::distance(ind.begin(), it);
743  zeroed_indices.push_back(idx);
744  }
745  }
746  }
747  std::sort(zeroed_indices.begin(), zeroed_indices.end());
748  auto it = std::unique(zeroed_indices.begin(), zeroed_indices.end());
749  zeroed_indices.resize(std::distance(zeroed_indices.begin(), it));
750  return zeroed_indices;
751  };
752  auto zero_rows = get_zeroed_indices(
753  [](auto &s) { return s->uidRow; },
754  [](auto &s) -> VectorInt & { return s->getRowInd(); });
755  auto zero_cols = get_zeroed_indices(
756  [](auto &s) { return s->uidCol; },
757  [](auto &s) -> VectorInt & { return s->getColInd(); });
758 
759  for (auto i : zero_rows) {
760  for (auto j = 0; j != blockMat.size2(); ++j) {
761  blockMat(i, j) = 0;
762  }
763  }
764  for (auto j : zero_cols) {
765  for (auto i = 0; i != blockMat.size1(); ++i) {
766  blockMat(i, j) = 0;
767  }
768  }
769  for (auto i : zero_rows) {
770  blockMat(i, i) = 1;
771  }
772 
773  CHKERR I::invertMat(blockMat, invMat);
774 
775  // clear storage and block list from a00 blocks, no more needed
776  for (auto &s : block_list) {
777  auto it = storage.template get<SchurElemMats::uid_mi_tag>().find(
778  boost::make_tuple(s->uidRow, s->uidCol));
779  storage.template get<SchurElemMats::uid_mi_tag>().erase(it);
780  }
781  block_list.clear();
782 
783  if (schurAO) {
784  for (auto &s : storage) {
785  if (block_indexing.find(s->uidRow) == block_indexing.end()) {
786  CHKERR AOApplicationToPetsc(schurAO, s->getRowInd().size(),
787  &*s->getRowInd().begin());
788  }
789  if (block_indexing.find(s->uidCol) == block_indexing.end()) {
790  CHKERR AOApplicationToPetsc(schurAO, s->getColInd().size(),
791  &*s->getColInd().begin());
792  }
793  }
794  }
795 
796  auto schur_block_list = get_schur_block_list(block_indexing);
797  for(auto &s : schur_block_list) {
798  auto &m = s->getMat();
799  CHKERR assemble_schur(m, s->uidRow, s->uidCol, &(s->getRowInd()),
800  &(s->getColInd()));
801  }
802  for (auto &s : schur_block_list) {
803  auto it = storage.template get<SchurElemMats::uid_mi_tag>().find(
804  boost::make_tuple(s->uidRow, s->uidCol));
805  storage.template get<SchurElemMats::uid_mi_tag>().erase(it);
806  }
807  schur_block_list.clear();
808 
809  for (
810 
811  auto rp_uid_it = a00_uids.begin(); rp_uid_it != a00_uids.end();
812  ++rp_uid_it
813 
814  ) {
815  auto [rlo_uid, rhi_uid] = *rp_uid_it;
816  for (auto rm = block_indexing.lower_bound(rlo_uid);
817  rm != block_indexing.upper_bound(rhi_uid); ++rm) {
818  auto &rbi = rm->second;
819 
820  auto a_lo_tmp =
821  storage.template get<SchurElemMats::col_mi_tag>().lower_bound(
822  rm->first);
823  auto a_hi =
824  storage.template get<SchurElemMats::col_mi_tag>().upper_bound(
825  rm->first);
826 
827  for (
828 
829  auto cp_uid_it = (symSchur) ? rp_uid_it : a00_uids.begin();
830  cp_uid_it != a00_uids.end(); ++cp_uid_it
831 
832  ) {
833  auto [clo_uid, chi_uid] = *cp_uid_it;
834  for (auto cm = block_indexing.lower_bound(clo_uid);
835  cm != block_indexing.upper_bound(chi_uid); ++cm) {
836  auto &cbi = cm->second;
837 
838  auto c_lo_tmp =
839  storage.template get<SchurElemMats::uid_mi_tag>().lower_bound(
840  boost::make_tuple(cm->first, 0));
841  auto c_hi =
842  storage.template get<SchurElemMats::uid_mi_tag>().upper_bound(
843  boost::make_tuple(cm->first, FieldEntity::getHiBitNumberUId(
844  BITFIELDID_SIZE - 1)));
845 
846  auto sub_inv_mat =
847  matrix_range(invMat, get_range(rbi), get_range(cbi));
848  bM.resize(sub_inv_mat.size1(), sub_inv_mat.size2());
849  noalias(bM) = sub_inv_mat;
850 
851  for (auto a_lo = a_lo_tmp; a_lo != a_hi; ++a_lo) {
852 #ifndef NDEBUG
853  if (block_indexing.find((*a_lo)->uidRow) != block_indexing.end())
854  SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
855  "Wrong a_lo->uidRow");
856 #endif
857 
858  auto &a = (*a_lo)->getMat();
859  abM.resize(a.size1(), bM.size2(), false);
860  abM.clear();
861  cblas_dgemm(CblasRowMajor, CblasNoTrans, CblasNoTrans,
862 
863  a.size1(), bM.size2(), a.size2(), 1.,
864 
865  &*a.data().begin(), a.size2(),
866 
867  &*bM.data().begin(), bM.size2(), 0.,
868 
869  &*abM.data().begin(), abM.size2());
870 
871  for (auto c_lo = c_lo_tmp; c_lo != c_hi; ++c_lo) {
872 #ifndef NDEBUG
873  if (block_indexing.find((*c_lo)->uidCol) !=
874  block_indexing.end())
875  SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
876  "Wrong a_lo->uidRow");
877 #endif
878 
879  auto &c = (*c_lo)->getMat();
880 
881  abcM.resize(abM.size1(), c.size2(), false);
882  abcM.clear();
883 
884  cblas_dgemm(CblasRowMajor, CblasNoTrans, CblasNoTrans,
885  abM.size1(), c.size2(), abM.size2(), -1.,
886 
887  &*abM.data().begin(), abM.size2(),
888 
889  &*c.data().begin(), c.size2(), 0.,
890 
891  &*abcM.data().begin(), abcM.size2());
892 
893  CHKERR assemble_schur(abcM, (*a_lo)->uidRow, (*c_lo)->uidCol,
894  &((*a_lo)->getRowInd()),
895  &((*c_lo)->getColInd()));
896 
897  if (symSchur && rp_uid_it != cp_uid_it) {
898  abcM = trans(abcM);
899  CHKERR assemble_schur(abcM, (*c_lo)->uidCol, (*a_lo)->uidRow,
900  &((*c_lo)->getColInd()),
901  &((*a_lo)->getRowInd()));
902  }
903  }
904  }
905  }
906  }
907  }
908  }
909 
911  };
912 
913  // Assemble Schur complements
914  CHKERR assemble_dense_blocks();
915 
916 #ifndef NDEBUG
917  if constexpr (debug_schur)
918  MOFEM_LOG("SELF", Sev::noisy) << "Schur assemble done";
919 #endif
920 
921 #ifndef NDEBUG
922  PetscLogEventEnd(SchurEvents::MOFEM_EVENT_opSchurAssembleEnd, 0, 0, 0, 0);
923 #endif
924 
926 }

Member Data Documentation

◆ abcM

template<typename OP_SCHUR_ASSEMBLE_BASE >
MatrixDouble MoFEM::OpSchurAssembleEndImpl< OP_SCHUR_ASSEMBLE_BASE >::abcM
protected

Definition at line 114 of file Schur.cpp.

◆ abM

template<typename OP_SCHUR_ASSEMBLE_BASE >
MatrixDouble MoFEM::OpSchurAssembleEndImpl< OP_SCHUR_ASSEMBLE_BASE >::abM
protected

Definition at line 114 of file Schur.cpp.

◆ blockMat

template<typename OP_SCHUR_ASSEMBLE_BASE >
MatrixDouble MoFEM::OpSchurAssembleEndImpl< OP_SCHUR_ASSEMBLE_BASE >::blockMat
protected

Definition at line 112 of file Schur.cpp.

◆ bM

template<typename OP_SCHUR_ASSEMBLE_BASE >
MatrixDouble MoFEM::OpSchurAssembleEndImpl< OP_SCHUR_ASSEMBLE_BASE >::bM
protected

Definition at line 114 of file Schur.cpp.

◆ fieldEnts

template<typename OP_SCHUR_ASSEMBLE_BASE >
std::vector<boost::shared_ptr<Range> > MoFEM::OpSchurAssembleEndImpl< OP_SCHUR_ASSEMBLE_BASE >::fieldEnts
protected

Definition at line 107 of file Schur.cpp.

◆ fieldsName

template<typename OP_SCHUR_ASSEMBLE_BASE >
std::vector<std::string> MoFEM::OpSchurAssembleEndImpl< OP_SCHUR_ASSEMBLE_BASE >::fieldsName
protected

Definition at line 106 of file Schur.cpp.

◆ invMat

template<typename OP_SCHUR_ASSEMBLE_BASE >
MatrixDouble MoFEM::OpSchurAssembleEndImpl< OP_SCHUR_ASSEMBLE_BASE >::invMat
protected

Definition at line 113 of file Schur.cpp.

◆ schurAO

template<typename OP_SCHUR_ASSEMBLE_BASE >
SmartPetscObj<AO> MoFEM::OpSchurAssembleEndImpl< OP_SCHUR_ASSEMBLE_BASE >::schurAO
protected

Definition at line 108 of file Schur.cpp.

◆ schurMat

template<typename OP_SCHUR_ASSEMBLE_BASE >
SmartPetscObj<Mat> MoFEM::OpSchurAssembleEndImpl< OP_SCHUR_ASSEMBLE_BASE >::schurMat
protected

Definition at line 109 of file Schur.cpp.

◆ symSchur

template<typename OP_SCHUR_ASSEMBLE_BASE >
bool MoFEM::OpSchurAssembleEndImpl< OP_SCHUR_ASSEMBLE_BASE >::symSchur
protected

Definition at line 110 of file Schur.cpp.


The documentation for this struct was generated from the following file:
NOSPACE
@ NOSPACE
Definition: definitions.h:83
MoFEMFunctionReturnHot
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:460
MoFEM::OpSchurAssembleEndImpl::invMat
MatrixDouble invMat
Definition: Schur.cpp:113
MoFEM::field_bit_from_bit_number
auto field_bit_from_bit_number(const int bit_number)
get field bit id from bit number
Definition: Templates.hpp:1930
MOFEM_LOG_CHANNEL
#define MOFEM_LOG_CHANNEL(channel)
Set and reset channel.
Definition: LogManager.hpp:284
MoFEM::FieldEntity::getLoLocalEntityBitNumber
static UId getLoLocalEntityBitNumber(const char bit_number, const EntityHandle ent)
Definition: FieldEntsMultiIndices.hpp:247
CHK_THROW_MESSAGE
#define CHK_THROW_MESSAGE(err, msg)
Check and throw MoFEM exception.
Definition: definitions.h:609
MoFEM::OpSchurAssembleEndImpl::fieldEnts
std::vector< boost::shared_ptr< Range > > fieldEnts
Definition: Schur.cpp:107
MoFEM::OpSchurAssembleEndImpl::bM
MatrixDouble bM
Definition: Schur.cpp:114
MoFEM::debug_schur
constexpr bool debug_schur
Definition: Schur.cpp:12
c
const double c
speed of light (cm/ns)
Definition: initial_diffusion.cpp:39
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:548
MoFEM::OpSchurAssembleEndImpl::symSchur
bool symSchur
Definition: Schur.cpp:110
MoFEM::OpSchurAssembleEndImpl::abM
MatrixDouble abM
Definition: Schur.cpp:114
a
constexpr double a
Definition: approx_sphere.cpp:30
BITFIELDID_SIZE
#define BITFIELDID_SIZE
max number of fields
Definition: definitions.h:233
MoFEM::OpSchurAssembleEndImpl::blockMat
MatrixDouble blockMat
Definition: Schur.cpp:112
MoFEM::OpSchurAssembleEndImpl::abcM
MatrixDouble abcM
Definition: Schur.cpp:114
MoFEM::SchurElemMats::schurL2Storage
static SchurElemStorage schurL2Storage
Definition: Schur.cpp:203
MoFEM::SchurEvents::MOFEM_EVENT_opSchurAssembleEnd
static PetscLogEvent MOFEM_EVENT_opSchurAssembleEnd
Definition: Schur.hpp:28
i
FTensor::Index< 'i', SPACE_DIM > i
Definition: hcurl_divergence_operator_2d.cpp:27
MoFEM::OpSchurAssembleEndImpl::fieldsName
std::vector< std::string > fieldsName
Definition: Schur.cpp:106
MoFEM::OpSchurAssembleEndImpl::schurMat
SmartPetscObj< Mat > schurMat
Definition: Schur.cpp:109
MOFEM_LOG
#define MOFEM_LOG(channel, severity)
Log.
Definition: LogManager.hpp:308
MoFEM::Types::VectorInt
UBlasVector< int > VectorInt
Definition: Types.hpp:67
j
FTensor::Index< 'j', 3 > j
Definition: matrix_function.cpp:19
MoFEM::Exceptions::ierr
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Exceptions.hpp:76
MOFEM_DATA_INCONSISTENCY
@ MOFEM_DATA_INCONSISTENCY
Definition: definitions.h:31
sdf_hertz_2d_axisymm_plane.d
float d
Definition: sdf_hertz_2d_axisymm_plane.py:4
MoFEM::FieldEntity::getHiBitNumberUId
static UId getHiBitNumberUId(const FieldBitNumber bit_number)
Definition: FieldEntsMultiIndices.hpp:228
MoFEM::FieldEntity::getHiLocalEntityBitNumber
static UId getHiLocalEntityBitNumber(const char bit_number, const EntityHandle ent)
Definition: FieldEntsMultiIndices.hpp:258
MoFEM::OpSchurAssembleEndImpl::OP
OP_SCHUR_ASSEMBLE_BASE OP
Definition: Schur.cpp:76
m
FTensor::Index< 'm', 3 > m
Definition: shallow_wave.cpp:80
sdf_wavy_2d.ind
float ind
Definition: sdf_wavy_2d.py:7
MoFEM::OpSchurAssembleEndImpl::schurAO
SmartPetscObj< AO > schurAO
Definition: Schur.cpp:108
MoFEM::FieldEntity::getFieldBitNumberFromUniqueId
static auto getFieldBitNumberFromUniqueId(const UId uid)
Get the Field Bit Number From Unique Id.
Definition: FieldEntsMultiIndices.hpp:205
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:429
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:359