Skip to content
Snippets Groups Projects
Select Git revision
  • a3221785cab590b387209068b407cbd5e61faf80
  • master default protected
  • dof-renumbering
  • test-dof-hash
  • gdemesy-master-patch-30528
  • eval-space-time
  • oscillating_multiharm
  • MH_movement
  • axisqu
  • write_vtu_and_ensight_formats
  • movingband
  • CP_1972_add_vtu_file_writing
  • mortar
  • fast_freq_sweep_Resolution
  • applyresolvent_again
  • marteaua-master-patch-54323
  • patch-1
  • binde-master-patch-08072
  • binde-master-patch-52461
  • BCGSL
  • resolvent
  • getdp_3_5_0
  • getdp_3_4_0
  • getdp_3_3_0
  • getdp_3_2_0
  • getdp_3_1_0
  • getdp_3_0_4
  • getdp_3_0_3
  • getdp_3_0_2
  • getdp_3_0_1
  • getdp_3_0_0
  • onelab_mobile_2.1.0
  • getdp_2_11_3 protected
  • getdp_2_11_2 protected
  • getdp_2_11_1 protected
  • getdp_2_11_0 protected
  • getdp_2_10_0 protected
  • getdp_2_9_2 protected
  • getdp_2_9_1 protected
  • getdp_2_9_0 protected
  • getdp_2_8_0 protected
41 results

F_Misc.cpp

Blame
  • PriReferenceSpace.cpp 1.39 KiB
    #include <sstream>
    #include "PriReferenceSpace.h"
    #include "MPrism.h"
    
    using namespace std;
    
    PriReferenceSpace::PriReferenceSpace(void){
      // Vertex Definition //
      nVertex = 6;
    
      // Edge Definition //
      const size_t nEdge = 9;
      refEdgeNodeIdx.resize(nEdge);
    
      for(size_t i = 0; i < nEdge; i++){
        refEdgeNodeIdx[i].resize(2); // Two Nodes per Edge
        refEdgeNodeIdx[i][0] = MPrism::edges_prism(i, 0);
        refEdgeNodeIdx[i][1] = MPrism::edges_prism(i, 1);
      }
    
      // Face Definition //
      size_t nFace = 5;
      refFaceNodeIdx.resize(nFace);
    
      for(size_t i = 0; i < nFace; i++){
        int fourthNodeIdx = MPrism::faces_prism(i, 3);
    
        if(fourthNodeIdx != -1)
          refFaceNodeIdx[i].resize(4);  // Four Nodes in this face
        else
          refFaceNodeIdx[i].resize(3);  // Three Nodes in this face
    
        refFaceNodeIdx[i][0] = MPrism::faces_prism(i, 0);
        refFaceNodeIdx[i][1] = MPrism::faces_prism(i, 1);
        refFaceNodeIdx[i][2] = MPrism::faces_prism(i, 2);
    
        if(fourthNodeIdx != -1)
          refFaceNodeIdx[i][3] = fourthNodeIdx;
      }
    
      // Init All //
      init();
    }
    
    PriReferenceSpace::~PriReferenceSpace(void){
    }
    
    string PriReferenceSpace::toLatex(void) const{
      stringstream stream;
    
      stream << "\\documentclass{article}" << endl << endl
             << "\\begin{document}"        << endl
    
             << "\texttt{toLatex} not implemented" << endl
    
             << "\\end{document}"          << endl;
    
      return stream.str();
    }