v0.12.1
Public Member Functions | Public Attributes | List of all members
MixTransport::UnsaturatedFlowElement::postProcessVol Struct Reference

Post proces method for volume element Assemble vectors and matrices and apply essential boundary conditions. More...

#include <users_modules/tutorials/cor-0to1/src/UnsaturatedFlow.hpp>

Collaboration diagram for MixTransport::UnsaturatedFlowElement::postProcessVol:
[legend]

Public Member Functions

 postProcessVol (UnsaturatedFlowElement &ctx, boost::shared_ptr< ForcesAndSourcesCore > &fe_ptr)
 
MoFEMErrorCode operator() ()
 

Public Attributes

UnsaturatedFlowElementcTx
 
boost::shared_ptr< ForcesAndSourcesCore > fePtr
 

Detailed Description

Post proces method for volume element Assemble vectors and matrices and apply essential boundary conditions.

Definition at line 1404 of file UnsaturatedFlow.hpp.

Constructor & Destructor Documentation

◆ postProcessVol()

MixTransport::UnsaturatedFlowElement::postProcessVol::postProcessVol ( UnsaturatedFlowElement ctx,
boost::shared_ptr< ForcesAndSourcesCore > &  fe_ptr 
)
Examples
UnsaturatedFlow.hpp.

Definition at line 1408 of file UnsaturatedFlow.hpp.

1412  : cTx(ctx), fePtr(fe_ptr) /*,mArk(mark)*/ {}
boost::shared_ptr< ForcesAndSourcesCore > fePtr

Member Function Documentation

◆ operator()()

MoFEMErrorCode MixTransport::UnsaturatedFlowElement::postProcessVol::operator() ( )
Examples
UnsaturatedFlow.hpp.

Definition at line 1413 of file UnsaturatedFlow.hpp.

1413  {
1415  switch (fePtr->ts_ctx) {
1416  case TSMethod::CTX_TSSETIJACOBIAN: {
1417  CHKERR MatAssemblyBegin(fePtr->ts_B, MAT_FINAL_ASSEMBLY);
1418  CHKERR MatAssemblyEnd(fePtr->ts_B, MAT_FINAL_ASSEMBLY);
1419  // MatView(fePtr->ts_B,PETSC_VIEWER_DRAW_WORLD);
1420  // std::string wait;
1421  // std::cin >> wait;
1422  CHKERR MatZeroRowsColumns(fePtr->ts_B, cTx.bcVecIds.size(),
1423  &*cTx.bcVecIds.begin(), 1, PETSC_NULL,
1424  PETSC_NULL);
1425  CHKERR MatAssemblyBegin(fePtr->ts_B, MAT_FINAL_ASSEMBLY);
1426  CHKERR MatAssemblyEnd(fePtr->ts_B, MAT_FINAL_ASSEMBLY);
1427  // MatView(fePtr->ts_B,PETSC_VIEWER_DRAW_WORLD);
1428  // std::string wait;
1429  // std::cin >> wait;
1430  } break;
1431  case TSMethod::CTX_TSSETIFUNCTION: {
1432  CHKERR VecAssemblyBegin(fePtr->ts_F);
1433  CHKERR VecAssemblyEnd(fePtr->ts_F);
1434  if (!cTx.bcVecIds.empty()) {
1436  CHKERR VecSetValues(fePtr->ts_F, cTx.bcVecIds.size(),
1437  &*cTx.bcVecIds.begin(), &*cTx.vecValsOnBc.begin(),
1438  INSERT_VALUES);
1439  }
1440  CHKERR VecAssemblyBegin(fePtr->ts_F);
1441  CHKERR VecAssemblyEnd(fePtr->ts_F);
1442  } break;
1443  default:
1444  // don nothing
1445  break;
1446  }
1448  }
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:359
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:429
#define CHKERR
Inline error check.
Definition: definitions.h:548

Member Data Documentation

◆ cTx

UnsaturatedFlowElement& MixTransport::UnsaturatedFlowElement::postProcessVol::cTx
Examples
UnsaturatedFlow.hpp.

Definition at line 1405 of file UnsaturatedFlow.hpp.

◆ fePtr

boost::shared_ptr<ForcesAndSourcesCore> MixTransport::UnsaturatedFlowElement::postProcessVol::fePtr
Examples
UnsaturatedFlow.hpp.

Definition at line 1406 of file UnsaturatedFlow.hpp.


The documentation for this struct was generated from the following file: