Skip to content
Snippets Groups Projects
Select Git revision
  • fe63c3189c7188fa467ec50600bdf9abdd005eda
  • master default protected
2 results

microstrip.geo

Blame
  • GModelIO_CGNS.cpp 164.69 KiB
    // Gmsh - Copyright (C) 1997-2019 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
    //
    // Contributor(s):
    //   S. Guzik
    //   B. Gorissen
    //   K. Hillewart
    
    // The first part of this file (before #include "CGNSUtils.h") reads CGNS data.
    //
    // The second part of this file (after #include "CGNSUtils.h") writes CGNS
    // data. This second part is copyright 2008 S. Guzik, C. Geuzaine and
    // J.-F. Remacle. It will be rewritten (or removed) in a future release. In
    // particular, CGNSUtils.h will be removed.
    
    #include <string>
    #include "GmshConfig.h"
    #include "GModel.h"
    #include "GmshMessage.h"
    #include "CGNSOptions.h"
    
    #if defined(HAVE_LIBCGNS)
    
    #include <vector>
    #include <map>
    #include <queue>
    #include <iostream>
    #include <iomanip>
    #include <fstream>
    #include <sstream>
    #include <cstdio>
    #include <cstring>
    #include <cstdlib>
    #include <cmath>
    #include "Context.h"
    #include "Options.h"
    #include "affineTransformation.h"
    #include "BasisFactory.h"
    #include "SVector3.h"
    #include "fullMatrix.h"
    #include "GmshDefines.h"
    
    #if defined(HAVE_FLTK)
    #include "extraDialogs.h"
    #include "FlGui.h"
    #endif
    
    namespace CGNS {
    #include <cgnslib.h>
    }
    
    using namespace CGNS;
    
    #define maxLenCGNS 32
    
    static int parentFromCGNSType(ElementType_t cgnsType)
    {
      switch(cgnsType) {
      case NODE: return TYPE_PNT;
      case BAR_2:
      case BAR_3:
      case BAR_4:
      case BAR_5: return TYPE_LIN;
      case TRI_3:
      case TRI_6:
      case TRI_9:
      case TRI_10:
      case TRI_12: