Skip to content
Snippets Groups Projects
Select Git revision
  • b2dac444d5bf0af39890eda1ec0bfd6edc35a442
  • master default protected
  • rgpu
  • oras_vs_osm
  • refactor_coupled
  • lumi-stable
  • fix-compile-without-mpi
  • clean_multirhs
  • oras_comp
  • hpddm_integration
  • blockProduct
  • multiSrcs
  • splitPrePro
  • reuseGCR
  • helmholtz_2d_ddm
  • fix-template-instanciantion-clang-macos
  • customSchwarz
  • hp-convergence-test
  • fix_krylov
  • solverCorrection
  • boris-martin-master-patch-52103
  • gmshddm_1_0_0
22 results

main.cpp

Blame
  • Distance.h 929 B
    // 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.
    
    #ifndef DISTANCE_H
    #define DISTANCE_H
    
    #include <string>
    #include "Plugin.h"
    #include "MVertex.h"
    
    extern "C" {
    GMSH_Plugin *GMSH_RegisterDistancePlugin();
    }
    
    class GMSH_DistancePlugin : public GMSH_PostPlugin {
    private:
      int _maxDim;
      PViewDataList *_data;
    
    public:
      GMSH_DistancePlugin();
      std::string getName() const { return "Distance"; }
      std::string getShortHelp() const { return "Compute distance to boundaries"; }
      std::string getHelp() const;
      std::string getAuthor() const { return "E. Marchandise"; }
      int getNbOptions() const;
      StringXNumber *getOption(int iopt);
      PView *execute(PView *);
      void printView(std::vector<GEntity *> &entities,
                     std::map<MVertex *, double> &distance_map);
    };
    
    #endif