Skip to content
Snippets Groups Projects
Select Git revision
  • 9c646474c3c78a76957518976dc1b393bee3228d
  • 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

Gmsh.cpp

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    Gmsh.cpp 12.56 KiB
    // Gmsh - Copyright (C) 1997-2016 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>
    #include <time.h>
    #include "GmshConfig.h"
    #include "GmshVersion.h"
    #include "GmshMessage.h"
    #include "GmshDefines.h"
    #include "GmshRemote.h"
    #include "GModel.h"
    #include "OpenFile.h"
    #include "CreateFile.h"
    #include "Options.h"
    #if defined(HAVE_PARSER)
    #include "Parser.h"
    #endif
    #include "CommandLine.h"
    #include "OS.h"
    #include "Context.h"
    #include "robustPredicates.h"
    #if defined(HAVE_POST)
    #include "PView.h"
    #endif
    
    #if defined(HAVE_ONELAB) && !defined(HAVE_ONELAB2)
    #include "gmshLocalNetworkClient.h"
    #endif
    
    #if defined(HAVE_MESH)
    #include "Generator.h"
    #include "Field.h"
    #include "meshPartition.h"
    #endif
    
    #if defined(HAVE_PLUGINS)
    #include "PluginManager.h"
    #endif
    
    #if defined(HAVE_FLTK)
    #include "FlGui.h"
    #include "graphicWindow.h"
    #include "drawContext.h"
    #if defined(HAVE_ONELAB2)
    #include "onelab2Group.h"
    #else
    #include "onelabGroup.h"
    #endif
    #endif
    
    #if defined(HAVE_ONELAB2)
    #include "OnelabServer.h"
    #include "OnelabDatabase.h"
    #include "OnelabException.h"
    #endif
    
    int GmshInitialize(int argc, char **argv)
    {
      static bool isInitialized = false;
      if(isInitialized) return 1;
      isInitialized = true;
    
    #if defined(HAVE_FLTK)
      RedirectIOToConsole();
    #endif
    
      // we need at least one model during option parsing
      GModel *dummy = 0;