Skip to content
Snippets Groups Projects
Select Git revision
  • 28d9ea13591e232e8d0a871c5fff8b447b27ae8e
  • master default
  • cgnsUnstructured
  • partitioning
  • poppler
  • HighOrderBLCurving
  • gmsh_3_0_4
  • gmsh_3_0_3
  • gmsh_3_0_2
  • gmsh_3_0_1
  • gmsh_3_0_0
  • gmsh_2_16_0
  • gmsh_2_15_0
  • gmsh_2_14_1
  • gmsh_2_14_0
  • gmsh_2_13_2
  • gmsh_2_13_1
  • gmsh_2_12_0
  • gmsh_2_11_0
  • gmsh_2_10_1
  • gmsh_2_10_0
  • gmsh_2_9_3
  • gmsh_2_9_2
  • gmsh_2_9_1
  • gmsh_2_9_0
  • gmsh_2_8_6
26 results

GFaceCompound.cpp

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    GFaceCompound.cpp 95.79 KiB
    // Gmsh - Copyright (C) 1997-2013 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // bugs and problems to the public mailing list <gmsh@geuz.org>.
    //
    // Contributor(s):
    //   Emilie Marchandise
    //
    
    #include "GmshConfig.h"
    #include "GmshDefines.h"
    #include "GFaceCompound.h"
    #include "GEdgeCompound.h"
    #include "intersectCurveSurface.h"
    
    #if defined(HAVE_SOLVER)
    
    #include "Options.h"
    #include "MLine.h"
    #include "MTriangle.h"
    #include "Numeric.h"
    #include "OS.h"
    #include "Octree.h"
    #include "SBoundingBox3d.h"
    #include "SPoint3.h"
    #include "polynomialBasis.h"
    #include "robustPredicates.h"
    #include "MElementCut.h"
    #include "dofManager.h"
    #include "laplaceTerm.h"
    #include "crossConfTerm.h"
    #include "convexCombinationTerm.h"
    #include "diagBCTerm.h"
    #include "linearSystemGMM.h"
    #include "linearSystemCSR.h"
    #include "linearSystemFull.h"
    #include "linearSystemPETSc.h"
    #include "CreateFile.h"
    #include "Context.h"
    #include "discreteFace.h"
    #include "eigenSolver.h"
    #include "multiscaleLaplace.h"
    #include "GRbf.h"
    #include "Curvature.h"
    #include "MPoint.h"
    #include "Numeric.h"
    #include "meshGFace.h"
    #if defined(HAVE_ANN)
    #include <ANN/ANN.h>
    #endif
    
    static void fixEdgeToValue(GEdge *ed, double value, dofManager<double> &myAssembler)
    {
      myAssembler.fixVertex(ed->getBeginVertex()->mesh_vertices[0], 0, 1, value);
      myAssembler.fixVertex(ed->getEndVertex()->mesh_vertices[0], 0, 1, value);
      for(unsigned int i = 0; i < ed->mesh_vertices.size(); i++){
        myAssembler.fixVertex(ed->mesh_vertices[i], 0, 1, value);
      }
    }
    
    /*
    static void printBound(std::vector<MVertex*> &l, int tag)
    {
      char name[256];
      sprintf(name, "myBOUND%d.pos", tag);
      FILE * xyz = fopen(name,"w");
      fprintf(xyz,"View \"\"{\n");
      for(unsigned int i = 0; i < l.size(); i++){
        MVertex *v = l[i];
        fprintf(xyz,"SP(%g,%g,%g){%d};\n", v->x(), v->y(), v->z(), i);