v0.14.0
Public Member Functions | List of all members
BCs_RVELagrange_Disp::CommonFunctions Struct Reference

#include <users_modules/homogenisation/src/BCs_RVELagrange_Disp.hpp>

Public Member Functions

PetscErrorCode shapeMat (int rank, unsigned int gg, DataForcesAndSourcesCore::EntData &col_data, MatrixDouble &N_mat)
 

Detailed Description

Definition at line 416 of file BCs_RVELagrange_Disp.hpp.

Member Function Documentation

◆ shapeMat()

PetscErrorCode BCs_RVELagrange_Disp::CommonFunctions::shapeMat ( int  rank,
unsigned int  gg,
DataForcesAndSourcesCore::EntData col_data,
MatrixDouble &  N_mat 
)
inline

Definition at line 417 of file BCs_RVELagrange_Disp.hpp.

417  {
418  PetscFunctionBegin;
419  int shape_size=col_data.getN().size2();
420  // cout<<"shape_size = "<<shape_size<<endl;
421  // cout<<"rank = "<<rank<<endl;
422  N_mat.resize(rank,shape_size*rank); N_mat.clear();
423  int gg1=0; int kk=0;
424  for(int ii=0; ii<shape_size; ii++){ //number of shape funcitons
425  for(int jj=0; jj<rank; jj++){
426  // cout<<"ii "<<ii<<endl;
427  N_mat(jj,kk)=col_data.getN()(gg,gg1); kk++;
428  }
429  gg1++;
430  }
431  PetscFunctionReturn(0);
432  }

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