v0.13.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 1390 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 1394 of file UnsaturatedFlow.hpp.

1398 : 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 1399 of file UnsaturatedFlow.hpp.

1399 {
1401 switch (fePtr->ts_ctx) {
1402 case TSMethod::CTX_TSSETIJACOBIAN: {
1403 CHKERR MatAssemblyBegin(fePtr->ts_B, MAT_FINAL_ASSEMBLY);
1404 CHKERR MatAssemblyEnd(fePtr->ts_B, MAT_FINAL_ASSEMBLY);
1405 // MatView(fePtr->ts_B,PETSC_VIEWER_DRAW_WORLD);
1406 // std::string wait;
1407 // std::cin >> wait;
1408 CHKERR MatZeroRowsColumns(fePtr->ts_B, cTx.bcVecIds.size(),
1409 &*cTx.bcVecIds.begin(), 1, PETSC_NULL,
1410 PETSC_NULL);
1411 CHKERR MatAssemblyBegin(fePtr->ts_B, MAT_FINAL_ASSEMBLY);
1412 CHKERR MatAssemblyEnd(fePtr->ts_B, MAT_FINAL_ASSEMBLY);
1413 // MatView(fePtr->ts_B,PETSC_VIEWER_DRAW_WORLD);
1414 // std::string wait;
1415 // std::cin >> wait;
1416 } break;
1417 case TSMethod::CTX_TSSETIFUNCTION: {
1418 CHKERR VecAssemblyBegin(fePtr->ts_F);
1419 CHKERR VecAssemblyEnd(fePtr->ts_F);
1420 if (!cTx.bcVecIds.empty()) {
1422 CHKERR VecSetValues(fePtr->ts_F, cTx.bcVecIds.size(),
1423 &*cTx.bcVecIds.begin(), &*cTx.vecValsOnBc.begin(),
1424 INSERT_VALUES);
1425 }
1426 CHKERR VecAssemblyBegin(fePtr->ts_F);
1427 CHKERR VecAssemblyEnd(fePtr->ts_F);
1428 } break;
1429 default:
1430 // don nothing
1431 break;
1432 }
1434 }
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
#define CHKERR
Inline error check.
Definition: definitions.h:535

Member Data Documentation

◆ cTx

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

Definition at line 1391 of file UnsaturatedFlow.hpp.

◆ fePtr

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

Definition at line 1392 of file UnsaturatedFlow.hpp.


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