Skip to content
Snippets Groups Projects
Select Git revision
  • cdcc53a139cefd47fbf9773224d38e63fab6bc11
  • master default protected
  • clem_dev
  • clem_dev_corrected
  • kokkos
  • devel
  • bcast_debug
  • MC/high_order_geometry
  • MC/mpi_nonblocking
  • MC/multigpu
  • MC/lifting_oneshot
  • MC/physent
  • curls_marco
  • MC/gefpg_lua_binding
  • emdant/dg-cherry-pick-8f1f09f5
  • v0.3.0
  • v0.2.0
  • v0.1.0
18 results

maxwell_cpu.cpp

Blame
  • Options.cpp 229.71 KiB
    // Gmsh - Copyright (C) 1997-2012 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // bugs and problems to <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 "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 "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;
      else if(!strcmp(category, "View"))
        s = ViewOptions_String;