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

R_circuit.geo

Blame
  • CommandLine.cpp 43.48 KiB
    // Gmsh - Copyright (C) 1997-2017 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@onelab.info>.
    
    #include <string>
    #include <string.h>
    #include <stdlib.h>
    #include <iostream>
    #include <fstream>
    #include "GmshConfig.h"
    #include "GmshDefines.h"
    #include "GmshVersion.h"
    #include "GmshMessage.h"
    #include "OpenFile.h"
    #include "CommandLine.h"
    #include "Context.h"
    #include "Options.h"
    #include "GModel.h"
    #include "CreateFile.h"
    #include "OS.h"
    
    #if defined(HAVE_FLTK)
    #include <FL/Fl.H>
    #if (FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION >= 3)
    // OK
    #else
    #error "Gmsh requires FLTK >= 1.3"
    #endif
    #endif
    
    #if defined(HAVE_PETSC)
    #include "petsc.h"
    #endif
    
    #if defined(HAVE_OCC)
    #include "Standard_Version.hxx"
    #endif
    
    #if defined(HAVE_MED)
    #include "med.h"
    #endif
    
    #if defined(HAVE_POST)
    #include "PView.h"
    #endif
    
    #if defined(HAVE_MESH)
    #include "periodical.h"
    #endif
    
    #if defined(HAVE_PARSER)
    #include "Parser.h"
    #endif
    
    int GetGmshMajorVersion(){ return GMSH_MAJOR_VERSION; }
    int GetGmshMinorVersion(){ return GMSH_MINOR_VERSION; }
    int GetGmshPatchVersion(){ return GMSH_PATCH_VERSION; }
    const char *GetGmshExtraVersion(){ return GMSH_EXTRA_VERSION; }
    const char *GetGmshVersion(){ return GMSH_VERSION; }
    const char *GetGmshBuildDate(){ return GMSH_DATE; }
    const char *GetGmshBuildHost(){ return GMSH_HOST; }
    const char *GetGmshPackager(){ return GMSH_PACKAGER; }
    const char *GetGmshBuildOS(){ return GMSH_OS; }
    const char *GetGmshShortLicense(){ return GMSH_SHORT_LICENSE; }
    const char *GetGmshBuildOptions(){ return GMSH_CONFIG_OPTIONS; }
    
    std::vector<std::pair<std::string, std::string> > GetUsage()
    {
      typedef std::pair<std::string, std::string> mp;