Skip to content
Snippets Groups Projects
Select Git revision
  • a3711e5e8f73221b8d04be8506cc8c91946cd0b1
  • master default protected
  • alphashapes
  • quadMeshingTools
  • cygwin_conv_path
  • macos_arm64
  • add-transfiniteautomatic-to-geo
  • patch_releases_4_10
  • HierarchicalHDiv
  • isuruf-master-patch-63355
  • hyperbolic
  • hexdom
  • hxt_update
  • jf
  • 1618-pythonocc-and-gmsh-api-integration
  • octreeSizeField
  • hexbl
  • alignIrregularVertices
  • getEdges
  • patch_releases_4_8
  • isuruf-master-patch-51992
  • gmsh_4_11_0
  • gmsh_4_10_5
  • gmsh_4_10_4
  • gmsh_4_10_3
  • gmsh_4_10_2
  • gmsh_4_10_1
  • gmsh_4_10_0
  • gmsh_4_9_5
  • gmsh_4_9_4
  • gmsh_4_9_3
  • gmsh_4_9_2
  • gmsh_4_9_1
  • gmsh_4_9_0
  • gmsh_4_8_4
  • gmsh_4_8_3
  • gmsh_4_8_2
  • gmsh_4_8_1
  • gmsh_4_8_0
  • gmsh_4_7_1
  • gmsh_4_7_0
41 results

BackgroundMesh.cpp

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    Options.cpp 235.16 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>.
    
    #include <string.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include "GmshConfig.h"
    #include "GmshDefines.h"
    #include "GmshMessage.h"
    #include "StringUtils.h"
    #include "GModel.h"
    #include "Context.h"
    #include "Options.h"
    #include "Colors.h"
    #include "CommandLine.h"
    #include "DefaultOptions.h"
    
    #if defined(HAVE_MESH)
    #include "Generator.h"
    #include "Field.h"
    #include "BackgroundMesh.h"
    #endif
    
    #if defined(HAVE_PARSER)
    #include "Parser.h"
    #endif
    
    #if defined(HAVE_POST)
    #include "PView.h"
    #include "PViewOptions.h"
    #include "PViewData.h"
    #include "adaptiveData.h"
    #endif
    
    #if defined(HAVE_PLUGINS)
    #include "PluginManager.h"
    #include "Plugin.h"
    #endif
    
    #if defined(HAVE_FLTK)
    #include <FL/Fl_Tooltip.H>
    #include "FlGui.h"
    #include "drawContextFltk.h"
    #include "graphicWindow.h"
    #include "optionWindow.h"
    #include "manipWindow.h"
    #include "contextWindow.h"
    #include "clippingWindow.h"
    #include "onelabGroup.h"
    #include "viewButton.h"
    #endif
    
    // General routines for string options
    
    bool StringOption(int action, const char *category, int num,
                      const char *name, std::string &val)
    {
      StringXString *s = 0;
      if(!strcmp(category, "General"))
        s = GeneralOptions_String;
      else if(!strcmp(category, "Geometry"))
        s = GeometryOptions_String;
      else if(!strcmp(category, "Mesh"))
        s = MeshOptions_String;
      else if(!strcmp(category, "Solver"))
        s = SolverOptions_String;
      else if(!strcmp(category, "PostProcessing"))
        s = PostProcessingOptions_String;